Page 1 of 1

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

Posted: Tue Jun 28, 2016 5:15 pm
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... ;)