LSL Wiki Mirror : compile

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::

Compile


LSL source code won't work on its own. It must first be "compiled" into bytecode by a compiler that will run on the LSL virtual machine. It's all automatic, so you don't have to worry about the specifics of how it works.

The LSL compiler is contained within the SL client. When the "Save" button is clicked in the script editor window, the user's computer strips out comments, compiles the code, and sends it to the server where it creates a new script inventory item. (If editing an existing script, it will appear to overwrite the existing version though it's actually removing the existing copy and creating a new script with the same name and a different key.)

If source code cannot be properly compiled, an error will return, indicating which problem has happened (missing brackets, unknown variable names, etc.) and the location within the script's source code where it occured.


Glossary
There is no comment on this page. [Display comments/form]