Descent 3 by Outrage Entertainment
Go to file
2024-05-23 23:07:26 -04:00
.github Introducing installation steps 2024-05-22 21:35:52 +03:00
2dlib Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
acmlib 64-bit fixes 2024-05-22 18:14:45 -04:00
AudioEncode 64-bit fixes 2024-05-22 18:14:45 -04:00
bitmap Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
cfile Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
cmake
czip Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
d3music Reordering dependant on sndlib modules 2024-05-22 22:03:46 +03:00
dd_grwin32 Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
dd_video Replace "uint" with "uint32_t" 2024-05-23 22:57:25 -04:00
ddebug Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
ddio_common Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
ddio_lnx Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
ddio_win Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
Descent3 Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
fix
grtext Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
legacy Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
lib Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
libacm Replace "signed short" with "int16_t" 2024-05-23 23:04:15 -04:00
libmve Replace "signed short" with "int16_t" 2024-05-23 23:04:15 -04:00
linux Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
lnxmvelib Replace "signed short" with "int16_t" 2024-05-23 23:04:15 -04:00
manage Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
md5 Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
mem Replace "unsigned short" with "uint16_t" 2024-05-23 23:03:29 -04:00
misc Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
model Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
module Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
movie Replace "unsigned short" with "uint16_t" 2024-05-23 23:03:29 -04:00
music Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
netcon Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
netgames Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
networking Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
physics Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
renderer Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
rtperformance Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
scripts Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
sndlib Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
stream_audio Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
tests 64-bit fixes 2024-05-22 18:14:45 -04:00
third_party Replace "unsigned short" with "uint16_t" 2024-05-23 23:03:29 -04:00
third_party_licenses Include previously missing licenses in builds 2024-05-17 12:17:24 -04:00
tools Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
ui Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
unzip Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
vecmat Replace "unsigned short" with "uint16_t" 2024-05-23 23:03:29 -04:00
win32 Replace "ubyte" with "uint8_t" 2024-05-23 23:07:26 -04:00
.clang-format
.clang-format-ignore
.editorconfig Create EditorConfig file 2024-05-21 11:11:16 -04:00
.gitattributes Create EditorConfig file 2024-05-21 11:11:16 -04:00
.gitignore
Brewfile Remove spdlog dependency, keep the logging module 2024-05-14 14:12:03 +02:00
CMakeLists.txt Reordering dd_sndlib and dd_lnxsound into sndlib 2024-05-22 22:03:43 +03:00
CMakePresets.json Add win64 build preset 2024-05-22 10:21:59 -04:00
LICENSE
README.md Update README.md 2024-05-22 07:57:34 -04:00
vcpkg.json Remove spdlog dependency, keep the logging module 2024-05-14 14:12:03 +02:00

d3 (1)

This is the Descent 3 open source engine, licensed under GPL-3.0. It includes the '1.5' patch written by Kevin Bentley and Jeff Slutter several years ago and brought to a stable condition by the Descent community.

In order to use this, you must provide your own game files. See the Usage section for details.

Version 1.5 Notes

There is no "release" yet. The current milestone is "1.5 Stable", which is meant to more or less be Descent 3 as it might have been if the 1.5 patch had made it to retail years ago. Artifacts can be downloaded from the Actions tab. The milestone needs testing on all platforms. Please report issues when found.

Usage

  1. Make sure that you have a copy of Descent 3. You can purchase a copy of Descent 3 from GOG or Steam.

  2. Install Descent 3.

    • Note for Steam users: If you own Descent 3 on Steam, then its recommended that you install the Windows version of the game even if youre 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 dont 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
      1. Make sure that you have Wine installed.
      2. (Recommended) Run winecfg and make sure that “Emulate a virtual desktop” is enabled.
      3. (Optional) Determine if youre going to be affected by a bug with Descent 3s installer, and potentially apply a workaround:

        1. Download Environment Size Checker.
        2. Run wine environment-size-checker.exe.
        3. If that program tells you that your environment is more than 32,724 bytes large, then youll need to unset or shorten environment variables before running Descent 3s installer. If you dont, then the installer will page fault.
      4. Install Descent 3:

        1. Insert disc 1.
        2. Make sure that disc 1 is mounted.
        3. Determine which drive letter Wine is using for your CD drive. (Hint: try running wine explorer).
        4. Run wine '<drive-letter>:\Setup.exe'.
        5. Follow the installation wizards instructions until it asks you to choose a “Setup Type”.
        6. Select the “Full” Setup Type, then click “Next”.
        7. Continue following the installation wizards instructions until it asks you to insert disc 2.
        8. Switch to disc 2:

          • Run wine eject <drive-letter>:.
          • Make sure that the disc was unmounted and ejected.
          • Insert disc 2.
          • Mount disc 2.
        9. Continue following the installation wizards instructions until it asks you to insert disc 1 again.
        10. Switch back to disc 1. Follow a similar procedure to the one that you used to switch to disc 2.
        11. Finish the going through the installation wizard.
        12. When the installation wizard finishes, it will open an explorer window. Close out of that window.
        13. Unmount the disc.
        14. Eject the disc.
      5. Install Descent 3: Mercenary:

        1. Insert disc 3.
        2. Make sure that disc 3 is mounted.
        3. Run wine start /d <drive-letter>: setup.exe -autorun.
        4. Follow the instructions in the installation wizard.
  3. If your version of Descent 3 is older than v1.4, then update it to v1.4.

  4. Create a new folder named D3-open-source.

  5. Copy the following files from your installation of Descent 3 to D3-open-source:

    • All .hog files
    • The missions folder
    • (Optional) All .pld files
    • (Optional) The demo folder
    • (Optional) The movies folder
  6. Create the following folders in D3-open-source:

    • custom/
    • custom/cache/
  7. Obtain new Descent 3 engine files:

    • If you want to use pre-built binaries, then download one of the artifacts from our latest CI run. You can find a list of CI runs here.
    • If you want to build the engine files yourself, the follow these instructions. Once you build the engine files, theyll be put in builds/<platform>/Descent3/<build-type>/. For example, if youre using Linux and you create a “Release” build, then the files will be located at builds/linux/Descent3/Release.
  8. Copy all of the new engine files into D3-open-source and overwrite any conflicts.

  9. Run the game:

    • On Windows, run D3-open-source\Descent3.exe.
    • On other platforms, run D3-open-source/Descent3.
  10. Special notes:

    • D3 Open Source compiles level scripts in their own hogfiles. Make sure you copy and overwrite d3-{platform}.hog.

Building

Build steps below assume you have already cloned the repository and entered it locally.

Building - Windows

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 win -D ENABLE_LOGGER=[ON|OFF]
cmake --build --preset win --config [Debug|Release]

Building - MacOS

brew bundle install
cmake --preset mac -D ENABLE_LOGGER=[ON|OFF]
cmake --build --preset mac --config [Debug|Release]

Building - Linux (Ubuntu)

sudo apt update
sudo apt install -y --no-install-recommends ninja-build cmake g++ libsdl2-dev libncurses-dev zlib1g-dev
cmake --preset linux -D ENABLE_LOGGER=[ON|OFF]
cmake --build --preset linux --config [Debug|Release]

Building - Linux (Fedora)

sudo dnf update --refresh
sudo dnf install -y ninja-build cmake gcc-c++ SDL2-devel ncurses-devel zlib-devel
cmake --preset linux -D ENABLE_LOGGER=[ON|OFF]
cmake --build --preset linux --config [Debug|Release]

Contributing

Anyone can contribute! We have an active Discord presence at Descent Developer Network. If you are interested in maintaining the project on a regular basis, please contact Kevin Bentley.