Project Zomboid

Project Zomboid

Inventory Tetris - Grid Based Inventory Overhaul Beta [B41]
This topic has been locked
Notloc  [developer] 28 May, 2023 @ 6:40pm
BUG REPORTS [BETA 1 - 3]
Report your bugs here!
Please try to provide any and all relevant details about the issues or error you encountered, otherwise its hard for me to help.

Known Issue I am actively working on:
  • General balance
  • Grid layout sync in vehicles in multiplayer
  • Equipment UI flicker and a some missing drag-n-drop event handlers
Last edited by Notloc; 19 Jun, 2023 @ 4:33pm
< >
Showing 1-15 of 200 comments
PepperCat 28 May, 2023 @ 6:43pm 
Hello!
The mod is currently incompatible with the Snake's modpack, I'm trying to fix it, I was able to fix the grid that was not being shown (the traditional inventory appeared) by just storing the old ISInventoryPane:refreshContainer(). But now every object that I moved throws this lua error:

LOG : General , 1685324291616> -----------------------------------------
STACK TRACE
-----------------------------------------
function: _getItemData -- file: TetrisItemData.lua line # 21 | MOD: Inventory Tetris
function: getItemSize -- file: TetrisItemData.lua line # 7 | MOD: Inventory Tetris
function: _renderGridItem -- file: ItemGridUI_rendering.lua line # 304 | MOD: Inventory Tetris
function: _renderGridStack -- file: ItemGridUI_rendering.lua line # 293 | MOD: Inventory Tetris
function: renderStackLoop -- file: ItemGridUI_rendering.lua line # 211 | MOD: Inventory Tetris
function: renderGridItems -- file: ItemGridUI_rendering.lua line # 186 | MOD: Inventory Tetris
function: render -- file: ItemGridUI_rendering.lua line # 133 | MOD: Inventory Tetris

ERROR: General , 1685324291627> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getFullType of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1685324291627> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getFullType of non-table: null

ANy idea? of course this does not appears when the mod is alone, just trying to make both compatible :)
Elalfa27 28 May, 2023 @ 6:54pm 
function: Add -- file: ItemGrid.lua line # 785 | MOD: Inventory Tetris

LOG : General , 1685324110937> 35,956,506> EXITDEBUG: setGameSpeed 1
LOG : General , 1685324110937> 35,956,507> EXITDEBUG: setGameSpeed 3
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: pauseSoundAndMusic 1
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: pauseSoundAndMusic 2
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: setShowPausedMessage 1
LOG : General , 1685324110938> 35,956,508> EXITDEBUG: setShowPausedMessage 2
LOG : General , 1685324110938> 35,956,508> EXITDEBUG: Core.quitToDesktop
LOG : General , 1685324110940> 35,956,510> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: ItemGrid.lua line # 785 | MOD: Inventory Tetris

ERROR: General , 1685324110941> 35,956,510> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in Add at KahluaUtil.fail line:82.
ERROR: General , 1685324110941> 35,956,510> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in Add
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.pcallvoid(KahluaThread.java:1812)
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:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1685324110942> 35,956,512> -----------------------------------------
STACK TRACE



infinity of this error
Last edited by Elalfa27; 28 May, 2023 @ 6:56pm
Notloc  [developer] 28 May, 2023 @ 6:59pm 
Hmm, OK I do understand whats going on. You're
A: in multiplayer
B: You have a container that is not an item, and is not a world object.

Not entirely sure how that happened, but I'll see what I can do.
Elalfa27 28 May, 2023 @ 7:02pm 
In multiplaye with two mod test noir attach an tetris mod inventori
Notloc  [developer] 28 May, 2023 @ 7:02pm 
Originally posted by PepperCat:
Hello!
The mod is currently incompatible with the Snake's modpack, I'm trying to fix it, I was able to fix the grid that was not being shown (the traditional inventory appeared) by just storing the old ISInventoryPane:refreshContainer(). But now every object that I moved throws this lua error:

