Problem with loading objects on reboot

Posted by Slyone on Mon 16 Feb 2004 05:14 AM — 11 posts, 40,915 views.

USA #0
Alright, I'll make an object using ocreate, set every parimiter I can think of with oset, save the area, reboot, but then when I load back up my character, it just says:

[*****] FILE: ../player/s/Slyone LINE: 238
[*****] BUG: Fread_obj: incomplete object.


This happens with ANY object I make. It just deletes it whenever I log on with my character. And it's quite annoying to have to load up areaeditor and make my objects that way every time.

Does anyone know how to fix this??
Australia Forum Administrator #1
Sounds strange. What version of SMAUG are you using? Can you paste the relevant object from the area file?
USA #2
I'm using 1.4a

And no, I can only get the object back if I make it using area editor. It's totally removed from the mud.
Australia #3
I think i got a simular problem that crashed my mud, created an obj removed the prototype flag and left the obj in my inv, did a reboot and BAM server dies, this had to do with me having an obj thats not in the world and it just didnt like it , this was because the area was still proto in /build and not loaded. I had to manualy edit the player file to allow the server to boot. My fix was simple, dont have non proto items of the area im building in my inv.
USA #4
but it's a completely finished and installled area... they dissapear being prototypes, or not.
Australia Forum Administrator #5
There are some posts here about saving things in SMAUG. I forget the details but you need to do foldarea or something like that. Try a search. Check the date on the area file - did it save or not?
USA #6
yes, it says that it was modified yesterday - I save it - and then it says it was modified today. So it's actually saving, but it just doesn't keep my items I make unless I use area editor. (which takes SO much longer)

And I also know about foldarea, and I know all that is working properly.

The items also disappear if I just leave them on the ground. *sighs* They're still totally deleted when I reboot it.
Australia Forum Administrator #7
I'll try to reproduce it. What version of SMAUG are you using? Is it modified? Can you show here exactly what you type to create the new object?
Canada #8
I MIGHT know whats going on, something similiar happened to me when I was doing some building. I wrote an addition to an area, saved it, but the max_room/mob/obj on the area was not set properly. This allowed me to make objects, mobs, and rooms that would disappear because they were not within the areas maxes. Check that, it might be it, because your getting an error that says the vnum doesn't exist (check save.c, I beleive for the actual error).

[EDIT] I beleive that goto/mcreate/ocreate checks that you have an assigned area, and NOT that the vnum is currently inside your area.

[EDIT AGAIN] I tested it by assigning an area, and creating an obj 1 vnum above hi_obj, so out of the area. I removed the prototype, did a foldarea, a copyover, and got this in the log:

Quote:
Tue Feb 17 21:09:15 2004 :: [*****] FILE: ../player/g/Greven LINE: 385
Tue Feb 17 21:09:15 2004 :: [*****] BUG: Fread_obj: bad vnum 31525.
Tue Feb 17 21:09:15 2004 :: [*****] FILE: ../player/g/Greven LINE: 387
Tue Feb 17 21:09:15 2004 :: [*****] BUG: Fread_obj: incomplete object.


So, if thats what your getting, thats likely the problem. SWR ( I assume smaug as well ) will change the hi's and low's of an area to the highest/lowest obj/room/mob. If you assign it vnum 1000-1100, but you only make an object for 1000, then it will change the high to 1000.
Amended on Wed 18 Feb 2004 04:12 AM by Greven
Australia Forum Administrator #9
That's right - see these posts:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3095

And in particular:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3660

That discusses how to fix it.
USA #10
YES!!! THANK YOU!!!

I increased the object vnum range, and made several objects in the new range... and they actually saved and worked!

Thanks again!!! :)