Project Zomboid

Project Zomboid

Nested Containers
Clam Chowderメ 10 ENE 2024 a las 7:02 p. m.
(Debug mode issues with) Nested Containers + Inventory Tetris
for some reason when you're using debug mode and launch the game with these 2 mods, you can't edit the stacksize of any particular items such as water bottle grid size, stack size, etc etc. You're still able to edit the container size from backpack and storage containers however.
< >
Mostrando 1-5 de 5 comentarios
Tectin 6 JUN 2024 a las 9:06 a. m. 
I looked into this and figured out why this is the case

"Nested Containers" completely hardcodes all the context menu entries and is with this probably somewhat incompatible with all other mods that interact with the context menu

There seems to be multiple ways to work around this

You are still able to edit the container size just because in "InventoryTetris" the container debug options are added after the call to `ItemGridUI.openItemContextMenu`
This is not done for the item debug options

It is possible to add the item debug options after the `ItemGridUI.openStackContextMenu`

File: `ItemGridUI_events.lua`
Line: 109

or just change `menu:addOptionOnTop` to `menu:addOption` in file `InventoryTetris_DevTool.lua`
Tectin 6 JUN 2024 a las 9:41 a. m. 
Ok after futher investigation it does seem to be necessary to add
```
local item = ItemStack.getFrontItem(gridStack, self.grid.inventory)
TetrisDevTool.insertDebugOptions(menu, item)
```

to `ItemGridUI_events.lua` after line 109

effectively skipping whatever nested containers does to the context menu
Sioyth  [desarrollador] 10 JUL 2024 a las 7:51 a. m. 
Sadly the way that PZ works I had to completely override the file ;_;
Sioyth  [desarrollador] 10 JUL 2024 a las 7:51 a. m. 
Publicado originalmente por Tectin:
Ok after futher investigation it does seem to be necessary to add
```
local item = ItemStack.getFrontItem(gridStack, self.grid.inventory)
TetrisDevTool.insertDebugOptions(menu, item)
```

to `ItemGridUI_events.lua` after line 109

effectively skipping whatever nested containers does to the context menu

It seems this is on their end then ;/
Q 31 ENE a las 2:22 p. m. 
im curious to the status of this: is this the workaround I should use or do i need to pick one or the other?
< >
Mostrando 1-5 de 5 comentarios
Por página: 1530 50