LOG : General , 1685324291616> -----------------------------------------
STACK TRACE
-----------------------------------------
function: _getItemData -- file: TetrisItemData.lua line # 21 | MOD: Inventory Tetris
function: getItemSize -- file: TetrisItemData.lua line # 7 | MOD: Inventory Tetris
function: _renderGridItem -- file: ItemGridUI_rendering.lua line # 304 | MOD: Inventory Tetris
function: _renderGridStack -- file: ItemGridUI_rendering.lua line # 293 | MOD: Inventory Tetris
function: renderStackLoop -- file: ItemGridUI_rendering.lua line # 211 | MOD: Inventory Tetris
function: renderGridItems -- file: ItemGridUI_rendering.lua line # 186 | MOD: Inventory Tetris
function: render -- file: ItemGridUI_rendering.lua line # 133 | MOD: Inventory Tetris

ERROR: General , 1685324291627> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getFullType of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1685324291627> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getFullType of non-table: null

ANy idea? of course this does not appears when the mod is alone, just trying to make both compatible :)

I'll take a look soon. Just gotta focus on the more basic reports and suggestions before I tackle something like Snake's :tshock:

I was actually about to just say, "No, it's probably not gonna work" but then I realized you're one of the devs on Snake's, so I'm willing to give it a fair go in that case. :spiffo:
Last edited by Notloc; 28 May, 2023 @ 7:07pm
PepperCat 28 May, 2023 @ 7:20pm 
Ok so update about what I was able to do:
Just with this two lines:

local vanilla_refreshContainer = ISInventoryPane.refreshContainer
function ISInventoryPane:refreshContainer()
-- bla bla
-- bla bla
vanilla_refreshContainer(self)
end



- The grid shows all success and looks like it is working as expected (except for the error when moving objects)
- Tested a couple of the mechanics such as: change fishes states from alive to dead, make dry bear fur, make cheese and others and they all works good. Same again, when the state change that lua error appears.

LOG : General , 1685326431147> -----------------------------------------
STACK TRACE
-----------------------------------------
function: _getItemData -- file: TetrisItemData.lua line # 21 | MOD: Inventory Tetris
function: getItemSize -- file: TetrisItemData.lua line # 7 | MOD: Inventory Tetris
function: _renderGridItem -- file: ItemGridUI_rendering.lua line # 304 | MOD: Inventory Tetris
function: _renderGridStack -- file: ItemGridUI_rendering.lua line # 293 | MOD: Inventory Tetris
function: renderStackLoop -- file: ItemGridUI_rendering.lua line # 211 | MOD: Inventory Tetris
function: renderGridItems -- file: ItemGridUI_rendering.lua line # 186 | MOD: Inventory Tetris
function: render -- file: ItemGridUI_rendering.lua line # 133 | MOD: Inventory Tetris

ERROR: General , 1685326431147> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getFullType of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1685326431147> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getFullType of non-table: null

Always that one. Hope this helps to get this sorted out! Hope we can play with both mods soon :D btw awesome work!
Notloc  [developer] 28 May, 2023 @ 7:28pm 
@Elalfa
Should be fixed now.
McStabbyTaco3000 28 May, 2023 @ 7:58pm 
Trying to open the inventory and trying to rebind the button to open the inventory does nothing but bring up an error. I thought it was an issue with SpiffUI but I unsubscribed and it still didn't work.
KONIJIMA 28 May, 2023 @ 8:30pm 
Originally posted by Elalfa:
function: Add -- file: ItemGrid.lua line # 785 | MOD: Inventory Tetris

LOG : General , 1685324110937> 35,956,506> EXITDEBUG: setGameSpeed 1
LOG : General , 1685324110937> 35,956,507> EXITDEBUG: setGameSpeed 3
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: pauseSoundAndMusic 1
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: pauseSoundAndMusic 2
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: setShowPausedMessage 1
LOG : General , 1685324110938> 35,956,508> EXITDEBUG: setShowPausedMessage 2
LOG : General , 1685324110938> 35,956,508> EXITDEBUG: Core.quitToDesktop
LOG : General , 1685324110940> 35,956,510> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: ItemGrid.lua line # 785 | MOD: Inventory Tetris

