(svn r7600) -Remove: out-dated documentation about console and Mandrake Readme.
-Change: make readme.txt UTF-8 instead of ISO 8859-15. -Change: some indenting, aligning and other small textual changes. -Add: some comments about port forwarding and NewGRF over the net..replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
parent
78c503c020
commit
fafafcc3f8
@ -1,62 +0,0 @@
|
|||||||
Compiling and developing OpenTTD on MandrakeLinux 10.0 Official
|
|
||||||
|
|
||||||
A quick guide to get started with OpenTTD development on Linux.
|
|
||||||
---------------------------------------------------------------
|
|
||||||
|
|
||||||
1.) RPMs:
|
|
||||||
|
|
||||||
Most packages that are required for development (like gcc) should already be installed on your box. You will require those RPMs additionally:
|
|
||||||
- libsdl1.2-devel-1.2.7-2mdk
|
|
||||||
- subversion-1.0.1-1mdk (+ dependencies)
|
|
||||||
- libsvn_ra_svn1_0-1.0.1-1mdk
|
|
||||||
|
|
||||||
|
|
||||||
2.) Subversion:
|
|
||||||
|
|
||||||
To obtain the source code from the subversion server type
|
|
||||||
$ svn co svn://svn.openttd.com/openttd/trunk openttd
|
|
||||||
from command line to dump the code into the directory 'openttd'.
|
|
||||||
|
|
||||||
To update your working copy to the latest revision use
|
|
||||||
$ svn update
|
|
||||||
Don't worry, your version will be merged with the latest version.
|
|
||||||
|
|
||||||
The command
|
|
||||||
$ svn diff > mypatch.diff
|
|
||||||
creates a patch file (aka diff file) which you can submit to the developers to share your improvements.
|
|
||||||
|
|
||||||
You can undo changes to a file with
|
|
||||||
$svn revert filename
|
|
||||||
|
|
||||||
|
|
||||||
3.) Required data files:
|
|
||||||
|
|
||||||
Copy the following files from Transport Tycoon Deluxe to openttd/data/
|
|
||||||
sample.cat
|
|
||||||
trg1r.grf
|
|
||||||
trgcr.grf
|
|
||||||
trghr.grf
|
|
||||||
trgir.grf
|
|
||||||
trgtr.grf
|
|
||||||
|
|
||||||
(Alternatively you can use the TTD GRF files from the DOS version: TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF. A few minor graphical glitches with the DOS graphics remain. E.g. the autorail button in the rail toolbar doesn't look as nice as with the Windows graphics.)
|
|
||||||
|
|
||||||
|
|
||||||
4.) Compiling and running:
|
|
||||||
|
|
||||||
Compile OpenTTD with
|
|
||||||
$ make
|
|
||||||
and run it with
|
|
||||||
$ ./ttd
|
|
||||||
|
|
||||||
|
|
||||||
5.) Playing the soundtrack:
|
|
||||||
|
|
||||||
If you want the original TTD music you need to copy the whole /gm/ directory from Windows. Additionally the TiMidity driver is required:
|
|
||||||
TiMidity++-2.12.0-0.pre1.4mdk (+ dependencies)
|
|
||||||
To run OpenTTD with music support type
|
|
||||||
$ ./ttd -m extmidi
|
|
||||||
|
|
||||||
|
|
||||||
X.) Last Update: $Date: 2004-06-01 19:08:09 +0200 (Tue, 01 Jun 2004) $
|
|
||||||
Written for revision $Rev: 710 $
|
|
@ -1,58 +0,0 @@
|
|||||||
OPENTTD INGAME CONSOLE DOCUMENTATION
|
|
||||||
====================================
|
|
||||||
http://wiki.openttd.org/index.php/OpenTTDDevBlackBook
|
|
||||||
for detailed information
|
|
||||||
|
|
||||||
*** WARNING **
|
|
||||||
This document is out of date
|
|
||||||
*** WARNING **
|
|
||||||
|
|
||||||
HOTKEY: BACKQUOTE (aka tilde, the key left to "1")
|
|
||||||
|
|
||||||
COMMANDS:
|
|
||||||
---------
|
|
||||||
|
|
||||||
echo [string]
|
|
||||||
echoc [color-code] [string]
|
|
||||||
exit
|
|
||||||
debug_level [0-9]
|
|
||||||
dump_vars [filter]
|
|
||||||
help
|
|
||||||
list_cmds [filter]
|
|
||||||
list_vars [filter]
|
|
||||||
printf [formatstring] [var] [var] [var]....
|
|
||||||
printfc [color-code] [formatstring] [var] [var] [var]....
|
|
||||||
quit
|
|
||||||
random
|
|
||||||
screenshot ["big"/"no_con"]
|
|
||||||
|
|
||||||
VARIABLES:
|
|
||||||
----------
|
|
||||||
*con_developer
|
|
||||||
-> true = console debugging info
|
|
||||||
-> false = no output
|
|
||||||
|
|
||||||
*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
|
|
Loading…
Reference in New Issue