Project Zomboid

Project Zomboid

Subpar Survivors
Featherine~ 30. sep. 2021 kl. 10:33
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.
< >
Viser 1-15 af 26 kommentarer
YYKG629 30. sep. 2021 kl. 21:46 
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. okt. 2021 kl. 10:53 
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.
Sidst redigeret af LyraLux; 1. okt. 2021 kl. 10:54
Peace Yoon 1. okt. 2021 kl. 14:59 
Same. Only after disabling superb survivors the bug disappeared.
Noobazzah 2. okt. 2021 kl. 19:05 
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. okt. 2021 kl. 22:44 
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. okt. 2021 kl. 22:45 
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. okt. 2021 kl. 14:01 
Yep. Same issue here. Affects a lot of things like crafting, filling containers with water, etc.
Manu 5. okt. 2021 kl. 17:18 
Solitude it is then
Pestdoktor 6. okt. 2021 kl. 13:04 
Same here.
Mikan 7. okt. 2021 kl. 12:35 
Hopefully this is sorted out soon enough. :steamthumbsup:
32Alpha 8. okt. 2021 kl. 10:03 
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. okt. 2021 kl. 12:09 
Oprindeligt skrevet af 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. okt. 2021 kl. 13:12 
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. okt. 2021 kl. 2:25 
This is absolutely frustrating.
SlightlyMadman  [udvikler] 12. okt. 2021 kl. 12:16 
3
3
2
5
Sorry for the lack of recent updates! I'll look into this ASAP.
< >
Viser 1-15 af 26 kommentarer
Per side: 1530 50