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
➜ SMAUG
➜ SMAUG coding
➜ Warm-booting, in its simplest form.
Warm-booting, in its simplest form.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Marowi
(65 posts) Bio
|
Date
| Thu 22 Apr 2004 08:55 AM (UTC) |
Message
| Warmboot/Copyover/Hotboot/whatever has many many snippets posted world-wide. I'd simply like to know what it does, in the simplest terms possible. As in, basic steps. | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Thu 22 Apr 2004 03:39 PM (UTC) |
Message
| Well, each one is usually different. For example, Erwins copyover just does the basic steps, where Samson's Hotboot is based on Erwins, but saves all the mobs and objects were they are, and mine saves almost everything, engineering skills, mobs, objects, ships, etc. The one to use is dependant on your needs. Here is the basic concept though:
1. Open a file, and save each player descriptors info into it, like, a players character, the port they are connected through, etc.
2. Save this file and close it.
3. Call "execl()" system function, booting a new version of the game, dependant on the values you pass execl(like port and name and such). The new one will inheiret the parent descriptors, and kill the parent program.
4. While booting the mud on the new one, loadup all the player file, and set up the descriptors again, based on the info that was written to the copyover file
Hope that helps some, its better to look through the code. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | 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.
9,398 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top