Re: Xapobj and houses

From: Peter Ajamian (pajamian@cheapsam.com)
Date: 09/15/99


Jesper Andersen wrote:

> I have tried the extremely good snippet which makes the server more
> flexible and fun to use. But there is a small problem that I cant figure
> out. It isnt a problem to save objects that lies in a player-house, but
> it gives a error-log in from handler.c(function obj_to_room). With my
> dizzy mind I cant figure out why it wont work, the function is here if
> it helps:
> void obj_to_room(struct obj_data * object, room_rnum room)
> {
>   if (!object || room < 0 || room > top_of_world)
>     log("SYSERR: Illegal value(s) passed to obj_to_room");
>   else {
>     object->next_content = world[room].contents;
>     world[room].contents = object;
>     object->in_room = room;
>     object->carried_by = NULL;
>     if (ROOM_FLAGGED(room, ROOM_HOUSE))
>       SET_BIT(ROOM_FLAGS(room), ROOM_HOUSE_CRASH);
>   }
> }
>
> Anybody who has a solution as my mind os working on overtime at the
> moment.
>
> /Shadow

Try changing the error mesage to give you more information which you can use
to help you figure out what's going on...

    log("SYSERR: Illegal value(s) passed to obj_to_room, object=%x room=%hd
top_of_world=%hd", object, room, top_of_world);


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST