author | Darkvater |
Sat, 14 May 2005 22:03:25 +0000 | |
changeset 1809 | d54f7f8050f6 |
parent 961 | e9abf6f087f8 |
child 3971 | 77061ae9b534 |
permissions | -rw-r--r-- |
0 | 1 |
Compiling and developing OpenTTD on MandrakeLinux 10.0 Official |
2 |
||
3 |
A quick guide to get started with OpenTTD development on Linux. |
|
4 |
--------------------------------------------------------------- |
|
5 |
||
6 |
1.) RPMs: |
|
7 |
||
8 |
Most packages that are required for development (like gcc) should already be installed on your box. You will require those RPMs additionally: |
|
9 |
- libsdl1.2-devel-1.2.7-2mdk |
|
10 |
- subversion-1.0.1-1mdk (+ dependencies) |
|
11 |
- libsvn_ra_svn1_0-1.0.1-1mdk |
|
12 |
||
13 |
||
14 |
2.) Subversion: |
|
15 |
||
16 |
To obtain the source code from the subversion server type |
|
17 |
$ svn co svn://svn.openttd.com/openttd/trunk openttd |
|
18 |
from command line to dump the code into the directory 'openttd'. |
|
19 |
||
20 |
To update your working copy to the latest revision use |
|
21 |
$ svn update |
|
22 |
Don't worry, your version will be merged with the latest version. |
|
23 |
||
24 |
The command |
|
25 |
$ svn diff > mypatch.diff |
|
26 |
creates a patch file (aka diff file) which you can submit to the developers to share your improvements. |
|
27 |
||
28 |
You can undo changes to a file with |
|
29 |
$svn revert filename |
|
30 |
||
31 |
||
32 |
3.) Required data files: |
|
33 |
||
614
b96f987dbf80
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
dominik
parents:
0
diff
changeset
|
34 |
Copy the following files from Transport Tycoon Deluxe to openttd/data/ |
0 | 35 |
sample.cat |
36 |
trg1r.grf |
|
37 |
trgcr.grf |
|
38 |
trghr.grf |
|
39 |
trgir.grf |
|
40 |
trgtr.grf |
|
614
b96f987dbf80
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
dominik
parents:
0
diff
changeset
|
41 |
|
961 | 42 |
(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.) |
614
b96f987dbf80
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
dominik
parents:
0
diff
changeset
|
43 |
|
0 | 44 |
|
45 |
4.) Compiling and running: |
|
46 |
||
47 |
Compile OpenTTD with |
|
48 |
$ make |
|
49 |
and run it with |
|
50 |
$ ./ttd |
|
51 |
||
52 |
||
53 |
5.) Playing the soundtrack: |
|
54 |
||
55 |
If you want the original TTD music you need to copy the whole /gm/ directory from Windows. Additionally the TiMidity driver is required: |
|
56 |
TiMidity++-2.12.0-0.pre1.4mdk (+ dependencies) |
|
57 |
To run OpenTTD with music support type |
|
58 |
$ ./ttd -m extmidi |
|
59 |
||
60 |
||
61 |
X.) Last Update: $Date: 2004-06-01 19:08:09 +0200 (Tue, 01 Jun 2004) $ |
|
62 |
Written for revision $Rev: 710 $ |