Project Zomboid

Project Zomboid

[B41/B42] Day One (Bandits)
kod77 6 月 8 日 上午 1:42
(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)
< >
正在显示第 1 - 8 条,共 8 条留言
kod77 6 月 8 日 上午 2:18 
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
Uberration 6 月 8 日 上午 8:38 
it's a typo on line 38 in DOCivilians.lua

find item, change it to genItem
最后由 Uberration 编辑于; 6 月 8 日 上午 8:40
kod77 6 月 10 日 下午 12:41 
引用自 Uberration
it's a typo on line 38 in DOCivilians.lua

find item, change it to genItem
Worked for me, thanks a lot!
kod77 6 月 10 日 下午 12:41 
@Slayer
SIMBAproduz 6 月 10 日 下午 4:13 
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 6 月 11 日 上午 4:10 
引用自 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
最后由 kod77 编辑于; 6 月 11 日 上午 4:10
kod77 6 月 11 日 上午 4:18 
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

引用自 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
SIMBAproduz 6 月 11 日 上午 11:15 
Thanks for your time and help in any way, friend 🌱
< >
正在显示第 1 - 8 条,共 8 条留言
每页显示数: 1530 50