13 November 2018

8 April 2017

The compilescript command compiles a script passed to the command as a string or reads a script from the filesystem and returns any reported syntax errors in case the compilation failed.

CommandRequired ParametersRequired Corrade PermissionsExample
compilescriptgroup, password, entityinventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "compilescript",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "entity", "text",
            "data", wasURLEscape(
"default {
    state_entry() {
        llSay(0, \"yaaay\");
    }
}
"),
            "callback", wasURLEscape(URL)
        ]
    )
);
ParameterPossible ValueSecond ParameterPossible ValueDescription
entitytextCompile a script passed to the data parameter and return the success status and any outstanding compilation errors.
filepathThe path to a file on the filesystem that Corrade runs on.Compiles a script from the filesystem and returns any outstanding compilation errors.
Optional ParameterPossible ValueDescription
monoTrue (default) or FalseWhether to compile the script to Mono.

Notes