Project Zomboid

Project Zomboid

Inventory Tetris - Grid Based Inventory Overhaul Beta [B41]
此主题已被锁定
Notloc  [开发者] 2023 年 5 月 28 日 下午 6: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
最后由 Notloc 编辑于; 2023 年 6 月 19 日 下午 4:33
< >
正在显示第 1 - 15 条,共 200 条留言
PepperCat 2023 年 5 月 28 日 下午 6: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 2023 年 5 月 28 日 下午 6: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
最后由 Elalfa27 编辑于; 2023 年 5 月 28 日 下午 6:56
Notloc  [开发者] 2023 年 5 月 28 日 下午 6: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 2023 年 5 月 28 日 下午 7:02 
In multiplaye with two mod test noir attach an tetris mod inventori
Notloc  [开发者] 2023 年 5 月 28 日 下午 7:02 
引用自 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:
最后由 Notloc 编辑于; 2023 年 5 月 28 日 下午 7:07
PepperCat 2023 年 5 月 28 日 下午 7: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  [开发者] 2023 年 5 月 28 日 下午 7:28 
@Elalfa
Should be fixed now.
McStabbyTaco3000 2023 年 5 月 28 日 下午 7: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 2023 年 5 月 28 日 下午 8:30 
引用自 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 2023 年 5 月 28 日 下午 8: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 2023 年 5 月 28 日 下午 10:22 
no es compatible con mando , dont work controllers
(open inglish xd )
最后由 LaWeha 编辑于; 2023 年 5 月 28 日 下午 10:22
Notloc  [开发者] 2023 年 5 月 28 日 下午 10:25 
引用自 LaWeha
no es compatible con mando , dont work controllers
(open inglish xd )
Maybe in the future. Not supported yet.
Notloc  [开发者] 2023 年 5 月 28 日 下午 10:25 
引用自 KONIJIMA
引用自 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 2023 年 5 月 28 日 下午 10:28 
Just found like 30 toilet papers in one cupboard
Notloc  [开发者] 2023 年 5 月 28 日 下午 10:50 
Thats a vanilla thing. A reference to when people hoarded toilet paper during covid.
< >
正在显示第 1 - 15 条,共 200 条留言
每页显示数: 1530 50