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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Sat Jul 07, 2007 7:01 am   

This code causes mapper to crash. [1.34]
 
Code:
#CALL %mapfilter( %concat( "([Name] = '", %0, "') AND ([ZoneID] = ", %zonenum, ")"))
#LOOP %numrooms {
  #PATHHI %null %mapvnum( %i)
}

This code crashes the program (especially the mapper), but similiar codes did not in earlier versions. Is anyone else experiencing a similir problem?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Jul 07, 2007 5:52 pm   
 
any change in behavior if you use %-1 or %params(1) instead of %0?

Maybe it's tweaking out over the square brackets?
_________________
EDIT: I didn't like my old signature
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Jul 09, 2007 7:01 am   
 
Technically speaking you should not be using %0. It's a quirk from zMUD that I think has been eliminated now. That said you may have discovered another bug. The mapper is directly from zMUD and not all the pieces play nice as yet.
_________________
Asati di tempari!
Reply with quote
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Mon Jul 09, 2007 8:08 am   
 
I've tried both suggestions %-1 and %param(1), but the mapper still crashes. If there is any more information you'd like me to supply in order to resolve this problem feel free to ask.
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Mon Jul 09, 2007 5:17 pm   
 
I was able to run the code locally with no problems. What kind of values do you have for %0 when the error occurs?

What happens if you use the name directly instead of the %0 reference?
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Mon Jul 09, 2007 6:13 pm   
 
I can't get this to fail here either. Maybe there is something corrupted in your *.MDB map database file? Or maybe you can give us more details on the full script and exactly what text you are using to test this (in other words, we need to know what value of %0 you are giving, like Tech said).
Reply with quote
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: Tue Jul 10, 2007 12:08 pm   
 
Pattern: a glowing firefly - (*)

If my MDB file is corrupt, how do I fix it?
Reply with quote
Tech
GURU


Joined: 18 Oct 2000
Posts: 2733
Location: Atlanta, USA

PostPosted: Tue Jul 10, 2007 3:53 pm   
 
What are some sample room names that match?

As for fixing it, I'm not sure but compacting the database may help a bit.
_________________
Asati di tempari!
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Jul 10, 2007 5:57 pm   
 
If there is a bad room or link in your database, then you can try opening the Spreadsheet View in the mapper and look for any rooms that look weird (like have blank names and descriptions, etc). You can try deleting bad rooms and links from that view.

If it's a problem with the database structure itself, you can go to the page http://www.zuggsoft.com/data and download the "MDAC Repair Tool" that is linked there.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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