Project Zomboid

Project Zomboid

More Traits. ComputerPers FIX
Mostrando 1-4 de 4 aportaciones
Actualización: 26 OCT a las 10:37 p. m.

martial LUA error fix

Actualización: 25 OCT a las 3:32 a. m.

Self incompatable in mod.info fixed

Actualización: 25 OCT a las 3:20 a. m.

✅ Fixed Functions in MoreTraits.lua
Critical Fixes (Prevent Crashes):

    []GymGoer (line 3239)Issue: player:getCurrentState() could return nilFix: Added check currentState and currentState == FitnessState.instance()[]GymGoerUpdate (line 3250)Issue: player:getFitness() could return nil, multiple getBodyPart() calls without checksFix:Added fitness check at function startReplaced all player:getFitness() calls with fitness variableAdded safe checks for all getBodyPart() calls (arms, legs, chest, abs)[]TerminatorGun (line 3974)Issue: Repeated player:getCurrentState() calls without nil checksFix: Added currentState and checks for both branches (Terminator and antigun)
Important Fixes (Weapon):
    []martial (line 1827)Issue: Direct weapon:getType() call without safe checkFix: Added weapon.getType and weapon:getType() or nil check[]actionhero (line 2262)Issue: Missing weapon == nil check, direct weapon:getType() callFix: Added weapon == nil checks and safe getType() call[]mundane (line 3642)Issue: Missing weapon == nil check, direct weapon:getModData() callFix: Added weapon == nil and _actor ~= player checks
Additional Fixes (Stability):
    []GlassBody (line 3496)Issue: Direct getBodyPart() call without result checkFix: Added neckPart and neckPart:getAdditionalPain() > 0 check[]RestfulSleeper (line 3917)Issue: Direct access to getBodyPart() methods without checksFix: Added Neck and Neck:getAdditionalPain() > 0 check[]RestfulSleeperWakeUp (line 3941)Issue: Direct access to getBodyPart() methods without checksFix: Added Neck and Neck:getAdditionalPain() > 0 check
Total: 9 Functions Fixed
All fixes prevent crashes like:
"Object tried to call nil in prospear"
"Attempt to call method on nil value"
Crashes during bare-handed attacks (Shove)
Crashes during GymGoer trait exercises
Crashes during Terminator trait shooting

Actualización: 15 OCT a las 12:48 a. m.