smart chests disappeared/migrated and lost in my mod...

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

smart chests disappeared/migrated and lost in my mod...

Post by binbinhfr »

Hi,

in my cargo-rocket mod (viewtopic.php?f=93&t=26794),
I used a smart-chest to create another chest type, and I tracked these objects into a global array.
But smart-chests are not existing anymore and they are automatically transformed into steel-chests.
But in the transformation, it seems that they changed their variable pointer / entity id : my array of smart-chests points to invalid objects now, even if I can see them on the map...

Is there a way to retrieve these new steel-chests and update their entity id in my chest array ? migration ? on_load ? I'm lost... ;)
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding help”