
OMSI Script Console & Creator
-
- Software
- jjb
Als Gast kannst du nur Inhalte in deiner ausgewählten Sprache sehen. Registrierte Nutzer können die Sichtbarkeit anderer Sprachen in ihrem Kontrollzentrum aktivieren, weitere Infos hier.
Alle Themen sind in den Foren mit einer Sprachflagge gekennzeichnet:
-
-
-
Es fehlt nur noch der letzte Schliff:
- stückweise lineare Funktionen
- Systemmakros
- einige Systemvariablen/vordefinierte Variablen
Liste der zurzeit verfügbaren Befehle:
Console:
'help' Displays this list of commands.
'cls' Clears the contents of the console.
'cla' Clears all stacks, variables, constants, macros and triggers.
'exit' Exits the console.
Scripts:
'run [filePath] (\cla)' Loads a script, and if following the naming rules also the associated variable and constant files, and executes it.
'filePath' An absolute path to the script.
'\cla' Clears all stacks, variables, constants, macros and triggers before it runs the script.
'runMore [filePath]' Loads all variables, constants, macros and triggers and runs the scripts.
'filePath' An absolute path to the configuration file (.bus/.ovh/.sco).
'load [filePath]' Loads a script (macros/triggers), and if following the naming rules also the associated variable and constant files.
'filePath' An absolute path to the script.
'loop [frameCount]' Runs the previously loaded {init} section and then the {frame} section of the script.
'frameCount' Sets the count of frames (how many times the {frame} section will be executed).
'[command]' Executes an OMSI script command.
'command' An OMSI script command.
Variables:
'debugVar' Displays all used variables including values.
'loadVarList [filePath]' Loads a variable list from file.
'filePath' An absolute path to the variable list.
'loadStringVarList [filePath]' Loads a string variable list from file.
'filePath' An absolute path to the string variable list.
System variables:
'debugSystemVar' Displays all system variables.
'setSystemVar [name] [value]' Sets a system variable.
'name' The name of the system variable.
'value' The new value of the system variable.
Constants:
'debugConst' Displays all constants and their values.
'loadConstFile [filePath]' Loads a constant file including functions and constants.
'filePath' An absolute path to the constant file.
Macros:
'debugMacro' Displays all available macros.
Triggers:
'debugTrigger' Displays all available triggers.
'runTrigger' Runs a previously created trigger.
-
Hier geht es weiter: RE: Various OMSI Tools [by jjb].
-
Wow, the Omsi script generator looks amazing, just the kind of thing someone like me needs, i really struggle with coding, so having something that can show me how to write the code properly will be a massive help.