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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Aug 26, 2008 2:59 pm   

Script to list null exits?
 
Finding several areas that have a duplicate exit that leads to nothing. (2 downs one works, the other leads nowhere)
Is there a way to output that on to the screen or file so I can go thru it and verify these?
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Aug 26, 2008 4:44 pm   
 
taking a look at the map file in Access, looks like:
Exit.Tbl.ExitIdTo = -1
FromID and ToID are the same.
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Aug 26, 2008 5:10 pm   
 
Meh, never mind.
Figured out that i could just copy all the FromID and ToID entries with the ExitIdTo of -1 (2574 of them!), paste them into Excel, and use =A1-B1 and any that = 0 are the ones i need to look at (only 1090 of those! Shocked ), then use the Filter to get rid of the duplicate entries and viola, i got the final list to look thru! ( Crying or Very sad 712 of those)
Reply with quote
Vitae
Enchanter


Joined: 17 Jun 2005
Posts: 673
Location: New York

PostPosted: Tue Aug 26, 2008 5:28 pm   
 
Well, put all 712 rooms into a var called exits and am using #tel to pop around it with an alias with body: #tel %pop( exits)
And just deleting them
Already fixed 10 :-)

(before anyone "warns" me...yeap, i'm making sure that they are actual dupes and don't lead anywhere, and avoiding mazes.)
_________________
http://www.Aardwolf.com
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Aug 26, 2008 10:48 pm   
 
I think you can use %roomlink() for this, but the loop might be too slow to use safely online (on Aardwolf when I had like 15,000 rooms, trying to move more than a couple hundred or so at a time took forever).

Oh, and to remove mazes from this consideration you might want to turn the exits into double-back exits (a circle, rather than a straight-line stub). These types of exits (current room number) are different from stubs (-1).
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion 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