truelight@0: Compiling and developing OpenTTD on MandrakeLinux 10.0 Official truelight@0: truelight@0: A quick guide to get started with OpenTTD development on Linux. truelight@0: --------------------------------------------------------------- truelight@0: truelight@0: 1.) RPMs: truelight@0: truelight@0: Most packages that are required for development (like gcc) should already be installed on your box. You will require those RPMs additionally: truelight@0: - libsdl1.2-devel-1.2.7-2mdk truelight@0: - subversion-1.0.1-1mdk (+ dependencies) truelight@0: - libsvn_ra_svn1_0-1.0.1-1mdk truelight@0: truelight@0: truelight@0: 2.) Subversion: truelight@0: truelight@0: To obtain the source code from the subversion server type truelight@0: $ svn co svn://svn.openttd.com/openttd/trunk openttd truelight@0: from command line to dump the code into the directory 'openttd'. truelight@0: truelight@0: To update your working copy to the latest revision use truelight@0: $ svn update truelight@0: Don't worry, your version will be merged with the latest version. truelight@0: truelight@0: The command truelight@0: $ svn diff > mypatch.diff truelight@0: creates a patch file (aka diff file) which you can submit to the developers to share your improvements. truelight@0: truelight@0: You can undo changes to a file with truelight@0: $svn revert filename truelight@0: truelight@0: truelight@0: 3.) Required data files: truelight@0: dominik@614: Copy the following files from Transport Tycoon Deluxe to openttd/data/ truelight@0: sample.cat truelight@0: trg1r.grf truelight@0: trgcr.grf truelight@0: trghr.grf truelight@0: trgir.grf truelight@0: trgtr.grf dominik@614: dominik@614: (Alternatively you can use the TTD GRF files from the DOS version: TRG1.GRF, TRGC.GRF, TRGH.GRF, TRGI.GRF, TRGT.GRF. Those filenames have to be uppercase to be detected correctly. 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.) dominik@614: truelight@0: truelight@0: 4.) Compiling and running: truelight@0: truelight@0: Compile OpenTTD with truelight@0: $ make truelight@0: and run it with truelight@0: $ ./ttd truelight@0: truelight@0: truelight@0: 5.) Playing the soundtrack: truelight@0: truelight@0: If you want the original TTD music you need to copy the whole /gm/ directory from Windows. Additionally the TiMidity driver is required: truelight@0: TiMidity++-2.12.0-0.pre1.4mdk (+ dependencies) truelight@0: To run OpenTTD with music support type truelight@0: $ ./ttd -m extmidi truelight@0: truelight@0: truelight@0: X.) Last Update: $Date: 2004-06-01 19:08:09 +0200 (Tue, 01 Jun 2004) $ truelight@0: Written for revision $Rev: 710 $