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
➜ Smaug Area Save Problem
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Kraevin
USA (7 posts) Bio
|
| Date
| Tue 28 Jun 2005 09:41 PM (UTC) |
| Message
| | I added a new variable to my mobs called treasure_type. It is a short int variable. I Can mset it and see it in mstat but when i savearea for proto areas or foldareas for installed area that value does not save. I have been beating my head on the wall over this for a while now and hoping someone can tell me what i screwed up or point me at some file loc where the save and load variables are defined that i missed. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #1 on Tue 28 Jun 2005 09:52 PM (UTC) |
| Message
| | Have you added the load/save code to build.c (saving the area) and db.c (loading the area)? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Kraevin
USA (7 posts) Bio
|
| Date
| Reply #2 on Tue 28 Jun 2005 11:09 PM (UTC) Amended on Tue 28 Jun 2005 11:11 PM (UTC) by Kraevin
|
| Message
| Yes i added them I actually got in and look and it is saving it to the area file just not loading it for some reason
here is code i added to loadarea:
letter = fread_letter( fp );
if (letter == '>' || letter == '#')
ungetc(letter,fp);
else
{
ungetc(letter,fp);
pMobIndex->treasure_type = fread_number( fp );
}
The variable is right before mobprogs or next mob.
I had it on the same line as the defenses but that didnt save for somereason.
Actually as i look at it reads to pMobIndex but it is set and saved from Char_data is there somewhere that the mobindex data is transfered to char data?
| | Top |
|
| Posted by
| Kraevin
USA (7 posts) Bio
|
| Date
| Reply #3 on Tue 28 Jun 2005 11:20 PM (UTC) |
| Message
| | After i posted I kept looking and found where its set at :) working now :) | | 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.
13,912 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top