ScriptUO
Scripting Resources & Utilities => ScriptUO Application => Feedback => Topic started by: baldielocks on August 06, 2010, 09:33:03 AM
-
Thanks for this. It has really helped me to learn proper scripting and catch my errors myself.
One common error I make is I forget the # for sysvariables. (like true and #true, findid and #findid). If a variable is spelled correctly, could SUO detect that the # is not appended?
Same with % and * variables. Those are unrecognized format without. Would it be possible to detect those too? set baldguy #newb
, for example, could be detected as not having correct variable format.
-
Here ya go...
(http://www.newbeetleclub.be/wordpress/wp-content/uploads/easybutton.jpg)
So how exactly is ScriptUO going to know if your using a session variable (%baldguy) or a namespace variable (!baldguy) or a saved system variable (*baldguy)?
Some thing you just need to do for youself ;)
-
Well you kinda have to pay attention to the colorization. You'll notice that if you don't type in a valid system variable (#VAR), then it won't color correctly. Same goes for !vars and %vars.
With that said, ScriptUO can only do so much policing before it kinda has to leave things up to the programmer.
For !vars and %vars, there really isn't anything that could be done. However, it would be possible to flag unknown #vars with warnings. That's not a bad suggestion. Unsure when I'll be doing another release of ScriptUO, but I'll add that idea to the mix.
-
hey, the man said ask! JK. Basically, it can detect if a variable should be there, not which kind. Like you say, gotta do somethings on your own. But I have two 1K plus line scripts I am writing, and man would it help to quickly scan my variables! I currently detect through the variable pane, and check to see that all my newly coded variables show up.
Thanks TM for considering it. I have found a couple scripts other than my own that could have used this as well.
-
We go over to EasyUO every once in a while and pull out the syntax checker results on some of the scripts. People wonder what kinda of evil magic we are using. It's kinda humorous.
It's not perfect, but it sure does help get you 95%.
It's still my opinion where ScriptUO really shines is on larger scripts.
-
ScriptUO is the *bleep*. Sorry for the bad word. But it is. :)