docs/Readme_Windows_MSVC6.0.txt
author truelight
Fri, 04 Feb 2005 14:24:23 +0000
changeset 1282 e7a73ee62d2f
parent 940 24e6412a2214
child 2771 53c0f60949b0
permissions -rw-r--r--
(svn r1786) -Fix: unitnumber is increased to 16bit, so now you can have up to 5000
trains in one game (instead of the 240 which was the current value).
Default max allowed vehicles per type is changed:
Trains: 500 (old 80)
Road: 500 (old 80)
Ships: 200 (old 40)
Aicraft: 300 (old 50)
(Tnx to Celestar and Darkvater for checking the patch)
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
     1
Compiling OpenTTD using Microsoft Visual C++ 6.0
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
     2
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
     3
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
     4
---Step 1
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
     5
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
     6
Download the following files:
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
     7
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
     8
    * Useful.zip (http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633)
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
     9
    * SDL-1.2.8-VC6.zip (http://www.libsdl.org/release/SDL-devel-1.2.8-VC6.zip)
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    10
    * DirectX7.0 SDK (http://www.tt-forums.net/download.php?id=15989) (or alternatively the latest DirectX SDK from Microsoft)
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    11
    * afxres.h (http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H) 
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    12
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    13
...and of course the newest source from svn://svn.openttd.com/trunk
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    14
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    15
(The alpha version of the new map array can be found at svn://svn.openttd.com/branch/map)
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    16
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    17
You have to have and SVN-client to download the source:
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    18
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    19
    * Command line version (http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91)
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    20
    * TortoiseSVN (http://tortoisesvn.tigris.org/download.html) 
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    21
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    22
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    23
---Step 2
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    24
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    25
Put the newly downloaded files in the VC lib and include directories (Where C:\program files\ is your local location of VC)
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    26
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    27
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    28
    * zconf.h [useful.zip]
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    29
    * zlib.h [useful.zip]
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    30
    * png.h [useful.zip]
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    31
    * pngconf.h [useful.zip]
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    32
    * afxres.h 
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    33
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    34
in
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    35
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    36
  C:\Program Files\Microsoft Visual Studio\VC98\Include
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    37
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    38
and
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    39
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    40
    * zlibstat.lib [useful.zip]
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    41
    * SDL.lib [SDL.zip]
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    42
    * libpng.lib [useful.zip] 
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    43
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    44
in
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    45
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    46
  C:\Program Files\Microsoft Visual Studio\VC98\Lib
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    47
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    48
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    49
---Step 3: DirectX SDK
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    50
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    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.
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    52
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    53
There are 2 folder in the compressed file: Include and Lib
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    54
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    55
Copy all files from Include folder to
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    56
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    57
C:\Program Files\Microsoft Visual Studio\VC98\Include
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    58
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    59
and all files from Lib folder to
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    60
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    61
C:\Program Files\Microsoft Visual Studio\VC98\Lib
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    62
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    63
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    64
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    65
You can also make custom directories, for libraries (.lib) and includes/header files (.h) and add it to the VC paths via:
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    66
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    67
Tools -> Options -> Directories -> show directories for:
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    68
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    69
a) include files (the include dir: C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include )
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    70
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    71
b) library files (the lib dir, C:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib )
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    72
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    73
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    74
---Step 4
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    75
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    76
Copy the following files from Transport Tycoon Deluxe to the data folder
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    77
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    78
    * sample.cat
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    79
    * trg1r.grf
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    80
    * trgcr.grf
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    81
    * trghr.grf
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    82
    * trgir.grf
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    83
    * trgtr.grf 
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    84
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    85
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    86
---Step 5
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    87
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    88
Open trunk/ttd.dsw
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    89
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    90
Build menu > Set active configuration > Select: "ttd - Win32 Release with PNG"
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    91
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    92
Compile...
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    93
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    94
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    95
Now it should work, it worked for me :)
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    96
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    97
From r1319 you can compile branch/map in Debug mode (by Bociusz)
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
    98
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
    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)
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
   100
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
   101
Go ahead and make that patch! Happy Hacking! :)
844
f1cae32ae8af (svn r1325) -Fixed eol-style properties on new files. Please before adding a new file to svn use: "svn propset svn:eol-style native <filename's>"!!
darkvater
parents: 614
diff changeset
   102
940
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
   103
Originally written by Dribbel
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
   104
24e6412a2214 (svn r1428) Compiling with MSVC6 documentation update (from the wiki) [Bociusz]
miham
parents: 844
diff changeset
   105
Project file updating by Bociusz