| Common errors and how to make them. |
How to get into Second Life without really trying Selby Evans is Thinkerer Melville in Second Life |
|
Syntax error All on its own, this line developed a syntax error. I didn't touch it. Just copied in some other lines. Check the line above. see if it is missing a semicolon at the end. |
You can view this feature as a way to develop frustration tolerance. |
|
Syntax error All on its own, this brace developed a syntax error. All I did was copy in some other lines. Look for an unpaired brace in what you copied in. |
The Scripter must learn patience. |
| Variable undefined within scope My favorite way to
produce this error is to get the capitalization or spelling wrong when I
reference a sound or texture. If I have more than a few of these
to do, I use a contents lister function. Sometimes I use a trick to
avoid typing the name of an item in contents: Right click, select
rename, highlight, Ctrl+c to copy. Paste into the script.
Another way to produce this error is to set the value of a variable in one code block and then try to use it in a separate code block. This is the place where you get to use global variables. |
Tools Content lister. |
| I rezzed it in a new place and that broke the script. Not exactly an error here. Just unexpected behavior. And nothing really broken. If a script is running when you take or copy an object, it is frozen as is stands. When you rez the object, the script starts where it was. In a script that moves the object, that can produce unexpected behavior. | Remedies: Turn off and reset any script that moves the object. (See check place and button in the script edit panel.) Place the object where you want it. Turn the script on again. |
| Brain trap: Expect it to work the first time. Fast track to exit. | |
|
The Thinkerer
10/25/2008 Copyright (c) D. F. Dansereau & S. H. Evans |
LODScr | ||
| Famous fables | |||