Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ ROM ➜ Running the server ➜ Persistent Objects

Persistent Objects

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Lmclarke   (26 posts)  Bio
Date Mon 18 Apr 2016 06:55 AM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 18 Apr 2016 11:56 PM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,005 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.