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
jluce7
Beginner


Joined: 20 Dec 2005
Posts: 22

PostPosted: Wed Apr 12, 2006 12:24 am   

Access Violations ?? WTF? Any help please!
 
Greetings,
I was wondering if you could help me determine just what is going on with this. I recently rewrote a script for Achaea. It basically uses variable stringlists to track afflictions and alias' to access the variable using #IFs and %ismember to get the cure. (I was told this may be the cause, which is why I am mentioning it here.)

Basically, in mid combat, I get this:

Access Violation at 0x0040C76D (tried to write to 0x00EEE0B64), program terminated.

Needless to say, this has resulted in my death numerous times on Achaea and is enough to make me scream.and punch random things each time. Here's an example of the way I have it set up....

#ALIAS HERBABLE {#ADDI HerbalAfflictions %1}

#ALIAS herbalcheck {#IF (@herbbalance="yes" AND @HerbalAfflictions !="" AND @asleep="no") {HerbEater}}

#ALIAS HerbEater {#IF (%ismember(asthma, @HerbalAfflictions)) {kelp} {#IF (%ismember(impatience, @HerbalAfflictions)) {gold} {#IF (%ismember(paralysis, @HerbalAfflictions)) {blo} {#IF (%ismember(stupidity, @HerbalAfflictions)) {gold} {#IF (%ismember(confusion, @HerbalAfflictions)) {ash} {#IF (%ismember(vomiting, @HerbalAfflictions)) {gin} {#IF (%ismember(peace, @HerbalAfflictions)) {bell} {#IF (%ismember(recklessness, @HerbalAfflictions)) {lob} {#IF (%ismember(weakness, @HerbalAfflictions)) {kelp} {#IF (%ismember(epilepsy, @HerbalAfflictions)) {gold} {#IF (%ismember(dizziness, @HerbalAfflictions)) {gold} {#IF (%ismember(shyness, @herbalAfflictions)) {gold} {#IF (%ismember(masochism, @HerbalAfflictions)) {lob} {#IF (%ismember(undeaf, @HerbalAfflictions)) {haw} {#IF (%ismember(unblind, @HerbalAfflictions)) {bay} {#IF (%ismember(dissonance,@HerbalAfflictions)) {gold} {#IF (%ismember(scytherus, @HerbalAfflictions)) {gin} {#IF (%ismember(lovers, @HerbalAfflictions)) {bell} {#IF (%ismember(hypersomnia, @HerbalAfflictions)) {ash} {#IF (%ismember(hallucinations, @HerbalAfflictions)) {ash} {#IF (%ismember(clumsiness, @HerbalAfflictions)) {kelp} {#IF (%ismember(generosity,@HerbalAfflictions)) {bell} {#IF (%ismember(addiction, @HerbalAfflictions)) {gin} {#IF (%ismember(sensitivity, @HerbalAfflictions)) {kelp} {#IF (%ismember(darkshade, @HerbalAfflictions)) {gin} {#IF (%ismember(haemophilia, @HerbalAfflictions)) {gin} {#IF (%ismember(lethargy, @HerbalAfflictions)) {gin} {#IF (%ismember(justice, @HerbalAfflictions)) {bell} {#IF (%ismember(healthleech, @HerbalAfflictions)) {kelp} {#IF (%ismember(dementia, @HerbalAfflictions)) {ash} {#IF (%ismember(paranoia, @HerbalAfflictions)) {ash} {#IF (%ismember(vertigo, @HerbalAfflictions)) {lob} {#IF (%ismember(claustrophobia, @HerbalAfflictions)) {lob} {#IF (%ismember(agoraphobia, @HerbalAfflictions)) {lob} {#IF (%ismember(loneliness, @HerbalAfflictions)) {lob}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}

#ALIAS FOCUSREMOVE {#DELI HerbalAfflictions %1;#DELI FocusableAfflictions %1;#DELI SalveAfflictions %1;#DELI SmokeAfflictions %1}

#TRIGGER {^You feel a tightening sensation grow in your lungs.$} {herbable asthma;herbalcheck}

#TRIGGER {^You eat a piece of kelp.$} {}
#COND {^The stinging feeling fades.$} {focusremove sensitivity} {looplines|param=1}
#COND {^Your bronchial tubes open up and your asthma is cured.$} {focusremove asthma} {reparse}
#COND {^Thank Maya, the Great Mother! Your clumsiness has been cured.$} {focusremove clumsiness} {reparse}
#COND {^Your aching, pain-wracked body is soothed and calmed.$} {focusremove healthleech} {reparse}
#COND {^Your limbs strengthen and you feel stronger.$} {focusremove weakness} {reparse}

HERBABLE Adds it to the string, HERBALCHECK checks for herb balance and to see if the string is empty or not, HERBEATER checks the list and tried to heal in priority. FOCUSREMOVE removes the cured affliction from all strings (some have multiple ways to cure, and there are focus string, herb string, salve string, and smoke string). The KELP TRIGGER is to make sure the affliction is cured before it is actually removed.


I HOPE THIS HELPS YOU....IF YOU NEED ANYTHING ELSE, PLEASE LET ME KNOW. I AM BEYOND CURIOUS TO FIGURE OUT WHAT I MIGHT HAVE DONE TO MAKE ZMUD CRASH CONSISTENTLY IN A FIGHT... BTW: IT ONLY SEEMS TO DO IT AFTER A NUMBER OF AFFLICTIONS ARE COMING...like it can't handle more than so many afflictions....


I may switch it to database keys, but I want to get this working first please.

Thanks for your help ahead of time...
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