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 ➜ SMAUG ➜ SMAUG coding ➜ Hotboot Question

Hotboot Question

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


Posted by Toy   (206 posts)  Bio
Date Wed 09 Jun 2004 03:30 PM (UTC)
Message
I'd heard about the Hotboot snippet, so I installed it and everything worked fine, until I ran into this issue:

Wed Jun 9 11:06:08 2004 :: [*****] BUG: read_obj_file: # not found.
Wed Jun 9 11:06:08 2004 :: [*****] BUG: Fread_obj: no match.
Wed Jun 9 11:06:08 2004 :: [*****] BUG: Silver_Cost
Wed Jun 9 11:06:08 2004 :: [*****] BUG: read_obj_file: # not found.

I've added a currency snippet so the money forms are gold, silver, and copper. I've looked over the hotboot.c code, but I haven't been able to track down how to fix this problem. Any one have some feed back on what I'm maybe missing?

- Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #1 on Thu 10 Jun 2004 01:01 AM (UTC)
Message
Looks to me like the problem does not lie within hotboot.c. It is just loading all of the objects like you asked it to. I think the problem is that the money is being saved as object. I'm not really sure what I would do, maybe use the default academy area (some spare obj vnums) and put them there, then define them in the code like a few of the others are. You've prolly seen them.

Yeah.... I'm not totally sure, however.

~Nick Cash
http://www.nick-cash.com
Top

Posted by Toy   (206 posts)  Bio
Date Reply #2 on Thu 10 Jun 2004 05:32 AM (UTC)
Message
immortal.are : Rooms: 200 - 299 Objs: 200 - 299 Mobs: 200 - 299
limbo.are : Rooms: 1 - 43 Objs: 2 - 99 Mobs: 1 - 99
newbie.are : Rooms: 800 - 999 Objs: 800 - 999 Mobs: 800 - 999
entrance.are : Rooms: 100 - 199 Objs: 100 - 199 Mobs: 100 - 199
yvgaria.are : Rooms: 300 - 799 Objs: 300 - 720 Mobs: 300 - 799
ocean.are : Rooms: 1000 - 3999 Objs: 0 - 0 Mobs: 1000 - 1001
graveyard.are : Rooms: 4300 - 4399 Objs: 4300 - 4399 Mobs: 4300 - 4399
Thu Jun 10 01:27:24 2004 :: Fixing exits
Thu Jun 10 01:27:24 2004 :: Initializing economy
Thu Jun 10 01:27:24 2004 :: Loading world state...
Thu Jun 10 01:27:24 2004 :: World state: loading mobs
Thu Jun 10 01:27:24 2004 :: World state: loading objs
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Copper_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Copper_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Fread_obj: no match.
Thu Jun 10 01:27:24 2004 :: [*****] BUG: Silver_Cost
Thu Jun 10 01:27:24 2004 :: [*****] BUG: read_obj_file: # not found.
Thu Jun 10 01:27:24 2004 :: Resetting areas...
Resetting: immortal.are
Resetting: limbo.are
Resetting: newbie.are

The errors sprout there during the hotboot. Currently trying to track down the problem, but 'm not getting anywhere.

The snippet I originally used was here:
http://www.afkmud.com/scripts/download.php?file=Sadiq/money.txt

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #3 on Thu 10 Jun 2004 12:11 PM (UTC)
Message
Your problem still lies somewhere within fread_obj, which is in save.c and has nothing to do with the hotboot code. read_obj_file is simply making use of fread_obj to handle loading the individual objects. So you should be looking through both fread_obj and fwrite_obj to see why the format isn't matching up to what the mud is expecting. Once the file format gets out of whack, more errors will be reported.
Top

Posted by Toy   (206 posts)  Bio
Date Reply #4 on Thu 10 Jun 2004 06:23 PM (UTC)
Message
*Whaps himself in the forehead* Well, that was an easy fix. Under fread_obj in save.c it made this call:

KEY( "Silver_Cost", obj->silver_cost, fread_number( fp ));

The error was due to a typo. Mistakenly it was reading Silver_cost, which was throwing everything off.

Note to self: Typos will kill ya. :)

-Toy

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
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.


17,920 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.