Compiler

File Name Format

These fields specify the path and name for compiled files using placeholder variables:
$dir
– input file directory path$name
– input file name (without extension)$ext
– input file extension
Example: Input file: C:\MyDir\main.txt
$dir
=C:\MyDir
$name
=main
$ext
=.txt
Using format $dir\$name.scm
creates output file: C:\MyDir\main.scm
String Case
Compiler will transform string literals to selected case.
Options
Strict IF Validation
The compiler counts and validates number of used conditions in an IF statement. The upper limit is 8
.
Ranges check
The number of local and global variables is limited. When this option is checked, the compiler checks if a variable fits the available range.
Add extra info to SCM
If this option is checked the compiler adds extra information at the end of the resulting file. This info is used later when this file gets disassembled to restore the source closer to the original. The following data is stored:
HEX..END constructs offsets
global variables names
full source code (use $NOSOURCE to disable)
current edit mode
Show warning
This option is only used during compilation of the San Andreas scripts. If the game is running, the file script.img
containing external scripts can't be overwritten as the game uses this file and the compiler complains about it. You may disable the warning by unchecking this box.
Last updated