Project Zomboid

Project Zomboid

Nested Containers
Clam Chowderメ 2024년 1월 10일 오후 7시 02분
(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.
< >
전체 댓글 5개 중 1~5개 표시 중
Tectin 2024년 6월 6일 오전 9시 06분 
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 2024년 6월 6일 오전 9시 41분 
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  [개발자] 2024년 7월 10일 오전 7시 51분 
Sadly the way that PZ works I had to completely override the file ;_;
Sioyth  [개발자] 2024년 7월 10일 오전 7시 51분 
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 2025년 1월 31일 오후 2시 22분 
im curious to the status of this: is this the workaround I should use or do i need to pick one or the other?
< >
전체 댓글 5개 중 1~5개 표시 중
페이지당 표시 개수: 1530 50