|
emnaki Wanderer
Joined: 12 May 2007 Posts: 59
|
Posted: 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? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
emnaki Wanderer
Joined: 12 May 2007 Posts: 59
|
Posted: 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.
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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).
|
|
|
|
emnaki Wanderer
Joined: 12 May 2007 Posts: 59
|
Posted: Tue Jul 10, 2007 12:08 pm |
Pattern: a glowing firefly - (*)
If my MDB file is corrupt, how do I fix it? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: 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! |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: 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. |
|
|
|
|
|