If I only have one ammo type set in wuut_magazines.ltx, I get this crash when trying to put ammo in the mag:
[ag_ammo_357_hp_mag]
mag_ammo_class = ammo_357_hp_mag
-----------------------------------------
WeaponGetMagData: (M:1:-2)
! [LUA] SCRIPT RUNTIME ERROR
! [LUA] ...stalker-anomaly/bin/..\gamedata\scripts\wuut_mags.script:1451: attempt to perform arithmetic on local 'index' (a nil value)
! [SCRIPT ERROR]: ...stalker-anomaly/bin/..\gamedata\scripts\wuut_mags.script:1451: attempt to perform arithmetic on local 'index' (a nil value)
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...stalker-anomaly/bin/..\gamedata\scripts\wuut_mags.script:1451: attempt to perform arithmetic on local 'index' (a nil value)
stack trace:
-----------------------------------------
I know I don't need to remove it from wuut_mags to get rid of bad ammo, it's just a regex oversight, but I thought you should know, in case there may be weapons with only one type of ammo.
EDIT: It seems it was necessary to remove crap ammo frum wuut_mags too, but I just duplicated the good ammo and it seems to work ok
[ag_ammo_357_hp_mag]
mag_ammo_class = ammo_357_hp_mag, ammo_357_hp_mag
alexm160
joined
This member has provided no bio about themself...