126
|
1 |
OPENTTD INGAME CONSOLE DOCUMENTATION
|
|
2 |
====================================
|
|
3 |
|
|
4 |
HOTKEY: TAB
|
|
5 |
|
|
6 |
COMMANDS:
|
|
7 |
---------
|
|
8 |
|
|
9 |
list_cmds [filter]
|
|
10 |
list_vars [filter]
|
|
11 |
echo [string]
|
|
12 |
echoc [color-code] [string]
|
|
13 |
printf [formatstring] [var] [var] [var]....
|
|
14 |
printfc [color-code] [formatstring] [var] [var] [var]....
|
|
15 |
screenshot ["big"]
|
|
16 |
debug_level [0-9]
|
|
17 |
exit
|
|
18 |
|
|
19 |
|
|
20 |
VARIABLES:
|
|
21 |
----------
|
|
22 |
*developer
|
|
23 |
-> 0 = no output
|
|
24 |
-> 1 = console error output [like command not found]
|
|
25 |
-> 2 = console error and debug output
|
|
26 |
|
|
27 |
*cursor_rate
|
|
28 |
-> 1-12 = defines the cursor blink interval
|
|
29 |
|
|
30 |
|
|
31 |
VARIABLE HANDLING:
|
|
32 |
------------------
|
|
33 |
|
|
34 |
*developer = 0
|
|
35 |
*developer ++
|
|
36 |
|
|
37 |
*temp_string = test
|
|
38 |
*temp_string = "my little"
|
|
39 |
|
|
40 |
printf "%s world" *temp_string
|
|
41 |
|
|
42 |
|
|
43 |
---------------------------------------------------
|
|
44 |
feel free to add more commands and use this in-game
|
|
45 |
console for your debugging / enhancements
|
|
46 |
|