 |
Tarken Aurelius Apprentice

Joined: 23 Oct 2008 Posts: 120 Location: Cincinnati, Ohio
|
Posted: Thu Nov 20, 2008 10:23 pm
[2.37] 'Disappearing' variable contents |
This is a common phenomenon that I've been having. I would have a string list stored in a variable and I would be running a script...I could not touch the keyboard for 15 minutes and everything is fine...then sometimes randomly the contents of the string variable just simply disappears and clears and then the script continues on doing something like 'transfer all from blah to blah' (there should be a string list variable between all and from). I can't seem to forcefully recreate it but it only occurs in instances where I'm using %pop to modify the variable to extract a value. I'll turn on script debugging and log it and try to catch it. Has anyone else experienced this issue?
|
|
_________________ Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org) |
|
|
 |
Tarken Aurelius Apprentice

Joined: 23 Oct 2008 Posts: 120 Location: Cincinnati, Ohio
|
Posted: Thu Nov 20, 2008 10:57 pm |
You restore some of your vitality.
hp: 635 (635) [] sp: 439 (539) [-100] ep: 54 (438) [+124] cash: 0 [] exp: 11 []
[^You restore some of your vitality.-> #wa 2000
#if (@epvar >= 1) {doamalprep} {
#wa %random( 2000, 4000)
vway
}]
doamalprep
| Code: |
#ALIAS doamalprep {
#var tempmat {%pop(mined)}
#if (%ismember(@tempmat,@mlist) > 0) {#var bench metals}
#if (%ismember(@tempmat,@glist) > 0) {#var bench gems}
#if (%ismember(@tempmat,@wlist) > 0) {#var bench woods}
#if (%ismember(@tempmat,@rlist) > 0) {#var bench rocks}
}
== At which time ==
Variable: + mined (StringList) chromium|clay|coal|cobalt|copper|crystal|diamond|diggalite|durandium|electrum|garnet|gold|granite|hematite|illumium|indium|iron|ivory|jade|laen|lead|magnesium|malachite|marble|mithril|molybdenum|moonstone|mowglite|nickel|nullium|obsidian|olivine|onyx|opal|palladium|platinum|pyrite|quartz|rhodonite|ruby|silicon|silver|slate|stone|sulphur|sunstone|tadmium|tin|titanium|topaz|tormium|tungsten|turquoise|uranium|vanadium|zinc|zircon
Variable: + mlist (StringList) adamantium|aluminium|anipium|batium|brass|bronze|cesium|chromium|cobalt|copper|diggalite|dukonium|duraluminium|durandium|electrum|gold|graphite|hematite|highsteel|illumium|indium|iridium|iron|kryptonite|lead|magnesium|mithril|molybdenum|mowgles|mowglite|nickel|nullium|osmium|palladium|pewter|platinum|potassium|pyrite|quicksilver|rhodium|silicon|silver|starmetal|steel|tadmium|tin|titanium|tormium|tungsten|uranium|vanadium|zhentorium|zinc
Variable: + glist (StringList) alexandrite|amethyst|aquamarine|bloodstone|carnelian|chrysoberyl|diamond|emerald|garnet|jade|malachite|moss agate|olivine|onyx|opal|quartz|rhodonite|ruby|sapphire|sunstone|topaz|turquoise|zircon|weenite|pearl
Variable: + wlist (StringList) bamboo|bark|birch|bone|cedar|coral|cork|dragonscale|ebony|elm|ivory|mahogany|maple|mallorn|oak|wood
Variable: + rlist (StringList) amber|basalt|brick|chalk|clay|coal|concrete|earth|granite|marble|moonstone|petrified wood|slate|stone|sulphur
|
doamal
| Code: |
#loop 1,100 {transfer all @tempmat from %i to @bench}
amal @tempmat @bench
|
transfer all from 1 to gems
You didn't transfer anything.
[^You didn't transfer anything.-> #GAG] !!!===(repeated 1-100, not quoting here.)
amal gems
You start concentrating on the skill.
[^You start concentrating on the skill.$-> #var skillspellstatus {1}
z
]
z
You are using 'amalgamate' at 'in gems'.
[^You are using ({~'(%2)~'|~'(%3)~' at ~'%4'}).$-> #var skillorspell {Skill:}
#var skillspellname {%1}
#if (%3 != "") {#var tactical {%3}}
#if (%2 != "") {#var tactical {%2}}]
zz
You break your skill attempt.
| Code: |
Variable: + mined (String)
|
===end
Things to notice...spaces between 'all from' and 'amal gems' where there should be a variable
Also bench is set to gems from the previous material 'carnelian' which fit into the gems category.
This is about as much info as I can provide. |
|
_________________ Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org) |
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Fri Nov 21, 2008 2:53 am |
Have you searched your other scripts to see if anything else is accessing the @tempmat or @mined variables?
If would be useful if you could catch this happening with the script debugger open. Also, turn on the message option in the script debugger window
to display any changes to variables. Then you might be able to see exactly which script is clearing the @tempmap or @mined variables. |
|
|
|
 |
Tarken Aurelius Apprentice

Joined: 23 Oct 2008 Posts: 120 Location: Cincinnati, Ohio
|
Posted: Fri Nov 21, 2008 3:50 am |
Absolutely nothing accessing them other than what I have shown you. I just coded them today.I'll test this again tomorrow night.
I suspect further that it is a bug because it still happens after that reinstall. I'll try it with the script debugger though and get back to you. |
|
_________________ Tarken Aurelius, quality triggers since 2004! Trigger consulting since 2008! Content Developer at BatMUD (www.bat.org) |
|
|
 |
charneus Wizard

Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Fri Nov 21, 2008 4:52 am |
Unless you delete every file associated with CMUD after uninstalling it, you're not doing anything to get rid of CMUD files. Your sessions
will still be there, as well as your settings. The best thing to do is to actually test this in a blank session (start CMUD, then escape to untilted).
Then see if it still does the same.
Charneus |
|
|
|
 |
|
|
|