Project Zomboid

Project Zomboid

[B41/B42] Day One (Bandits)
(B42) Error spam issue
In console.txt, I've had this error repeat many times:


function: OnHitZombie -- file: BanditUpdate.lua line # 1924 | MOD: Bandits
Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@d8e9cbc0
function: ControlPopulation -- file: DOCivilians.lua line # 38 | MOD: Bandits Day One

ERROR: General f:551, t:1749371911176> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: attempted index: isRanged of non-table: null at KahluaThread.tableget(KahluaThread.java:1667).
Stack trace:
se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:624)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:72)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:458)
zombie.characters.IsoZombie.Hit(IsoZombie.java:1434)
jdk.internal.reflect.GeneratedMethodAccessor807.invoke(Unknown Source)
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
java.base/java.lang.reflect.Method.invoke(Unknown Source)
se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:79)
se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
zombie.Lua.Event.trigger(Event.java:72)
zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
zombie.GameTime.update(GameTime.java:755)
zombie.gameStates.IngameState.UpdateStuff(IngameState.java:593)
zombie.gameStates.IngameState.updateInternal(IngameState.java:1722)
zombie.gameStates.IngameState.update(IngameState.java:1450)
zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
zombie.GameWindow.logic(GameWindow.java:384)
zombie.GameWindow.frameStep(GameWindow.java:917)
zombie.GameWindow.mainThreadStep(GameWindow.java:643)
zombie.MainThread.mainLoop(MainThread.java:76)
java.base/java.lang.Thread.run(Unknown Source)


I've got this error spam while playing Day One, and I've also had error spam issue when playing Week One on B42 (even after re-subscribing to the mod and re-downloading it then and making, rejoining the game and a new save)
< >
Showing 1-8 of 8 comments
kod77 Jun 8 @ 2:18am 
Also, the only 2 mods causing these errors are: bandits and day one mods, according to wich mods are highlighted by red color in the mod list when I press ESC in-game and check mods there
it's a typo on line 38 in DOCivilians.lua

find item, change it to genItem
Last edited by Uberration; Jun 8 @ 8:40am
kod77 Jun 10 @ 12:41pm 
Originally posted by Uberration:
it's a typo on line 38 in DOCivilians.lua

find item, change it to genItem
Worked for me, thanks a lot!
kod77 Jun 10 @ 12:41pm 
@Slayer
I don't understand, friends. In this case, it would be like this?
" actor:Hit(genitem, fz, 1.01, false, 1, false)"

because here I keep printing the errors
kod77 Jun 11 @ 4:10am 
Originally posted by SIMBAproduz:
I don't understand, friends. In this case, it would be like this?
" actor:Hit(genitem, fz, 1.01, false, 1, false)"

because here I keep printing the errors
It should be, yes
I didn't have errors after changing that

The mod prob got updated or sth, and your edited file got replaced with the original one
Last edited by kod77; Jun 11 @ 4:10am
kod77 Jun 11 @ 4:18am 
Maybe the same should also be done with "bandits" mod (as it's "Day One" and "Week one" mods' core framework)??? Not sure but you could try

Originally posted by SIMBAproduz:
I don't understand, friends. In this case, it would be like this?
" actor:Hit(genitem, fz, 1.01, false, 1, false)"

because here I keep printing the errors
Thanks for your time and help in any way, friend 🌱
< >
Showing 1-8 of 8 comments
Per page: 1530 50