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
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.
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
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.
*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