I'm trying to add a new obj field, "creator". When I add it in the correct places, I get this on startup:
mud.h:
obj_index_data:
obj_data:
save.c:
fwrite_obj:
fread_obj:
db.c:
load_objects:
create_object:
make_object:
I think thats about it. I've added a variable field before to objects, and it worked fine. Why is this not working?
It compiles without errors or warnings.
Sat Sep 25 19:54:16 2004 :: [*****] FILE: limbo.are LINE: 567
Sat Sep 25 19:54:16 2004 :: [*****] BUG: Fread_number: bad format. (%)
20 0 1
1 0 0 0
1 0 0
#3
coins gold~
%d gold coins~
A pile of gold coins.~
mud.h:
obj_index_data:
char * creator; /* Custom items, who made it */
obj_data:
char * creator; /* Custom items, who made it */
save.c:
fwrite_obj:
if ( QUICKMATCH( obj->creator, obj->pIndexData->creator ) == 0 )
fprintf( fp, "Creator %s\n", obj->creator );
fread_obj:
KEY( "Creator", obj->creator, fread_string( fp ) );
db.c:
load_objects:
pObjIndex->creator = fread_string( fp );
create_object:
obj->creator = QUICKLINK( pObjIndex->creator );
make_object:
pObjIndex->creator = STRALLOC( "" );
pObjIndex->creator = QUICKLINK( cObjIndex->creator );
I think thats about it. I've added a variable field before to objects, and it worked fine. Why is this not working?
It compiles without errors or warnings.