docs/Readme_Windows_MSVC6.0.txt
changeset 940 24e6412a2214
parent 844 f1cae32ae8af
child 2771 53c0f60949b0
equal deleted inserted replaced
939:68f8d6560c23 940:24e6412a2214
     1 Compilung OpenTTD using MS VC6.0
     1 Compiling OpenTTD using Microsoft Visual C++ 6.0
     2 
     2 
     3 
     3 
     4 Step 1
     4 ---Step 1
     5 ------------------
     5 
     6 Downloaded:
     6 Download the following files:
     7 Useful.zip	http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633
     7 
     8 SDL.zip		http://www.libsdl.org/release/SDL-1.2.7-win32.zip
     8     * Useful.zip (http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633)
     9 DirectX7.0 SDK	http://www.tt-forums.net/download.php?id=15989
     9     * SDL-1.2.8-VC6.zip (http://www.libsdl.org/release/SDL-devel-1.2.8-VC6.zip)
    10 		(or alternatively the latest DirectX SDK from Microsoft)
    10     * DirectX7.0 SDK (http://www.tt-forums.net/download.php?id=15989) (or alternatively the latest DirectX SDK from Microsoft)
    11 afxres.h	http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H
    11     * afxres.h (http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H) 
       
    12 
       
    13 ...and of course the newest source from svn://svn.openttd.com/trunk
       
    14 
       
    15 (The alpha version of the new map array can be found at svn://svn.openttd.com/branch/map)
       
    16 
       
    17 You have to have and SVN-client to download the source:
       
    18 
       
    19     * Command line version (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91)
       
    20     * TortoiseSVN (http://tortoisesvn.tigris.org/download.html) 
    12 
    21 
    13 
    22 
    14 Step 2
    23 ---Step 2
    15 ------------------
    24 
    16 Put the newly downloaded files in the VC lib and include directories
    25 Put the newly downloaded files in the VC lib and include directories (Where C:\program files\ is your local location of VC)
    17 (Where D:\program files\ is your local location of VC)
       
    18 
    26 
    19 
    27 
    20 * zconf.h		[useful.zip]
    28     * zconf.h [useful.zip]
    21 * zlib.h		[useful.zip]
    29     * zlib.h [useful.zip]
    22 * afxres.h	
    30     * png.h [useful.zip]
       
    31     * pngconf.h [useful.zip]
       
    32     * afxres.h 
       
    33 
    23 in
    34 in
    24   D:\Program Files\Microsoft Visual Studio\VC98\Include
       
    25 
    35 
    26 * zlibstat.lib		[usefull.zip]
    36   C:\Program Files\Microsoft Visual Studio\VC98\Include
    27 * SDL.lib		[SDL.zip
    37 
    28 * libpng.lib		[usefull.zip]
    38 and
       
    39 
       
    40     * zlibstat.lib [useful.zip]
       
    41     * SDL.lib [SDL.zip]
       
    42     * libpng.lib [useful.zip] 
       
    43 
    29 in
    44 in
    30   D:\Program Files\Microsoft Visual Studio\VC98\Lib
       
    31 
    45 
    32 You can also make custum directories, for libraries (.lib) and includes/header files (.h) and
    46   C:\Program Files\Microsoft Visual Studio\VC98\Lib
    33 add it to the VC paths via: 
       
    34 Tools -> Options -> Directories -> show directories for:
       
    35 a) include files (the include dir: D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include )
       
    36 b) library files (the lib dir, D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib )
       
    37 
    47 
    38 
    48 
    39 Step 3: DirextX SDK
    49 ---Step 3: DirectX SDK
    40 ------------------
       
    41 (This should work with the latest DirectX SDK as well.)
       
    42 The installation with DirectX 7 was odd, so you'd better use the version available via the forum, see also
       
    43 the download link on top.
       
    44 
    50 
    45 Copy the DirectX 7 SDK files, leaving the directory stucture intact, to the directory:
    51 (This should work with the latest DirectX SDK as well.) The installation with DirectX 7 was odd, so you'd better use the version available via the forum, see also the download link on top.
    46   D:\Program Files\Microsoft Visual Studio\VC98\
       
    47 thus resulting in
       
    48   D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include and
       
    49   D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib
       
    50 
    52 
    51 Step 3.1
    53 There are 2 folder in the compressed file: Include and Lib
    52 
    54 
    53 Add these two folders to the search path of VC.
    55 Copy all files from Include folder to
    54 In VC6.0: Tools -> Options -> Directories -> show directories for:
    56 
    55 a) include files (the include dir: D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include )
    57 C:\Program Files\Microsoft Visual Studio\VC98\Include
    56 b) libraru files (the lib dir, D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib )
    58 
       
    59 and all files from Lib folder to
       
    60 
       
    61 C:\Program Files\Microsoft Visual Studio\VC98\Lib
    57 
    62 
    58 
    63 
    59 Step 4
       
    60 -----------------
       
    61 Copy the following files from Transport Tycoon Deluxe to the data folder
       
    62   sample.cat
       
    63   trg1r.grf
       
    64   trgcr.grf
       
    65   trghr.grf
       
    66   trgir.grf
       
    67   trgtr.grf
       
    68 
    64 
    69 (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.)
    65 You can also make custom directories, for libraries (.lib) and includes/header files (.h) and add it to the VC paths via:
    70 
    66 
    71 Step 5
    67 Tools -> Options -> Directories -> show directories for:
    72 -----------------
    68 
    73 Compile ...
    69 a) include files (the include dir: C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include )
       
    70 
       
    71 b) library files (the lib dir, C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib )
    74 
    72 
    75 
    73 
    76 Step 6
    74 ---Step 4
    77 -----------------
    75 
       
    76 Copy the following files from Transport Tycoon Deluxe to the data folder
       
    77 
       
    78     * sample.cat
       
    79     * trg1r.grf
       
    80     * trgcr.grf
       
    81     * trghr.grf
       
    82     * trgir.grf
       
    83     * trgtr.grf 
       
    84 
       
    85 
       
    86 ---Step 5
       
    87 
       
    88 Open trunk/ttd.dsw
       
    89 
       
    90 Build menu > Set active configuration > Select: "ttd - Win32 Release with PNG"
       
    91 
       
    92 Compile...
       
    93 
    78 
    94 
    79 Now it should work, it worked for me :)
    95 Now it should work, it worked for me :)
    80 
    96 
    81 Go ahead and make that patch!
    97 From r1319 you can compile branch/map in Debug mode (by Bociusz)
    82 
    98 
    83 Happy Hacking!
    99 If it's not working, and you checked that you using the newest SVN (!) report to Bociusz on IRC (irc://irc.freenode.net/#openttd)
    84 
   100 
       
   101 Go ahead and make that patch! Happy Hacking! :)
    85 
   102 
       
   103 Originally written by Dribbel
    86 
   104 
    87 ------------------
   105 Project file updating by Bociusz
    88 written by Dribbel
       
    89