|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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? |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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. |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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! ), then use the Filter to get rid of the duplicate entries and viola, i got the final list to look thru! ( 712 of those) |
|
|
|
Vitae Enchanter
Joined: 17 Jun 2005 Posts: 673 Location: New York
|
Posted: 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.) |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|