Text Editor Reference

The text editor can be used for general text editing, but it's main purpose is to integrate script editing directly into the editor.

Below is a screenshot of the text editor showing a script file:

Scripts will do a compilation whenever the file is saved. Errors will appear in the Error List on the bottom. Unfortunately most scripting errors are actually runtime errors because of the dynamic nature of Lua. Runtime errors do not currently appear in the error list, but is planned for the future.

A very important thing to note here is that the compilation of a script is not yet done in a 100% fully self contained environment. Calling a function in global space will cause that function to actually execute during the compilation step. Some functions might actually modify som of the game and engine state. This issue will be fixed soon.