User Details
- User Since
- Fri, Apr 25, 6:33 PM (2 w, 6 d)
Sat, May 10
Wed, May 7
Is it only the A6_AK104 that you're seeing this issue with? Do you see any other guns listed? Its possible the A6_AK104 could be missing an FSM transition or memory point in the model
Tue, May 6
Which weapon pack is the A6_AK104 in? Also you may want to look at any crashes that are occuring seconds before the WeaponFSM crash as being the culprit. For instance I sometimes get a crash when the CarePackage mod cleans up old care packages, this is because its trying to delete something thats already been deleted so it gets a NULL pointer or illegal read operation
\
Mon, May 5
Yeah send me your logs, most likely its a bugged player, desync, or a buggy weapon/mod. I may include debug messages with the players name attached to the log so you can see if its one player in particular causing the issue. I have seen corrupted player profiles and cheaters causing memory corruption issues.
Sat, May 3
Updated ctx checking and sync intervals, appears to be more stable. WeaponFSM Fix
Fri, May 2
Uploaded new version to check current_state_id = 0 as empty as defined in scripts\4_world\entities\firearms\fsm\states\weaponstablestate.c
Thu, May 1
I'm going to make a couple tweaks to the current_state_id and see if that helps, most likely I'll upload later tonight when pop dies down
Thats a bummer, I personally haven't had any crashes. Obviously its not a permanent fix but at least it will stop crashes 4-5 times a day. The main issue is the lack of sanity checks in the DayZ code and the short-circuit coding. As of this last update, Enfusion engine doesn't appear to properly handle && operator logic.
Wed, Apr 30
Happy to help out the community! @Gooon I'd like to have a chat with you, https://discord.gg/killerz
Tue, Apr 29
I found that in addition to ctx being NULL, the WeaponDebugger and current_state_id can also cause crashing. I've added error checks for those and also redid the overrides from prefix to modded overrides which should prevent any crashing. I'm uploading the new version now. WeaponFSM Fix
Fri, Apr 25
I've added a NULL Pointer check to the vanilla code to prevent server crashes. More specifically I've added NULL pointer checks on the variables ctx, state, and m_fsm in the modules weapon_base.c and weaponfsm.c. I've published this as a workshop item WeaponFSM Fix . Keep in mind this hardcodes these two modules with 1.27 code so it may break when 1.28 is released. Please remember to remove this mod when 1.28 is released.