Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | Compiling D2X-Rebirth Sourcecode |
2 | |||
3 | This file describes how to compile D2X-Rebirth from Source. |
||
4 | |||
5 | |||
6 | Requirements: |
||
7 | ============= |
||
8 | |||
9 | 1. C/C++ compiler (gcc/g++) |
||
10 | 2. SCons (to compile in *NIX/Win32) / XCode (to compile on MacOS) |
||
11 | 3. SDL(-devel) |
||
12 | 4. PhysFS(-devel) |
||
13 | 5. GLU/GL |
||
14 | 6. NASM (optional for Assembler-based Texture-mapper in non-OpenGL Build) |
||
15 | 7. SDL_mixer(-devel) (+ dependencies) for external music support |
||
16 | |||
17 | |||
18 | Compiling: |
||
19 | ========== |
||
20 | |||
21 | *NIX: |
||
22 | ----- |
||
23 | Type 'scons' to compile the source. |
||
24 | You can also give additional options like 'scons use_udp=0'. See 'scons -h' for available options. |
||
25 | To install, use 'scons install' but remember to use all your options as well or SCons will re-compile and |
||
26 | install without any options given to prior compiling. However it's STRONGLY recommended NOT to use the |
||
27 | 'install' argument but to create a package for your Linux distribution or operating system. 'install' will |
||
28 | compile the resulting binary (d2x-rebirth) to /usr/local/bin/ by default so to uninstall, just |
||
29 | delete the binary. |
||
30 | |||
31 | MacOS: |
||
32 | ------ |
||
33 | For Mac OS X, an Xcode project is available (requires Xcode 2.1 or later). Xcode includes the compiler |
||
34 | and OpenGL. The standard SDL and SDL_mixer libraries from the SDL website may be used, these go in |
||
35 | /Library/Frameworks or ~/Library/Frameworks. However, to fix MP3 support for the 'Release' build I used |
||
36 | SDL 1.2.8 with Diedel's modified SMPEG library from his D2X-XL website. To debug these libraries compile |
||
37 | the frameworks from source as 'Debug' builds, then use these instead. PhysicsFS must be compiled from |
||
38 | source. Put its enclosing folder 'physfs', renaming if necessary, next to D1X's (typically d1x-rebirth). |
||
39 | In CMake ensure the build path points to 'build' inside 'physfs'. Specify 'i386;ppc' as the architecture |
||
40 | for a universal binary. In Xcode, build 'Debug' and 'Release' from the dynamic library target. |
||
41 | SCons also works on MacOS X, but it's recommended to use XCode instead. |
||
42 | |||
43 | For Mac OS 9, an MPW Makefile is available. MPW includes the compiler. As for the shared libraries, |
||
44 | compile PhysicsFS version 1.0 and the latest SDL and SDL_mixer (as of writing) from source. For SDL_mixer |
||
45 | 1.2.11 you will need to disable MikMod support, from SDL_mixer.make, otherwise use SDL_mixer 1.2.8. |
||
46 | For any sources to compile, they will need to be made into text files using a typecode changing program, |
||
47 | if they were downloaded outside of Mac OS 9 (including Mac OS X). This will also need to be done after any |
||
48 | Terminal command (diff, svn update etc) edits the source files. THIS MAKEFILE IS GROSSLY OUT OF DATE!! |
||
49 | |||
50 | Note that there are ready-to-go packages on https://www.dxx-rebirth.com |
||
51 | |||
52 | Win32: |
||
53 | ------ |
||
54 | Use the SCons way like described in the *NIX-instructions from an MSYS/MinGW environment. However you will |
||
55 | not need to use 'install' but just drag the resulting binary to your Descent-folder. |
||
56 | Note that there are ready-to-go packages on https://www.dxx-rebirth.com |
||
57 | |||
58 | |||
59 | Needed files: |
||
60 | ============= |
||
61 | |||
62 | Since D2X-Rebirth is a Sourceport of the Descent2-Engine you will need the Game-Content data files to run |
||
63 | the game. You can use your original Floppies, CDs or files from previously bought GOG or Steam versions. |
||
64 | |||
65 | Following files are needed to run the game: |
||
66 | descent2.ham |
||
67 | descent2.hog |
||
68 | descent2.s11 |
||
69 | descent2.s22 |
||
70 | alien1.pig |
||
71 | alien2.pig |
||
72 | fire.pig |
||
73 | groupa.pig |
||
74 | ice.pig |
||
75 | water.pig |
||
76 | intro-h.mvl and/or intro-l.mvl |
||
77 | other-h.mvl and/or other-l.mvl |
||
78 | robots-h.mvl and/or robots-l.mvl |
||
79 | |||
80 | With the PC version, these files - except the Movies (*.mvl) - are archived in the file |
||
81 | 'descent2.sow' on the Descent2 CD-Rom. |
||
82 | This is an ARJ-archive and can be extracted with an adapted archiver like unarj or by installing the |
||
83 | game on a Windows/DOS system. |
||
84 | |||
85 | Note that the above files must be lowercase if you use an operating system with case-sensitive file management. |
||
86 | |||
87 | For the Mac CD-ROM, download The Unarchiver (http://wakaba.c3.cx/s/apps/unarchiver.html) and drag the |
||
88 | installer program onto it. Alternatively, use a computer with Mac OS 9 to run the installer, then copy over. |
||
89 | After installing, copy all the files from 'Data' on the CD to the 'data' folder created. |
||
90 | Unfortunately the movies do not work; if you want the movies consider purchasing Descent 2 for PC |
||
91 | (e.g. from Good Old Games) and extract that installer with The Unarchiver. Hey, then you'll have |
||
92 | another license for multiplayer. ;) |
||
93 | |||
94 | Of course you can also use the Interactive Demo game content with D2X-Rebirth which you can find here: |
||
95 | https://www.dxx-rebirth.com/game-content/ |
||
96 | |||
97 | |||
98 | Where to put these files: |
||
99 | ========================= |
||
100 | |||
101 | *NIX |
||
102 | ---- |
||
103 | The Sharepath (/usr/local/share/games/d1x-rebirth/ by default - if not reconfigured via SCons) or |
||
104 | ~/.d1x-rebirth or |
||
105 | another directory specified by -hogdir via d1x.ini |
||
106 | |||
107 | MacOS |
||
108 | ----- |
||
109 | Same directory as where the binary is located or |
||
110 | another directory specified by -hogdir via d1x.ini |
||
111 | |||
112 | Win32 |
||
113 | ----- |
||
114 | Same directory as where the binary is located |
||
115 | another directory specified by -hogdir via d1x.ini |
||
116 | |||
117 | |||
118 | Optional files: |
||
119 | =============== |
||
120 | |||
121 | D2X-Rebirth is expandable. You can add additional content to the game. |
||
122 | |||
123 | Vertigo series AddOn |
||
124 | -------------------- |
||
125 | Can be added by copying the files |
||
126 | d2x-h.mvl and/or d2x-l.mvl, hoard.ham to your game-directory/Sharepath and |
||
127 | d2x.hog, d2x.mn2 to 'missions/' subdirectory. |
||
128 | All these files should be located on the ‘Vertigo Series’ CD-Rom |
||
129 | |||
130 | Missions: |
||
131 | --------- |
||
132 | Those can be found on several websites. Add them to the game by copying them to subdirectory |
||
133 | ‘missions/’. They can also go in subdirectories of 'missions/', unlike with the original version. |
||
134 | A good place to find additional mission might be the Descent mission Database: |
||
135 | https://www.dxx-rebirth.com/descent-mission-database/ |
||
136 | |||
137 | Custom Music (MP3, OGG, AIF, etc.): |
||
138 | ----------------------------------- |
||
139 | Custom Music can be played via the JUKEBOX options by specifying it in the Sound Options menu. |
||
140 | Please note that all custom music has to be in 44Khz format. Supported formats depend on the capabilities of SDL_mixer. |
||
141 | |||
142 | AddOn Packs: |
||
143 | ------------ |
||
144 | Custom AddOn packs will expand the game in many different ways. These are usually provided as ZIP or 7Z and can easily |
||
145 | be installed by putting them to where your game content resides (OS-dependent - see above). |
||
146 | NO EXTRACTION OR ADDITIONAL CONFIGURATION NEEDED. |
||
147 | You can find all official AddOns here: |
||
148 | https://www.dxx-rebirth.com/addons/ |
||
149 | |||
150 | |||
151 | Launching the program |
||
152 | ===================== |
||
153 | |||
154 | *NIX |
||
155 | ---- |
||
156 | After compiling and installing, the program can be launched with the command: d2x-rebirth |
||
157 | |||
158 | MacOS |
||
159 | ----- |
||
160 | Simply double-click "D2X-Rebirth". |
||
161 | |||
162 | Win32 |
||
163 | ----- |
||
164 | Doubleclick d2x-rebirth.exe |
||
165 | |||
166 | To see a full list of available command-line options append ‘-h’, ‘-?’ to the command or refer file |
||
167 | d2x.ini |
||
168 | |||
169 | |||
170 | Appendix |
||
171 | ======== |
||
172 | http://DXX-Rebirth.com |