Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Jul 20, 2009 7:44 am   

[3.09 Pro] In Mapper DB, ExitTbl field ExitIdTo is sometimes incorrect
 
I've been looking around in the file working on reclaiming record numbers and also sorting the ZoneTbl (because default listing in Cmud is not alphabetical...).

I've found that in a newly created map ExitIdTo will faithfully point to the ExitId record that contains the reverse path. In my 4+ year old map I've found that many times the ExitIdTo field is pointing off to an ExitId field that doesn't exist.

My impression from playing around with this is that the ExitIdTo field is essentially ignored. It really is superfluous information since you only really need to load the FromID and ToID fields to know what your return link would be. I've seen that I can set this field to '-1' and Cmud still graphs all the correct exits in the map.

Zugg: Can you confirm if I have correctly assessed the disuse of the ExitIdTo field?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jul 20, 2009 5:19 pm   
 
That would take a fair amount of work to confirm since I'd need to go through all of the code to look for references to this field. It's certainly possible that it was something that was only needed in the old mapper, but it might also be used in unusual circumstances, such as with one-way exits or something. So I certainly wouldn't just assume that it isn't be used anymore.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Mon Jul 20, 2009 5:24 pm   
 
In my working map I've seen that I have hundreds of ExitIdTo fields that are invalid (points to a number that doesn't exist) and the map works. If I change them all to -1 nothing changes. I can correct them in many cases, but I'm also running into duplicates which is a trickier problem to solve since I don't know what to set the ExitIdTo field to if there are two identical reverse exits that it could possibly point to.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net