Project Zomboid

Project Zomboid

Subpar Survivors
Featherine~ 30 Sep, 2021 @ 10:33am
3
41.55 introduced a small new bug I think
So I'm getting an error every time I try to craft something (or even just rip clothing) directly out of a container (corpse, wardrobe, doesn't matter) and it stops after a single action. Say; if I tried to disassemble all the watches in a pile of corpses it'd stop after one.

Here's the error:
-----------------------------------------
function: ReturnItemsToOriginalContainer -- file: ISCraftingUI.lua line # 1597
function: OnCraft -- file: ISInventoryPaneContextMenu.lua line # 2729
function: onMouseUp -- file: ISContextMenu.lua line # 95

ERROR: General , 1633022084069> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in ReturnItemsToOriginalContainer at KahluaUtil.fail line:82.
ERROR: General , 1633022084069> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in ReturnItemsToOriginalContainer
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1924)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1228)
at zombie.ui.UIManager.update(UIManager.java:808)
at zombie.GameWindow.logic(GameWindow.java:249)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:726)
at zombie.GameWindow.run_ez(GameWindow.java:642)
at zombie.GameWindow.mainThread(GameWindow.java:471)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1633022084069> -----------------------------------------
STACK TRACE
-----------------------------------------


Here's what I believe to be the relevant block:

function ISCraftingUI.ReturnItemsToOriginalContainer(playerObj, items)
for _,item in ipairs(items) do
if item:getContainer() ~= playerObj:getInventory() then
local action = ISInventoryTransferAction:new(playerObj, item, playerObj:getInventory(), item:getContainer(), nil)
action:setAllowMissingItems(true)
ISTimedActionQueue.add(action)
end
end
end


I made a new save with literally nothing but Superb and Subpar and the bug was still present so the only conclusion I can reach is that the update 41.55 messed something up.
< >
Showing 1-15 of 26 comments
YYKG629 30 Sep, 2021 @ 9:46pm 
I have the same problem with only this mod is enabled.

Here is the log


_____________________________________________________

function: ReturnItemsToOriginalContainer -- file: ISCraftingUI.lua line # 1597
function: OnCraft -- file: ISInventoryPaneContextMenu.lua line # 2729
function: onMouseUp -- file: ISContextMenu.lua line # 95

ERROR: General , 1633063225505> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in ReturnItemsToOriginalContainer at KahluaUtil.fail line:82.
ERROR: General , 1633063225505> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in ReturnItemsToOriginalContainer
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallBoolean(KahluaThread.java:1924)
at se.krka.kahlua.integration.LuaCaller.protectedCallBoolean(LuaCaller.java:104)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1228)
at zombie.ui.UIManager.update(UIManager.java:808)
at zombie.GameWindow.logic(GameWindow.java:249)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:726)
at zombie.GameWindow.run_ez(GameWindow.java:628)
at zombie.GameWindow.mainThread(GameWindow.java:471)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1633063225508> -----------------------------------------
STACK TRACE
LyraLux 1 Oct, 2021 @ 10:53am 
Sadly this mod AND Superb Survivors are one of the current culprits for these errors. I did a thorough test with disabling and enabling mods this morning to narrow it down. These issues went away for me when I disabled both Super and Subpar Survivors. =(

Starting a game without these two mods enabled, then adding them to the save after quitting and loading again will only add the error back and disable your survivor command hotkeys. I'm not certain if Super Survivors has been abandoned, as Subpar Survivors exists to fix bugs with that mod, but hopefully the excellent modder for Subpar Survivors will have time to find and fix the issue.

Honestly, I wish the PZ Devs would make a non IWBUMS build for 41.54 since that was the last update that had everything working just fine in it. You folks probably already know that opting out of IWBUMS and choosing "Build 41 The most recent beta build!" won't fix the issue as both that and IWBUMS are the same thing. Both get updated. *sigh* Time to be lonely in the apocalypse and abandon dreams of leading a functional survivor camp... at least for now.
Last edited by LyraLux; 1 Oct, 2021 @ 10:54am
Peace Yoon 1 Oct, 2021 @ 2:59pm 
Same. Only after disabling superb survivors the bug disappeared.
Noobazzah 2 Oct, 2021 @ 7:05pm 
Same thing happens with me, mass-crafting jobs can be done by first transferring items to your inventory, but the other stuff that is now randomly broken is really annoying. I'm guessing they just decided to rewrite some bit of code for no reason other than to ♥♥♥♥ with modders lol
Manu 4 Oct, 2021 @ 10:44pm 
I confirm the issue. I figure the problem is when you try to interact with the item while it's in another container instead of your inventory.
E.g.: If you try to rip a zombie cloth it crashes, but if you transfer the item to your inventory then you can rip it np.
Same thing goes with cooking, trying to use an ingredient from a container crashes, but if you pick the item before using it there is no problem
Manu 4 Oct, 2021 @ 10:45pm 
I also troubleshooted it, it's only with this mod. I started a game with no mods, ripped a cloth from a zombie, loaded it with the mod included and trying to rip another cloth from the same zombie and it crashes
32Alpha 5 Oct, 2021 @ 2:01pm 
Yep. Same issue here. Affects a lot of things like crafting, filling containers with water, etc.
Manu 5 Oct, 2021 @ 5:18pm 
Solitude it is then
Pestdoktor 6 Oct, 2021 @ 1:04pm 
Same here.
Mikan 7 Oct, 2021 @ 12:35pm 
Hopefully this is sorted out soon enough. :steamthumbsup:
32Alpha 8 Oct, 2021 @ 10:03am 
I've started moving certain things to my main inventory to work with. As long as they are in the main inventory it seems to work.
Manu 8 Oct, 2021 @ 12:09pm 
Originally posted by 32Alpha:
I've started moving certain things to my main inventory to work with. As long as they are in the main inventory it seems to work.
Yes, the crash happens when you attempt to interact to items not in your inventory, like cooking or ripping cloth. As long as you pick the objects and use them from inventory you are safe from this bug
Noobazzah 8 Oct, 2021 @ 1:12pm 
My game certainly doesn't crash, just throws a single error. Frankly, I'm not going to start a new run every single time TIS changes something that break mods, and in this case it's mostly just a minor annoyance.
9Revan9 11 Oct, 2021 @ 2:25am 
This is absolutely frustrating.
SlightlyMadman  [developer] 12 Oct, 2021 @ 12:16pm 
3
3
2
5
Sorry for the lack of recent updates! I'll look into this ASAP.
< >
Showing 1-15 of 26 comments
Per page: 1530 50