Closed Kruziikrel13 closed 2 years ago
Update: It still crashes on stock AMR with no other mods installed
@MichaelPetersen22 I was able to fix this issue by commenting out line 431 in the script.
The downside is that your suit, headgear, backpack, PDA etc. won't be auto-equipped and will be in your inventory when you get out of a fight. Also, if there's a specific suit given to you for a fight, then that will not be auto-equipped at the beginning of a fight either, but you'll be able to put it on from your inventory.
I have tested this change for 2 fights and it has worked fine.
I am not familiar with this scripting language (I don't even know what it's called), how do I comment stuff out?
The scripting language is Lua and to comment the line out, just put a "--" in front of it like this:
-- create_time_event("Mag_redux", "equip_outfit"..se.id, 0, equip_outfit, se.id)
Fix for this should be in. Issue was it was referring to nonexistent se
object which isn't required. Just drop the se.id
and it should work.
Expression :
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: ....r. anomaly - final\gamedata\scripts\mags_patches.script:431: attempt to index global 'se' (a nil value)
stack trace:
Line 431 appears to be the Arena teleport script that also adds to the player inventory (i.e. adds magazines along with everything else to player inventory when teleported to the Arena)
I have nothing else overwriting the mags_patches.script, however it crashes when I try and fight another npc in the arena. Do other mods still conflict with this patch even if they do not touch the script?