Kind of a complex issue to explain. Basically I’m using transition.to to move objects and the movements are saved into a table so they can be replayed at a later date. The problem is the objects are removed and thus the movement data that is saved in the table is also lost. The object is stored in the table and everything is there except the _proxy userdata which happens to be vital.
Any ideas how I can retain this data when saving to a table? The data seems to disappear when I use removeself() on the objects even though I’m not directly altering the table in any way. So basically:
savedata = {}
In here all the move data and the objects being moved are stored.
Then when I do object:removeself() or indeed simply closing the game whilst saving the savedata to disk will result in the game objects being gone next time the game is played of course.
After this the savedata is missing _proxy and _class from the stored object data.