Persistent Objects

Posted by Lmclarke on Mon 18 Apr 2016 06:55 AM — 2 posts, 14,353 views.

#0
I have no idea where to begin on this, but what I am hoping to accomplish is having objects -- if they're on the ground without resets -- persist over copyover/reboot.

I realize this could potentially get pretty nutty on memory, but to describe us as a "small" game would be an understatement. People don't have a plethora of items, either. There are no mobs or equipment/items being generated in the world. Just the few things people make for themselves.

How would I go about handling this? Is there a way to make all objects persist over copyover/reboot?
Australia Forum Administrator #1
There's bound to be a way. I haven't looked at the ROM code for a while. You would probably need to go through all rooms, find if anything was left on the ground, save that information to a file, and then after the reboot read it back again, and put them back.