Bug in QDK
Cryophile
25 Nov 2003, 22:19I've noticed there's a rather significant bug in the newest version of QDK. If you use complex nested if statements (around 4 or 5) then it will make a mistake in the syntax and occasionally place the braces in wrong positions. This also is portrayed as a "other script command" in red txt when you examine in QDK (after restarting that procedure, etc.) I'm not sure if this bug has already been discussed, but if it hasn't, it's fairly easy to recreate.
<Psych07ik_S1aY3R>
<Psych07ik_S1aY3R>
Cryophile
25 Nov 2003, 22:24An addition to my previous posting was that this bug occured last year (QDK 2.x) and I guess it still hasn't been fixed. There also seem to be other ways to produce this error, but I haven't proven this. Hope this helps you, Alex.
<Psych07ik_S1aY3R>
<Psych07ik_S1aY3R>
Alex
25 Nov 2003, 22:42Does this only affect the way the script is displayed or does it break the ASL file? I've had reports of a bug that breaks ASL files by moving braces to the wrong places, or something similar, but I'm not able to reproduce that problem. I can reproduce the "other script command" problem - but that only affects the way QDK displays the set of script commands, and not the way they're saved. If you edit them they're all still there!
Cryophile
26 Nov 2003, 21:24I'm not sure what you mean, but I hope this will answer you.
The error is usually activated using properties in the if statement conditions and variables etc. in the "then" and more if-then in the "else". I guess this is because of the complexness of the $objectproperty and #object:property#, but I'm not sure.
The error will move the braces in the wrong positions and will crash qdk and quest or at the least, leave errors in the logs, and I have to fix this manually with medium effort using textpad or notepad. This is AS WELL as the other script command error. I'm not sure of the errors when crashing since I fix it manually before I run qdk or quest again.
The error is usually activated using properties in the if statement conditions and variables etc. in the "then" and more if-then in the "else". I guess this is because of the complexness of the $objectproperty and #object:property#, but I'm not sure.
The error will move the braces in the wrong positions and will crash qdk and quest or at the least, leave errors in the logs, and I have to fix this manually with medium effort using textpad or notepad. This is AS WELL as the other script command error. I'm not sure of the errors when crashing since I fix it manually before I run qdk or quest again.
Cryophile
01 Dec 2003, 22:10I can easily recreate this for you, Alex, and even give step-by-step instructions if you want. I know I've seen at least something similar to this bug before (i know it's not 'The Missing Brace' that I used to fear.) but I don't know when or what it was.
Cryophile
03 Dec 2003, 18:14Hey Alex, here's how to re-create this bug. If it doesn't work, I'll send an ASL file tomorrow.
In QDK, make a conditional. In that conditional's then statement, make another conditional with it's own conditional in the then statements. Make sure to add something to the else statements (may not be necessary). Do this a few times and it will screw up the braces and give a Run-time 6 Error (Overflow i think) when QDK is run again.
I can give more info if you want. The code looks weird after this, it's kinda hard to decipher.
In QDK, make a conditional. In that conditional's then statement, make another conditional with it's own conditional in the then statements. Make sure to add something to the else statements (may not be necessary). Do this a few times and it will screw up the braces and give a Run-time 6 Error (Overflow i think) when QDK is run again.
I can give more info if you want. The code looks weird after this, it's kinda hard to decipher.