Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
That error is saying that your holding an object that doesnt exist.
more specifically, whatever is in your hand doesnt have the capability to call the getCategories() function. which all items in zomboid are supposed to have.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3474630097
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3422418897
Mod: Even More Traits [b42]
File: LazoloMain.lua
Issue: Game crash occurs every tick/second when holding ANY item in main hand
Testing Environment:
✅ Tested with ONLY Even More Traits mod and Stat Tweaks Lib
✅ No other mods enabled
❌ Bug still occurs - confirming this is an issue with Even More Traits specifically
Error Details:
text
ERROR: ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: Object tried to call nil in GetWeaponPerkLevel at KahluaUtil.fail(KahluaUtil.java:101)
Problem Description:
The error occurs in the UpdateHeldWeapon() function which is called every minute by LMinuteUpdates(). The function calls GetWeaponPerkLevel() with Player:getPrimaryHandItem(), but this fails when:
Holding non-weapon items (wooden plank, rolling pin, etc.)
Holding basic vanilla weapons (starter pistol)
Holding ANY item in main hand
CONFIRMED: Issue persists even with only this mod enabled
Affected Functions:
GetWeaponPerkLevel (line ~31)
UpdateHeldWeapon (line ~2420)
LMinuteUpdates (line ~3077)
Steps to Reproduce:
Enable ONLY Even More Traits mod and its required dependencies
Start new game or load existing save
Pick up any item (weapon or non-weapon)
Hold it in main hand
Error occurs every tick/second
Expected Behavior:
Function should handle non-weapon items gracefully without crashing.
Critical Finding:
The bug is not caused by mod conflicts - it occurs even when only Even More Traits is active, confirming this is an internal issue with the mod's code.
I got a comment mentioning this mod and person didn't reply for some time so I decided to come check, hope that helps!
function: UpdateHeldWeapon -- file: LazoloMain.lua line # 2420 | MOD: Even More Traits [b42]
function: LMinuteUpdates -- file: LazoloMain.lua line # 3077 | MOD: Even More Traits [b42]
java.lang.RuntimeException: Object tried to call nil in GetWeaponPerkLevel
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:101)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:815)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1653)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:72)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.GameTime.update(GameTime.java:759)
at zombie.gameStates.IngameState.UpdateStuff(IngameState.java:596)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1726)
at zombie.gameStates.IngameState.update(IngameState.java:1465)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:386)
at zombie.GameWindow.frameStep(GameWindow.java:923)
at zombie.GameWindow.mainThreadStep(GameWindow.java:633)
at zombie.MainThread.mainLoop(MainThread.java:76)
at {LINK REMOVED}java.base/java.lang.Thread.run(Unknown Source)
`
error...