Page 1 of 1

[1.1.61] modded "item-with-inventory" with "dynamic" inventory size: GUI crashes

Posted: Mon Jul 04, 2022 2:24 am
by Honktown
dynamic-item-with-inventory_0.0.1.zip
(852 Bytes) Downloaded 100 times
One line:

Code: Select all

data.raw["item-with-inventory"]["item-with-inventory"].inventory_size = "dynamic"
Expectation: Not crash. Probably not valid in the prototype phase (inventory_size = "dynamic" is used by the blueprint book, but it is inherited from item-with-inventory)

Crashes:
1) /c game.player.insert("item-with-inventory") . 2x if new game.
2) open the item-with-inventory, there will be nothing but a label button
3) fast transfer initial items (furnace, burner, plates?). Close/escape and re-open, items are showing.

4a) fast transfer middle item. ctrl-click to fast transfer inventory. Crash:
error_from_ctrl-clicking-middle-slot.txt
(5.34 KiB) Downloaded 105 times

4b) fast transfer last stack. Crash:
error_from_shift-clicking.txt
(3.8 KiB) Downloaded 107 times

Re: [1.1.61] modded "item-with-inventory" with "dynamic" inventory size: GUI crashes

Posted: Mon Jul 04, 2022 2:26 am
by Honktown
This is the initial inventory that can trigger both errors:
initial_inventory.png
initial_inventory.png (60.22 KiB) Viewed 2353 times

Re: [1.1.61] modded "item-with-inventory" with "dynamic" inventory size: GUI crashes

Posted: Wed Mar 15, 2023 6:15 pm
by Rseding91
Thanks for the report. From looking into it the dynamic logic was only ever meant to apply to blueprint books so the rest of the handling logic isn't ready for it. For now I'm going to disable setting "dynamic" on not-blueprint-books.