Changed rnums with olc (using room-tables) (fwd)

From: Billy H. Chan (陈浩然) (bhchan@po.EECS.Berkeley.EDU)
Date: 04/14/96

You recently wrote:
   Date: Sat, 13 Apr 1996 20:21:06 +0200 (MET DST)
   From: Thomas Krautz <>
   Subject: Changed rnums with olc (using room-tables)
   Just wondering how the OLCs that are currently in existance handle
   creating new rooms. It seems like you'd have to realloc (+1) and
   then renumber the world again (just inc. by one)... THis seems rather
   easy but when you've got a bunch of real_room references that are
   *not* in room,char,mob data-lists (e.g. the start_rooms) what would
   you do there? I mean beside updating them too, is there another 
   possibility for instance not having the need for a subsequent rising
   of the rnums/vnums in the room table?
My solution, and it's semi-wasteful, was to preallocate all that memory.
Let each zone have it's full x00 rooms (using dummy rooms for those that
aren't currently in use).  Thus, no memory problems or renumbering
Of course, if memory is tight, this won't help a bit, but at least for the
Menudriven olc by Levork(wonder if it's still avail at cambot), it avoided
many problems.   
Plus, most builders seem to have no problems filling all 100 rooms out.


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