ERROR: General , 1685324110941> 35,956,510> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in Add at KahluaUtil.fail line:82.
ERROR: General , 1685324110941> 35,956,510> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in Add
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.pcallvoid(KahluaThread.java:1812)
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:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1685324110942> 35,956,512> -----------------------------------------
STACK TRACE



infinity of this error

did you get this error after dieing and respawning?
Flandre Scarlet 28 May, 2023 @ 8:55pm 
i got error
function: canAddItem -- file: ItemContainerGrid.lua line # 145 | MOD: Inventory Tetris
function: quickMoveItemToContainer -- file: ItemGridUI_events.lua line # 293 | MOD: Inventory Tetris
function: quickMoveItems -- file: ItemGridUI_events.lua line # 274 | MOD: Inventory Tetris
function: handleClick -- file: ItemGridUI_events.lua line # 256 | MOD: Inventory Tetris
function: onMouseUp -- file: ItemGridUI_events.lua line # 53 | MOD: Inventory Tetris

ERROR: General , 1685332460901> 340,887,046> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: getActualWeight of non-table: null at KahluaThread.tableget line:1689.
ERROR: General , 1685332460901> 340,887,046> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: attempted index: getActualWeight of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1689)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:641)
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.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIElement.onMouseUp(UIElement.java:1183)
at zombie.ui.UIManager.update(UIManager.java:816)
at zombie.GameWindow.logic(GameWindow.java:262)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:667)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1685332460902> 340,887,047> -----------------------------------------
STACK TRACE
LaWeha 28 May, 2023 @ 10:22pm 
no es compatible con mando , dont work controllers
(open inglish xd )
Last edited by LaWeha; 28 May, 2023 @ 10:22pm
Notloc  [developer] 28 May, 2023 @ 10:25pm 
Originally posted by LaWeha:
no es compatible con mando , dont work controllers
(open inglish xd )
Maybe in the future. Not supported yet.
Notloc  [developer] 28 May, 2023 @ 10:25pm 
Originally posted by KONIJIMA:
Originally posted by Elalfa:
function: Add -- file: ItemGrid.lua line # 785 | MOD: Inventory Tetris

LOG : General , 1685324110937> 35,956,506> EXITDEBUG: setGameSpeed 1
LOG : General , 1685324110937> 35,956,507> EXITDEBUG: setGameSpeed 3
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: pauseSoundAndMusic 1
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: pauseSoundAndMusic 2
LOG : General , 1685324110938> 35,956,507> EXITDEBUG: setShowPausedMessage 1
LOG : General , 1685324110938> 35,956,508> EXITDEBUG: setShowPausedMessage 2
LOG : General , 1685324110938> 35,956,508> EXITDEBUG: Core.quitToDesktop
LOG : General , 1685324110940> 35,956,510> -----------------------------------------
STACK TRACE
-----------------------------------------
function: Add -- file: ItemGrid.lua line # 785 | MOD: Inventory Tetris

ERROR: General , 1685324110941> 35,956,510> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in Add at KahluaUtil.fail line:82.
ERROR: General , 1685324110941> 35,956,510> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in Add
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.pcallvoid(KahluaThread.java:1812)
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:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1685324110942> 35,956,512> -----------------------------------------
STACK TRACE



infinity of this error

did you get this error after dieing and respawning?
Should be fixed with v1.2
Boobie 28 May, 2023 @ 10:28pm 
Just found like 30 toilet papers in one cupboard
Notloc  [developer] 28 May, 2023 @ 10:50pm 
Thats a vanilla thing. A reference to when people hoarded toilet paper during covid.
< >
Showing 1-15 of 200 comments
Per page: 1530 50