|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Tue Aug 09, 2005 7:48 pm
[7.13b] Import inconsistencies (bug?) |
I'm attempting to write a very large, very complex script, but I'm having difficulties getting things to import the way they work from the command line.
My first problem is in creating a data record variable with lists (class folder names, actually) as the keys. I can create these keys in the settings editor and my alias that makes use of the variable works wonderfully. I can even force the list as a key from the command line using the %addkey function. However, when I try to use the %addkey method from the text file that I import, it gives me unexpected results.
Code: |
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|AntiIllusion", 1)}
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|Balances", 0)}
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|Tracking|Attacks|Serpentlord", 1)}
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|Tracking|Devotion", 0)}
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|Tracking|Kaido", 0)}
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|Tracking|Occultism", 0)}
#VAR ToggleClasses {%addkey(@ToggleClasses, "ACP|Tracking|Venom", 0)}
|
The second problem involves making a list of lists with the #ADDITEM command. When I couldn't get the data record variable to work, I decided to try nested lists instead. This had equally odd results. Again, from the command line, it worked perfectly. From the text file, it gave me strange values.
Code: |
#VAR SafeClasses {}
#ADDITEM SafeClasses {ACP|AntiIllusion}
#ADDITEM SafeClasses {ACP|Tracking|Attacks|Serpentlord} |
Command-line results:
Quote: |
(ACP|AntiIllusion)
|(ACP|Tracking|Attacks|Serpentlord) |
Import results:
Quote: |
@SafeClasses
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord)
|(ACP|Tracking|Attacks|Serpentlord) |
Is there something inherently wrong with the code? Could something else that I do possibly cause such bizarre behavior? Thanks in advance. |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Aug 09, 2005 9:21 pm |
The import capabilties are supposed to operate in verbatim mode just like loading a .mud file does. I have personally noted some inconsistencies, but I think Zugg never believed me. In any case the best thing to do is tweak around with the 6 different method there are for expressing just about anything in zScript and find the one that works.
Examples of definite inconsistencies I know are #VARIABLE vs #FUNCTION, #BUTTON full format the name parameter has problems, and 1 other I forget since it almost never used. |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
|
|
|
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
|
|