dxx-rebirth/INSTALL.txt

162 lines
5.8 KiB
Plaintext
Raw Normal View History

Compiling D1X-Rebirth Sourcecode
2007-05-03 15:44:52 +00:00
2008-05-21 14:25:00 +00:00
This file describes how to compile D1X-Rebirth from Source.
2007-05-03 15:44:52 +00:00
Requirements
1.
C/C++ compiler (gcc/g++)
2.
SCons
3.
SDL(-devel)
4.
PhysFS(-devel)
2007-05-03 15:44:52 +00:00
5.
GLU/GL
6.
2007-05-03 15:44:52 +00:00
NASM (optional for Assembler-based Texture-mapper in non-OpenGL Build)
2008-05-21 14:25:00 +00:00
2007-05-03 15:44:52 +00:00
Compiling
For Mac OS X, an Xcode project is available (requires Xcode 2.1 or later). Xcode includes the compiler and OpenGL.
2007-05-03 15:44:52 +00:00
The SConstruct file provides various options to compile this program.
To get a full list of all available commands, type scons -h within the Source directory.
Currently, the following variables are supported:
'sharepath=DIR' (non-Mac OS *NIX only) use DIR for shared game data. (default: /usr/local/share/games/d1x-rebirth)
2007-05-03 15:44:52 +00:00
'sdl_only=1' don't include OpenGL, use SDL-only instead
2008-05-21 14:25:00 +00:00
'sdlmixer=1' use SDL_Mixer for sound (includes external music support)
2007-05-03 15:44:52 +00:00
'shareware=1' build SHAREWARE version
'asm=1' use ASSEMBLER code (only with sdl_only=1, requires NASM and x86)
2007-05-03 15:44:52 +00:00
'debug=1' build DEBUG binary which includes asserts, debugging output, cheats and more output
'profiler=1' do profiler build
'editor=1' build editor !EXPERIMENTAL!
'arm=1' compile for ARM architecture
sdlmixer as well as editor are currently *not* supported and may not work.
To compile the source, type:
scons
If you wish to add additional commands, just add them to the scons command.
Example:
scons sdl_only=1 asm=1
2007-05-03 15:44:52 +00:00
To install the compiled binary to your system (/usr/local/bin/), type (as root):
scons install
2008-05-21 14:25:00 +00:00
You can also add the install command while compile-time. SCons will compile and install the binary right after that.
For Windows and Mac however, it is instead recommended to manually drag the program to the folder containing the Descent data or use the -hogdir option when running.
2007-05-03 15:44:52 +00:00
To clean up the source directory after installation, type:
scons -c
Needed files
Since D1X-Rebirth is a Sourceport of the Descent1-Engine you will need the Game-Content data files to run the game.
For non-Mac OS *NIX all files need to be copied to the Sharepath, which is (if not specified with the SCons sharepath-variable) /usr/local/share/games/d1x-rebirth/. For all other systems the files go in the folder containing the application, as with the original version. For *NIX systems (including Mac OS X) there is also the option of placing them in a folder you specify using d1x.ini (see end).
2007-05-03 15:44:52 +00:00
Following files are needed to run the game:
descent.hog
descent.pig
These files should be located on the Descent1 CD-Rom.
On non-Mac OS *NIX, those files must be lowercase. The PC version data files need to be patched to version 1.4a.
The above files may go in a subdirectory called 'Data'.
2007-05-03 15:44:52 +00:00
There is a patch suitable for *NIX systems (diff-files) available at:
http://www.dxx-rebirth.com/download/dxx/res/descent1_patch14a-linux.tar.gz
2007-05-03 15:44:52 +00:00
Patching can also be done from Windows/DOS using the DOS 1.4a-patch of Parallax, that will patch a common Descent1 installation.
DOS 1.4a patch: http://www.dxx-rebirth.com/download/dxx/res/descent1_patch14a.exe
2007-05-03 15:44:52 +00:00
2008-05-21 14:25:00 +00:00
For the Mac CD-ROM, the data files will need to be installed from the CD using a Mac system earler than OS X. Classic will work. If you know of any other way, please tell me at chris at icculus.org. No patch is needed for these data files.
2007-05-03 15:44:52 +00:00
To play the Multiplayer levelset “Total Chaos”, also copy the files
chaos.hog
chaos.msn
to the subdirectory missions/. These files should also be located on the Descent1 CD.
2007-05-03 15:44:52 +00:00
Optional files
D1X-Rebirth is expandable. You can add additional content to the game.
Supported content:
*
HiRes Briefing Images and Fonts
Available at:
http://www.dxx-rebirth.com/download/dxx/res/d1xrdata.zip
2008-05-21 14:25:00 +00:00
To add those, copy the ZIP file to the D1X-Rebirth directory or - on *NIX systems - into Sharepath or ~/.d1x-rebirth.
HiRes Briefings and fonts will be used automatically.
The Mac data files are already hires.
2007-05-03 15:44:52 +00:00
*
Custom/AddOn missions
Those can be found on several websites. Add them to the game by copying them to subdirectory missions/. They can also go in subdirectories of 'missions/', unlike with the original version.
2007-05-03 15:44:52 +00:00
*
Language Packs
German translation: http://www.dxx-rebirth.com/download/dxx/res/D1XBDE01.zip
Copy the txb-files to the Sharepath (non-Mac OS *NIX)/program directory (otherwise). Will be activated automatically
2007-05-03 15:44:52 +00:00
Launching the program
On Windows and Mac OS, simply double-click the program.
After compiling and installing, the program can be launched on *NIX systems with the command
2007-05-03 15:44:52 +00:00
d1x-rebirth-gl
or - if it has been compiled with SCons parameter sdl_only=1 -
d1x-rebirth-sdl
To see a full list of available command-line options append -h, -? to the command or refer file
d1x.ini
On *NIX systems, the game will create a config-directory. On non-Mac *NIX systems this will be called .d1x-rebirth and reside in the Home directory of the user.
On Mac OS X this directory will be called D1X Rebirth, in the Preferences folder in the users Library.
On all other systems (Windows and Mac OS 9) the application directory is used.
2007-05-03 15:44:52 +00:00
It is used to read/save
*
Configuration files
*
Pilot profiles and Savegames
*
Demos
*
Screenshots
*
d1x.ini for parsing command-line arguments (the config directory is searched first, then the directory containing the program)
2007-05-03 15:44:52 +00:00
Thanks to PhysFS, on *NIX systems data files can also go in here. In addition, demos could be moved from the config directory to the Sharepath/program directory to make them viewable by other users.
2007-05-03 15:44:52 +00:00
Appendix
http://DXX-Rebirth.de