Project Zomboid

Project Zomboid

Inventory Tetris - Grid Based Inventory Overhaul Beta [B41]
Denne tråd er blevet låst
Notloc  [udvikler] 28. maj 2023 kl. 18:40
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
Sidst redigeret af Notloc; 19. juni 2023 kl. 16:33
< >
Viser 1-15 af 200 kommentarer
PepperCat 28. maj 2023 kl. 18:43 
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. maj 2023 kl. 18:54 
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
Sidst redigeret af Elalfa27; 28. maj 2023 kl. 18:56
Notloc  [udvikler] 28. maj 2023 kl. 18:59 
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. maj 2023 kl. 19:02 
In multiplaye with two mod test noir attach an tetris mod inventori
Notloc  [udvikler] 28. maj 2023 kl. 19:02 
Oprindeligt skrevet af 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:
Sidst redigeret af Notloc; 28. maj 2023 kl. 19:07
PepperCat 28. maj 2023 kl. 19:20 
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  [udvikler] 28. maj 2023 kl. 19:28 
@Elalfa
Should be fixed now.
McStabbyTaco3000 28. maj 2023 kl. 19:58 
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. maj 2023 kl. 20:30 
Oprindeligt skrevet af 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. maj 2023 kl. 20:55 
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. maj 2023 kl. 22:22 
no es compatible con mando , dont work controllers
(open inglish xd )
Sidst redigeret af LaWeha; 28. maj 2023 kl. 22:22
Notloc  [udvikler] 28. maj 2023 kl. 22:25 
Oprindeligt skrevet af LaWeha:
no es compatible con mando , dont work controllers
(open inglish xd )
Maybe in the future. Not supported yet.
Notloc  [udvikler] 28. maj 2023 kl. 22:25 
Oprindeligt skrevet af KONIJIMA:
Oprindeligt skrevet af 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. maj 2023 kl. 22:28 
Just found like 30 toilet papers in one cupboard
Notloc  [udvikler] 28. maj 2023 kl. 22:50 
Thats a vanilla thing. A reference to when people hoarded toilet paper during covid.
< >
Viser 1-15 af 200 kommentarer
Per side: 1530 50