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
sda
Wanderer


Joined: 18 Apr 2001
Posts: 55
Location: United Kingdom

PostPosted: Sun Aug 25, 2002 10:56 pm   

Access Violation (random)
 
Zmud v6.16

Hello, and please excuse the long posting. There is 3 parts. 1) the error message, 2) the description of when/how, and 3) the associated trigger. I'm not even sure this trigger is to blame as I'm sure it wasn't firing at the time of the error.

1.
A single message window pops up saying:
Error parsing: (a listing of my script), followed by
Message: Access violation at address 004BD5B7 in module 'Zmud.exe'. Read of address 00000010

2.
This seems to be totally random, and today I've had Zmud running with this script active for about hmm... 3 hours and all has been ok - then it decides to go wrong. When it goes wrong and give this message, my status line which looks something like: Hp: @hp" ("@hpmax")" Sp: @sp" ("@spmax")" instead of displaying the variables just displays this text literally.

3.


#IF !@tells {
#IF @selfok {
#VARIABLE healname %word( %trim( %remove( ">", %remove( "[E]:", %lower( %1)))), 1)
checkheal @healname
#IF @healnameok {
#VARIABLE healcommand ""
#VARIABLE healtype %lower( %word( %2, 1))
#IF %ismember( @healtype, @listundamage) {#VARIABLE healcommand %concat( "heal ", @healname)}
#IF %ismember( @healtype, @listcrit) {#VARIABLE healcommand %concat( "uncritical ", @healname, " ", @hcrit)}
#IF %ismember( @healtype, @listtemp) {#VARIABLE healcommand %concat( "untemporary ", @healname, " ", @htemp)}
#IF %ismember( @healtype, @listbleed) {#VARIABLE healcommand %concat( "clot ", @healname, %char( 10), %char( 13), "cutrepair ", @healname)}
#IF %ismember( @healtype, @listpoison) {#VARIABLE healcommand %concat( "depoison ", @healname)}
#IF %ismember( @healtype, @listcure) {#VARIABLE healcommand %concat( "cure ", @healname)}
#IF @healtype="help" {#VARIABLE healcommand %concat( "tell ", @healname, " You may tell, whisper, say or emote heal/crit/temp/bleed/poison/cure")}
#IF @healcommand {
@healcommand
report
}
}
}
}
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Aug 26, 2002 12:09 am   
 
Might want to try e-mailing Zugg directly at [url="mailto:zugg@zuggsoft.com"]zugg@zuggsoft.com[/url] with this problem.

Kjata
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Aug 26, 2002 12:27 am   
 
Many times the "Error parsing: (a listing of my script)" has to do with a variable being not defined and referred to. At least I run into that.

Ton Diening
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5187

PostPosted: Mon Aug 26, 2002 2:33 am   
 
Error parsing messages are very tough to deal with. In one of the beta versions I was consistently getting such a message after prolonged operation. The script it displayed was quite long, but by entering each line at the command I was able to find out that it could no longer parse the DOOR command. Of course none of that helps you.

As near as I can figure the only way to fix that problem is close and relaunch zMud. I am also guessing that the portion of memory that contains the command lookup table gets corrupted. Since I could never figure a way to reproduce it I could never make a bug report and the problem will likely still be there in future versions.
Reply with quote
sda
Wanderer


Joined: 18 Apr 2001
Posts: 55
Location: United Kingdom

PostPosted: Mon Aug 26, 2002 3:05 am   
 
Thankyou all for replying, and I did mail Zugg himself as suggested. Is the solution to use an alias or smaller aliases rather than have all of that code in the trigger itself?

Thanks,
Steve :)
Reply with quote
sda
Wanderer


Joined: 18 Apr 2001
Posts: 55
Location: United Kingdom

PostPosted: Wed Sep 04, 2002 7:15 pm   
 
Thanks for you help folks, but I figured out the problem. I was capturing with (*) and then using %word(%2,1)

All works well, but if (*) captured an exclamation mark ! then Zmud errors on the parsing. Hope this helps sort the problem.

Thanks,
Steve ;)
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