This is a fork of the Descent 3 open source engine, licensed under GPL-3.0. In order to use this, you must provide your own game files. See the Usage section for details.
Build steps below assume you have already cloned the repository and set it up with your chosen IDE. During cmake configuration you have the following options (default to OFF):
-DENABLE_LOGGER=[ON|OFF]
- Enable the spdlog header.-DENABLE_NETGAMES=[ON|OFF]
- Enable compiling thenetcon
andnetgames
folders for multiplayer.-DENABLE_SCRIPTS=[ON|OFF]
- Enable compiling level scripts which will give you thed3-{platform}.hog
file.
Requires Visual Studio 2022 and C++ Tools (cmake and vcpkg)
Install and configure vcpkg:
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg && bootstrap-vcpkg.bat
setx VCPKG_ROOT="C:\path\to\vcpkg"
setx PATH=%VCPKG_ROOT%;%PATH%
Build Descent 3:
cmake --preset [win32|win64] -DENABLE_LOGGER=[ON|OFF] -DENABLE_NETGAMES=[ON|OFF] -DENABLE_SCRIPTS=[ON|OFF]
cmake --build --preset win --config [Debug|Release]
brew bundle install
cmake --preset mac -DENABLE_LOGGER=[ON|OFF] -DENABLE_NETGAMES=[ON|OFF] -DENABLE_SCRIPTS=[ON|OFF]
cmake --build --preset mac --config [Debug|Release]
sudo apt update
sudo apt install -y --no-install-recommends ninja-build cmake libsdl2-dev libncurses-dev zlib1g-dev
cmake --preset linux -DENABLE_LOGGER=[ON|OFF] -DENABLE_NETGAMES=[ON|OFF] -DENABLE_SCRIPTS=[ON|OFF]
cmake --build --preset linux --config [Debug|Release]
sudo dnf update --refresh
sudo dnf install -y ninja-build cmake gcc-c++ SDL2-devel ncurses-devel zlib-devel
cmake --preset linux -DENABLE_LOGGER=[ON|OFF] -DENABLE_NETGAMES=[ON|OFF] -DENABLE_SCRIPTS=[ON|OFF]
cmake --build --preset linux --config [Debug|Release]
-
Make sure that you have a copy of Descent 3. You can purchase a copy of Descent 3 from GOG or Steam.
-
Install Descent 3.
-
Note for Steam users: If you own Descent 3 on Steam, then it’s recommended that you install the Windows version of the game even if you’re running macOS or Linux, otherwise movies will not work due to current lack of Ogv support. You can use either Steam Play or SteamCMD to install the Windows version of the game on macOS or Linux.
-
Note for non-Windows users: If you have the Windows version of the game on CDs but you don’t want to use Windows to install them, then you can follow these instructions:
How to install the Windows Dual-Jewel version of Descent 3 in Wine
- Make sure that you have Wine installed.
- (Recommended) Run
winecfg
and make sure that “Emulate a virtual desktop” is enabled. -
(Optional) Determine if you’re going to be affected by a bug with Descent 3’s installer, and potentially apply a workaround:
- Download Environment Size Checker.
- Run
wine environment-size-checker.exe
. - If that program tells you that your environment is more than 32,724 bytes large, then you’ll need to unset or shorten environment variables before running Descent 3’s installer. If you don’t, then the installer will page fault.
-
Install Descent 3:
- Insert disc 1.
- Make sure that disc 1 is mounted.
- Determine which drive letter Wine is using for your CD drive. (Hint: try running
wine explorer
). - Run
wine '<drive-letter>:\Setup.exe'
. - Follow the installation wizard’s instructions until it asks you to choose a “Setup Type”.
- Select the “Full” Setup Type, then click “Next”.
- Continue following the installation wizard’s instructions until it asks you to insert disc 2.
-
Switch to disc 2:
- Run
wine eject <drive-letter>:
. - Make sure that the disc was unmounted and ejected.
- Insert disc 2.
- Mount disc 2.
- Run
- Continue following the installation wizard’s instructions until it asks you to insert disc 1 again.
- Switch back to disc 1. Follow a similar procedure to the one that you used to switch to disc 2.
- Finish the going through the installation wizard.
- When the installation wizard finishes, it will open an explorer window. Close out of that window.
- Unmount the disc.
- Eject the disc.
-
Install Descent 3: Mercenary:
- Insert disc 3.
- Make sure that disc 3 is mounted.
- Run
wine start /d <drive-letter>: setup.exe -autorun
. - Follow the instructions in the installation wizard.
-
-
If your version of Descent 3 is older than v1.4, then update it to v1.4.
-
After you build, copy the build contents in
builds/{platform}/Descent3/{config}/
to whatever folder you wish. -
Copy the following files from your installation of Descent 3 to that folder:
- All
.hog
files (don't overwrite existing files) - The
missions
folder - (Optional) All
.pld
and.plt
files. - (Optional) Contents of the
demo
folder. - (Optional) Contents of the
movies
folder. - (Optional) Existing saves in the
savegame
folder (32-bit saves do not currently work with 64-bit builds). - (Optional) Existing sscreenshots to the new
screenshots
folder.
- All