User Tools

Site Tools


client_side_scripting:client_scripting_interface-basic_howto_staging

This is an old revision of the document!


Writing Scripts

The script must be executable (e.g. chmod +x with an appropriate shebang). For some languages, it may be necessary to write a wrapper script to start the program. Additionally, on Windows systems where the shebang is not supported, the player must provide a means of running such a script. For example script python <path-to-script> if you are using python.

A Note on Newlines

All newline characters used in the scripting interface consist of the singular “\n” (decimal 10, hexadecimal 0x0a) character, aka Unix-style newlines. No other newline schemes are supported by the interface. A note to Windows users: Simple printline code or a .bat file echo command will not work.

client_side_scripting/client_scripting_interface-basic_howto_staging.1628703790.txt.gz · Last modified: 2021/08/11 12:43 by boingman