author | bjarni |
Mon, 09 Oct 2006 21:42:18 +0000 | |
changeset 4788 | 76ed308037b1 |
parent 799 | 15f525805017 |
permissions | -rw-r--r-- |
126 | 1 |
OPENTTD INGAME CONSOLE DOCUMENTATION |
2 |
==================================== |
|
288
72ca19a694dd
(svn r294) -Fix: autorail always builds rail, instead of occasional rail removal (on pressing hotkey after pressing 'bulldozer')
darkvater
parents:
186
diff
changeset
|
3 |
http://wiki.openttd.org/index.php/OpenTTDDevBlackBook |
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
|
4 |
for detailed information |
126 | 5 |
|
799
15f525805017
(svn r1269) - Updated changelog.txt and readme.txt for 0.3.5
truelight
parents:
543
diff
changeset
|
6 |
*** WARNING ** |
15f525805017
(svn r1269) - Updated changelog.txt and readme.txt for 0.3.5
truelight
parents:
543
diff
changeset
|
7 |
This document is out of date |
15f525805017
(svn r1269) - Updated changelog.txt and readme.txt for 0.3.5
truelight
parents:
543
diff
changeset
|
8 |
*** WARNING ** |
15f525805017
(svn r1269) - Updated changelog.txt and readme.txt for 0.3.5
truelight
parents:
543
diff
changeset
|
9 |
|
186
d6fde0ea62f0
(svn r187) -Feature: [1024044] Show max loan in finances window. (ledow)
darkvater
parents:
141
diff
changeset
|
10 |
HOTKEY: BACKQUOTE (aka tilde, the key left to "1") |
126 | 11 |
|
12 |
COMMANDS: |
|
13 |
--------- |
|
14 |
||
15 |
echo [string] |
|
16 |
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
|
17 |
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
|
18 |
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
|
19 |
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
|
20 |
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
|
21 |
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
|
22 |
list_vars [filter] |
126 | 23 |
printf [formatstring] [var] [var] [var].... |
24 |
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
|
25 |
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
|
26 |
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
|
27 |
screenshot ["big"/"no_con"] |
126 | 28 |
|
29 |
VARIABLES: |
|
30 |
---------- |
|
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
|
31 |
*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
|
32 |
-> 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
|
33 |
-> 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
|
34 |
|
126 | 35 |
*developer |
36 |
-> 0 = no output |
|
37 |
-> 1 = console error output [like command not found] |
|
38 |
-> 2 = console error and debug output |
|
39 |
||
40 |
*cursor_rate |
|
799
15f525805017
(svn r1269) - Updated changelog.txt and readme.txt for 0.3.5
truelight
parents:
543
diff
changeset
|
41 |
-> 1-12 = defines the cursor blink interval |
126 | 42 |
|
43 |
||
44 |
VARIABLE HANDLING: |
|
45 |
------------------ |
|
46 |
||
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
288
diff
changeset
|
47 |
developer = 0 |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
288
diff
changeset
|
48 |
developer ++ |
126 | 49 |
|
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
288
diff
changeset
|
50 |
temp_string = test |
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
288
diff
changeset
|
51 |
temp_string = "my little" |
126 | 52 |
|
543
946badd71033
(svn r942) -Merged branch/network back into the trunk
truelight
parents:
288
diff
changeset
|
53 |
printf "%s world" temp_string |
126 | 54 |
|
55 |
||
56 |
--------------------------------------------------- |
|
57 |
feel free to add more commands and use this in-game |
|
58 |
console for your debugging / enhancements |