Project Zomboid

Project Zomboid

Better Satchel
Rachel L 30 Dec, 2024 @ 5:22pm
B42 Bug Report
I am getting this error:
`Callframe at: se.krka.kahlua.integration.expose.MultiLuaJavaInvoker@b53fd915
function: getContainers -- file: !aaaSatchelNewSandboxOption.lua line # 11 | MOD: Better Satchel
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor320.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:211)
at se.krka.kahlua.integration.expose.MultiLuaJavaInvoker.call(MultiLuaJavaInvoker.java:60)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:192)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:988)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1790)
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:81)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:281)
at zombie.gameStates.IngameState.enter(IngameState.java:811)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:145)
at zombie.GameWindow.logic(GameWindow.java:372)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:76)
at zombie.GameWindow.frameStep(GameWindow.java:917)
at zombie.GameWindow.run_ez(GameWindow.java:810)
at zombie.GameWindow.mainThread(GameWindow.java:610)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot invoke "zombie.scripting.objects.Item.getOnBreak()" because the return value of "zombie.inventory.InventoryItem.getScriptItem()" is null
at zombie.inventory.InventoryItem.getOnBreak(InventoryItem.java:5558)
at zombie.inventory.InventoryItem.onBreak(InventoryItem.java:5563)
at zombie.inventory.InventoryItem.setBroken(InventoryItem.java:3391)
at zombie.inventory.InventoryItem.setCondition(InventoryItem.java:2892)
at zombie.scripting.objects.Item.InstanceItem(Item.java:2091)
at zombie.inventory.InventoryItemFactory.createItemInternal(InventoryItemFactory.java:115)
at zombie.inventory.InventoryItemFactory.CreateItem(InventoryItemFactory.java:60)
at zombie.inventory.InventoryItemFactory.CreateItem(InventoryItemFactory.java:42)
at zombie.inventory.InventoryItemFactory.CreateItem(InventoryItemFactory.java:20)
at zombie.Lua.LuaManager$GlobalObject.instanceItem(LuaManager.java:4555)
... 23 more
`
< >
Showing 1-2 of 2 comments
DragonOfWar  [developer] 31 Dec, 2024 @ 1:58am 
That error was there before the last update. I made that small update to specifically adress this issue. You can revert by editing "!aaaSatchelNewSandboxOption.lua" by any txt editor to test this issue. Open this file in "Steam\steamapps\workshop\content\108600\2965943353\mods\Better Satchel\42.0\media\lua\shared" and edit line with "local function getContainers()" by removing "local" it should be "function getContainers()", thats the only thing I changed. You also can try changing that 11 line with error "local invItem = instanceItem(item)" to something like "local invItem = instanceItem(it)", it may cause some other issues though.
DragonOfWar  [developer] 31 Dec, 2024 @ 2:00am 
The other solution is to delete this whole file, it will disable sandbox options. You still will have sandbox options in menu, but it will not do anything.
< >
Showing 1-2 of 2 comments
Per page: 1530 50