Compile a Script

8 April 2017

  • Release 9.161 - added.
compilescript (Commands)
TypeCorrade progressive command
Commandcompilescript
DescriptionThe compilescript command just compiles a script passed to the command as a string and returns any reported syntax errors in case the compilation failed.
Permissionsinventory
Parametersgroup, password
Last ChangesRelease 9.161 - added.

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

Command Required Parameters Required Corrade Permissions Example
compilescript group, password inventory
llInstantMessage(CORRADE,
    wasKeyValueEncode(
        [
            "command", "compilescript",
            "group", wasURLEscape(GROUP),
            "password", wasURLEscape(PASSWORD),
            "data", wasURLEscape(
"default {
    state_entry() {
        llSay(0, \"yaaay\");
    }
}
"),
            "callback", wasURLEscape(URL)
        ]
    )
);
Optional Parameter Possible Value Description
mono True (default) or False Whether to compile the script to Mono.

Notes

  • The data value containing the script body should be escaped using wasURLEscape (or similar) to avoid collisions with reserved symbols - however, in case LSL is used to sent the commands, the quotation marks should be escaped such that they do not collide with the quotation marks of the script sending the command.

secondlife/scripted_agents/corrade/api/progressive/commands/compilescript.txt ยท Last modified: 2017/04/08 11:35 by Wizardry and Steamworks

Access website using Tor


For the copyright, license, warranty and privacy terms for the usage of this website please see the license and privacy pages.