- en
- pl
OpenTTD GitHub
Contributing to OpenTTD - guidelines
OpenTTD Doxygen
Coding style
Compiling OpenTTD
Debugging
Add a setting
Add a squirrel function
Understanding the SaveGame handler
Bumping the savegame version
Doing an OpenTTD release
Manual of style
Format of langfiles
Using OpenTTD strings
List of special strings
Using the window system
Colour codes that exist in OpenTTD
Adding a text box
Understanding the widget focus system
GUI style guide
The OpenTTD TCP protocol
The OpenTTD UDP protocol
Debugging desyncs
Server Admin Port development
The console window
Console commands
Console variables
Using console scripting
Adding functions/commands to the console
Adding variables to the console
Console development history
Graphics and similar (NewGRF)
AI framework (NoAI)
GameScript framework (NoGO)
Social Integration
Map array (landscape grid)
Vehicles
Pathfinding
Train acceleration
Sound IDs
Development History.
Contents |
Revision #1
console features:
- console window like in 3d ego shooters
- internal command and variable handler
- 80 lines console screen buffer [scrolling not possible yet]
- error / debug message output
- direct c++ integration over pointer access
- dynamic string allocation
commands:
- list_cmds [filter]
- list_vars [filter]
- echo [string]
- echoc [color-code] [string]
- printf [formatstring] [var] [var] [var]....
- printfc [color-code] [formatstring] [var] [var] [var]....
- screenshot ["big"]
- debug_level [0-9]
- exit
variables:
-
* 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
Revision #2
console features:
- scroll up CURSOR-UP PAGE-UP
- scroll down CURSOR-DOWN PAGE-DOWN
console language features:
- c-language independent variables
- *temp_uint16 << random
- the "<<" allows to put a return value of a function into an variable
new console commands:
- help
- quit
- random (implented to test value passing to variable)
- dump_vars [filter]
Revision #3
Console Language Enhancements:
- Copy data from one data to another
- Passing of variable-references
Console Enhancements:
- new command buffer: saves 20 commandlines [UP and DOWN KEYS]
- scrolling: SHIFT + UP / DOWN / PG_UP / PG_DOWN
new/changed commands:
- screenshot [big/no_con]
- varinfo
new variables:
-
*con_developer
- -> true = console debugging output
- -> false = no output
Revision #4 [planned]
Console Language Enhancements:
- allowing script files with "exec [filename]"
- dumping console to files with "script [filename]"
-
command and variable hooking
- ACCESS
- BEFORE_CHANGE
- AFTER_CHANGE
- BEFORE_EXEC
- AFTER_EXEC
- some more commands
Revision #5 [planned]
- access to configuration and patch variables
- dumping variables to file