Adds a nil weapon check for Aoldri's MP412 REX REANIMATION aol_mp412_monkeypatches.script
When you try to attach a scope without a weapon in hand with MP412 Rex Reanimation scripts included, The game crashes with the preview image below ( That font isn't part of the log by the way ).
Requirements:
MP412 Rex Reanimation
Changes item_weapon.attach_scope function from this:
To this:
As for why this isn't included in the original addon yet is because Aoldri didn't respond\see my Discord DM message from 01/29/2024
I have this kind of crash very often:
Function : CScriptEngine::lua_pcall_failed
File : D:\a\xray-monolith\xray-monolith\src\xrServerEntities\script_engine.cpp
Line : 262
Description : fatal error
Arguments :
1 : [Lua] c:/anomaly\gamedata\scripts\_g.script(1802) : shuffle_table
LUA error: c:/anomaly\gamedata\scripts\_g.script:1802: attempt to get length of local 't' (a nil value)
That crash is unrelated to my addon but looking around STALKER G.A.M.M.A , There's a similar crash with line 257 that's said to be caused by a mod calling "shuffle_table" with wrong arguments
Some mods that's claimed to cause it are Autocomplete, Companion inventory unlocks, Spawning yellow\green stashes in New levels in GAMMA ( That issue have a fix in the GAMMA Discord server )
If none of them is the issue then I suggest to try to get help from S.T.A.L.K.E.R. Anomaly related discord servers :l
Thanks. I have this problem, although Autocomplete and Companion inventory unlocks are disabled.