0
|
1 |
Compilung OpenTTD using MS VC6.0
|
|
2 |
|
|
3 |
|
|
4 |
Step 1
|
|
5 |
------------------
|
|
6 |
Downloaded:
|
|
7 |
Useful.zip http://sourceforge.net/project/showfiles.php?group_id=103924&package_id=114307&release_id=228633
|
|
8 |
SDL.zip http://www.libsdl.org/release/SDL-1.2.7-win32.zip
|
|
9 |
DirectX7.0 SDK http://www.tt-forums.net/download.php?id=15989
|
|
10 |
(or alternatively the latest DirectX SDK from Microsoft)
|
|
11 |
afxres.h http://www-d0.fnal.gov/d0dist/dist/packages/d0ve/devel/windows/AFXRES.H
|
|
12 |
|
|
13 |
|
|
14 |
Step 2
|
|
15 |
------------------
|
|
16 |
Put the newly downloaded files in the VC lib and include directories
|
|
17 |
(Where D:\program files\ is your local location of VC)
|
|
18 |
|
|
19 |
|
|
20 |
* zconf.h [useful.zip]
|
|
21 |
* zlib.h [useful.zip]
|
|
22 |
* afxres.h
|
|
23 |
in
|
|
24 |
D:\Program Files\Microsoft Visual Studio\VC98\Include
|
|
25 |
|
|
26 |
* zlibstat.lib [usefull.zip]
|
|
27 |
* SDL.lib [SDL.zip
|
|
28 |
* libpng.lib [usefull.zip]
|
|
29 |
in
|
|
30 |
D:\Program Files\Microsoft Visual Studio\VC98\Lib
|
|
31 |
|
|
32 |
You can also make custum directories, for libraries (.lib) and includes/header files (.h) and
|
|
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 |
|
|
38 |
|
|
39 |
Step 3: DirextX 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 |
|
|
45 |
Copy the DirectX 7 SDK files, leaving the directory stucture intact, to the directory:
|
|
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 |
|
|
51 |
Step 3.1
|
|
52 |
|
|
53 |
Add these two folders to the search path of VC.
|
|
54 |
In VC6.0: Tools -> Options -> Directories -> show directories for:
|
|
55 |
a) include files (the include dir: D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\include )
|
|
56 |
b) libraru files (the lib dir, D:\Program Files\Microsoft Visual Studio\VC98\DirectX 7 SDK\lib )
|
|
57 |
|
|
58 |
|
|
59 |
Step 4
|
|
60 |
-----------------
|
|
61 |
Copy the following files from the WINDOWS version of 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 |
|
|
69 |
|
|
70 |
|
|
71 |
Step 5
|
|
72 |
-----------------
|
|
73 |
Compile ...
|
|
74 |
|
|
75 |
|
|
76 |
Step 6
|
|
77 |
-----------------
|
|
78 |
|
|
79 |
Now it should work, it worked for me :)
|
|
80 |
|
|
81 |
Go ahead and make that patch!
|
|
82 |
|
|
83 |
Happy Hacking!
|
|
84 |
|
|
85 |
|
|
86 |
|
|
87 |
------------------
|
|
88 |
written by Dribbel
|
|
89 |
|