miham@940: Compiling OpenTTD using Microsoft Visual C++ 6.0 darkvater@844: darkvater@844: Darkvater@2771: Step 1: Ingredients darkvater@844: miham@940: Download the following files: darkvater@844: Darkvater@2771: * Openttd-useful.zip (http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633) Darkvater@2771: * DirectX 8.1 SDK (http://neuron.tuke.sk/~mizanin/eng/Dx81sdk-include-lib.rar) (or alternatively the latest DirectX SDK from Microsoft) Darkvater@2771: * The February 2003 Microsoft Platform SDK (http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm) (newer SDK's do not work with MSVC6) Darkvater@2771: * afxres.h (http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H) (maybe you not need this) miham@940: Darkvater@2771: ...and of course the newest source from svn://svn.openttd.org/trunk miham@940: Darkvater@2771: You have to have a SVN-client to download the source: darkvater@844: Darkvater@2771: * Command line version (Subversion 1.2.3 Win32 binaries) (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91) Darkvater@2771: * GUI TortoiseSVN (http://tortoisesvn.tigris.org/download.html) darkvater@844: Darkvater@2771: Step 2: Includes and Libraries darkvater@844: Darkvater@2771: Put the newly downloaded files in the VC lib and include directories (Where "C:\Program Files\Microsoft Visual Studio\VC98" is your local location of VC) darkvater@844: darkvater@844: miham@940: * zconf.h [useful.zip] miham@940: * zlib.h [useful.zip] miham@940: * png.h [useful.zip] miham@940: * pngconf.h [useful.zip] Darkvater@2771: * afxres.h miham@940: miham@940: in miham@940: Darkvater@2771: C:\Program Files\Microsoft Visual Studio\VC98\Include miham@940: miham@940: and miham@940: miham@940: * zlibstat.lib [useful.zip] Darkvater@2771: * libpng.lib [useful.zip] miham@940: miham@940: in miham@940: Darkvater@2771: C:\Program Files\Microsoft Visual Studio\VC98\Lib miham@940: miham@940: Darkvater@2771: Step 3: DirectX SDK miham@940: Darkvater@2771: (This should work with the latest DirectX SDK as well.) miham@940: miham@940: There are 2 folder in the compressed file: Include and Lib miham@940: miham@940: Copy all files from Include folder to miham@940: miham@940: C:\Program Files\Microsoft Visual Studio\VC98\Include miham@940: miham@940: and all files from Lib folder to miham@940: miham@940: C:\Program Files\Microsoft Visual Studio\VC98\Lib miham@940: miham@940: miham@940: Darkvater@2771: You can also make custom directories, which is recommended so you don't overwrite VS6 files, for libraries (.lib) and includes/header files (.h) and add it to the VC paths via: miham@940: miham@940: Tools -> Options -> Directories -> show directories for: miham@940: Darkvater@2771: a) include files (the include dir: C:\Program Files\Microsoft Visual Studio\VC98\DirectX 8.1 SDK\include ) miham@940: Darkvater@2771: b) library files (the lib dir, C:\Program Files\Microsoft Visual Studio\VC98\DirectX 8.1 SDK\lib ) miham@940: Darkvater@2771: NOTE: make sure that the directory for the DirectX SDK is the first one in the list, above all others, otherwise compilation will most likely fail!! miham@940: Darkvater@2771: Step 4: TTD Graphics files miham@940: miham@940: Copy the following files from Transport Tycoon Deluxe to the data folder miham@940: miham@940: * sample.cat miham@940: * trg1r.grf miham@940: * trgcr.grf miham@940: * trghr.grf miham@940: * trgir.grf Darkvater@2771: * trgtr.grf miham@940: miham@940: Darkvater@2771: Step 5: Compiling miham@940: Darkvater@2771: Open trunk/openttd.dsw miham@940: Darkvater@2771: Build menu > Set active configuration > Select: "openttd - Win32 Release" miham@940: miham@940: Compile... miham@940: darkvater@844: darkvater@844: Now it should work, it worked for me :) darkvater@844: miham@940: From r1319 you can compile branch/map in Debug mode (by Bociusz) darkvater@844: Darkvater@2771: For compiling branch/cargo-packets you have to add cargo.c and .h to this tree's openttd.dsp Darkvater@2771: Darkvater@2771: If it's not working, and you checked that you using the newest SVN (!) report to Bociusz on IRC (irc://irc.freenode.net/openttd) darkvater@844: miham@940: Go ahead and make that patch! Happy Hacking! :) darkvater@844: miham@940: Originally written by Dribbel miham@940: Darkvater@2771: Project file updating by Bociusz