Project Zomboid

Project Zomboid

Inventory Tetris B42 Patch
 This topic has been pinned, so it's probably important
Malkiot  [developer] 7 Oct @ 12:01pm
Bug Report Thread
If you encounter any issues while using this patch, please report them here.

When reporting a bug, please include as much of the following information as possible:

Reproducible on new save: yes / no
Happens without patch: yes / no
Other mods:
Error description: (Please include screenshots or a short recording if possible)
Error log: Please upload to https://pastebin.com/
Other notes: (Anything else you noticed — load order, other active mods, etc.)
Last edited by Malkiot; 7 Oct @ 2:56pm
< >
Showing 1-12 of 12 comments
Reproducible: Randomly, but yes.
Happens without patch: Yes
Other mods: One that may affect the mod is Spongie's Open jackets.
It's clothing items using that framework that get bugged, but the error is from Tetris.

When Spongies Open Jackets affected items such as vanilla jackets or pants take enough damage, they can't be worn despite being repaired with patches using the tailoring skill.
The damage calculation from trees and zombies is a little too random to accurately reproduce the bug on a new clean save

This only started happening after the 42.12 update
The patch mod did not fix this particular issue so far, but it fixed other things.
Image and log attached.

https://pastebin.com/0nzPxVW9
https://i.imgur.com/7QI3A6j.png
https://i.imgur.com/zLN9uWv.png
ivmakk 8 Oct @ 4:17pm 
Hey @Malkiot @Johnny Dollar

I’ve never used the Tetris mod myself, but I’m maintaining another temporary one - Clean UI B42.12 Hotfix - and all RMB exceptions with “file: ISInventoryPaneContextMenu.lua line #959 | Vanilla" most likely can be reproduced on Tetris mod.

I’ve described all my findings in the Clean F.A.Q. under “5. I see errors on the RMB context menu in the inventory panel”. Unfortunately, only a few users report back which specific mods cause these errors (I believe there are many - usually mods with recipes using old syntax, typically B41/42 mods without recent updates).

For now, Common Sense is the most common source of this issue, so I’d recommend disabling it first.
Malkiot  [developer] 9 Oct @ 1:41am 
Hi @Johnny Dollar

The error you describe is due to bad syntax in the repair recipes or some other issue causing the fixing recipe table to be corrupted, such that when it is queried for required items "NULL" is returned.

Originally posted by Pastebin:
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.ArrayList.contains(Object)" because the return value of "zombie.scripting.objects.Fixing.getRequiredItem()" is null

The body location compatibility patch would not adress this issue, as they are related only in that they were introduced in the same update.

I loaded only with Inventory Tetris, my patch, Spongies Clothes, Spongies Open Jackets loaded. I tested three pieces of clothing, damaged vanilla T-Shirt, ruined vanilla Jumper, damaged Open Field Jacket (from your screenshot). I was able to repair the holes via the inspect menu, fully restoring the clothing and wearing it.

As Spongies Open Jackets and Clothing mods do not include any Fixing Recipes, this is likely being caused by another mod.
Just to clarify (and thank you for the keyring issue) this does indeed conflict with Week One. I have no idea why.
@Malkiot
Strange.
I made a backup save and ran only these mods and the problem persisted for me.
Went on Spongie's clothing mod and saw more people reporting the same issue that I have.

Thank you for checking it out and explaining it.
At least I can still wear clothes by dragging them to the slots when using Tetris.
Kane 9 Oct @ 9:56am 
Reproducible on new save: yes
Happens without patch: no
Other mods:
Error description: can't pick up tv
Error log:
https://pastebin.com/LmTzCsuZ
https://pastebin.com/w8vBnteM
https://pastebin.com/TZvi04S5
Other notes: seems to be some problem with the inventorytetris_disable_carry_capacity
Malkiot  [developer] 9 Oct @ 6:28pm 
@Kane
It should be fixed now.
Kane 10 Oct @ 5:03am 
Originally posted by Malkiot:
@Kane
It should be fixed now.
it works, thank you SM
Milk ♡ 13 Oct @ 8:02pm 
function: doTooltipForItem -- file: InventoryTetris_InventoryPane.lua line # 280 | MOD: Inventory Tetris
function: updateTooltip -- file: InventoryTetris_InventoryPane.lua line # 229 | MOD: Inventory Tetris
function: update -- file: ISInventoryPane.lua line # 1808 | Vanilla
java.lang.RuntimeException: Object tried to call nil in doTooltipForItem
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:101)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:817)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1668)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:38)
at zombie.ui.UIElement.update(UIElement.java:2064)
at zombie.ui.UIElement.update(UIElement.java:2081)
at zombie.ui.UIManager.updateUIElements(UIManager.java:1056)
at zombie.ui.UIManager.update(UIManager.java:808)
at zombie.GameWindow.logic(GameWindow.java:329)
at zombie.GameWindow.frameStep(GameWindow.java:923)
at zombie.GameWindow.mainThreadStep(GameWindow.java:647)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
Malkiot  [developer] 14 Oct @ 2:42am 
Hi Milk,
That is not a complete report.
Reproducible: yes
Happens without patch: No
Other mods: none that affect this

For some reason the more you open your inventory the laggier it gets, which becomes noticeable when you frequently sort something for example.
Definitely additive as holding inventory for long doesn't cause lag to increase.
< >
Showing 1-12 of 12 comments
Per page: 1530 50