Project Zomboid
More Traits. ComputerPers FIX
กำลังแสดง 1-4 จาก 4 รายการ
อัปเดต: 26 ต.ค. @ 10: 37pm
โดย computer.pers

martial LUA error fix

อัปเดต: 25 ต.ค. @ 3: 32am
โดย computer.pers

Self incompatable in mod.info fixed

อัปเดต: 25 ต.ค. @ 3: 20am
โดย computer.pers

✅ 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

อัปเดต: 15 ต.ค. @ 12: 48am
โดย computer.pers