author | darkvater |
Wed, 25 Aug 2004 22:11:41 +0000 | |
changeset 141 | 29cc31c87ede |
parent 130 | b593afdae262 |
child 186 | d6fde0ea62f0 |
permissions | -rw-r--r-- |
126 | 1 |
OPENTTD INGAME CONSOLE DOCUMENTATION |
2 |
==================================== |
|
141
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
3 |
http://openttd.rulez.org/wiki2/index.php/OpenTTDDevBlackBook |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
4 |
for detailed information |
126 | 5 |
|
130
b593afdae262
(svn r131) Completely changed hotkey from tab to backquote (not working in Windows yet)
dominik
parents:
126
diff
changeset
|
6 |
HOTKEY: BACKQUOTE (aka tile, the key left to "1") |
126 | 7 |
|
8 |
COMMANDS: |
|
9 |
--------- |
|
10 |
||
11 |
echo [string] |
|
12 |
echoc [color-code] [string] |
|
141
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
13 |
exit |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
14 |
debug_level [0-9] |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
15 |
dump_vars [filter] |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
16 |
help |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
17 |
list_cmds [filter] |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
18 |
list_vars [filter] |
126 | 19 |
printf [formatstring] [var] [var] [var].... |
20 |
printfc [color-code] [formatstring] [var] [var] [var].... |
|
141
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
21 |
quit |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
22 |
random |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
23 |
screenshot ["big"/"no_con"] |
126 | 24 |
|
25 |
VARIABLES: |
|
26 |
---------- |
|
141
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
27 |
*con_developer |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
28 |
-> true = console debugging info |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
29 |
-> false = no output |
29cc31c87ede
(svn r142) -Feature development: [1016299] Console Rev #3 allowes variable references and has a new commandline buffer (sign_de)
darkvater
parents:
130
diff
changeset
|
30 |
|
126 | 31 |
*developer |
32 |
-> 0 = no output |
|
33 |
-> 1 = console error output [like command not found] |
|
34 |
-> 2 = console error and debug output |
|
35 |
||
36 |
*cursor_rate |
|
37 |
-> 1-12 = defines the cursor blink interval |
|
38 |
||
39 |
||
40 |
VARIABLE HANDLING: |
|
41 |
------------------ |
|
42 |
||
43 |
*developer = 0 |
|
44 |
*developer ++ |
|
45 |
||
46 |
*temp_string = test |
|
47 |
*temp_string = "my little" |
|
48 |
||
49 |
printf "%s world" *temp_string |
|
50 |
||
51 |
||
52 |
--------------------------------------------------- |
|
53 |
feel free to add more commands and use this in-game |
|
54 |
console for your debugging / enhancements |
|
55 |