2004-08-24 08:34:28 +00:00
|
|
|
OPENTTD INGAME CONSOLE DOCUMENTATION
|
|
|
|
====================================
|
2004-09-18 16:40:06 +00:00
|
|
|
http://wiki.openttd.org/index.php/OpenTTDDevBlackBook
|
2004-08-25 22:11:41 +00:00
|
|
|
for detailed information
|
2004-08-24 08:34:28 +00:00
|
|
|
|
2004-09-08 19:26:10 +00:00
|
|
|
HOTKEY: BACKQUOTE (aka tilde, the key left to "1")
|
2004-08-24 08:34:28 +00:00
|
|
|
|
|
|
|
COMMANDS:
|
|
|
|
---------
|
|
|
|
|
|
|
|
echo [string]
|
|
|
|
echoc [color-code] [string]
|
2004-08-25 22:11:41 +00:00
|
|
|
exit
|
|
|
|
debug_level [0-9]
|
|
|
|
dump_vars [filter]
|
|
|
|
help
|
|
|
|
list_cmds [filter]
|
|
|
|
list_vars [filter]
|
2004-08-24 08:34:28 +00:00
|
|
|
printf [formatstring] [var] [var] [var]....
|
|
|
|
printfc [color-code] [formatstring] [var] [var] [var]....
|
2004-08-25 22:11:41 +00:00
|
|
|
quit
|
|
|
|
random
|
|
|
|
screenshot ["big"/"no_con"]
|
2004-08-24 08:34:28 +00:00
|
|
|
|
|
|
|
VARIABLES:
|
|
|
|
----------
|
2004-08-25 22:11:41 +00:00
|
|
|
*con_developer
|
|
|
|
-> true = console debugging info
|
|
|
|
-> false = no output
|
|
|
|
|
2004-08-24 08:34:28 +00:00
|
|
|
*developer
|
|
|
|
-> 0 = no output
|
|
|
|
-> 1 = console error output [like command not found]
|
|
|
|
-> 2 = console error and debug output
|
|
|
|
|
|
|
|
*cursor_rate
|
|
|
|
-> 1-12 = defines the cursor blink interval
|
|
|
|
|
|
|
|
|
|
|
|
VARIABLE HANDLING:
|
|
|
|
------------------
|
|
|
|
|
|
|
|
*developer = 0
|
|
|
|
*developer ++
|
|
|
|
|
|
|
|
*temp_string = test
|
|
|
|
*temp_string = "my little"
|
|
|
|
|
|
|
|
printf "%s world" *temp_string
|
|
|
|
|
|
|
|
|
|
|
|
---------------------------------------------------
|
|
|
|
feel free to add more commands and use this in-game
|
|
|
|
console for your debugging / enhancements
|