Descent 3 by Outrage Entertainment
Go to file
Jason Yundt dd757e9034 Explicitly declare that source files are UTF-8
Before this change, there was a chance that a text editor or compiler
would use the wrong character encoding. For text editors, this commit
adds “charset = utf-8” to .editorconfig. That will cause editors that
support EditorConfig files [1] to automatically use UTF-8 when reading
and writing files. For compilers, this commit adds compiler options that
guarantee that compilers will decode source code files using UTF-8. The
compiler options are known to work on MSVC, GCC and Clang. If we ever
want to support additional compilers, then we might have to edit the if
statement that this commit adds.

This commit does not eliminate the chance that a wrong character
encoding will be used. Someone could always use a text editor that
doesn’t support EditorConfig files or a compiler that doesn’t support
the compiler options that we use. This commit does, however, make an
encoding mismatch much less likely.

[1]: <https://editorconfig.org/#pre-installed>
2024-07-17 10:12:09 -04:00
.github Remove win32 preset, make x64 the default on Windows 2024-06-29 18:21:38 +02:00
2dlib Isolate misc module 2024-06-27 01:26:35 +03:00
AudioEncode
bitmap Merge pull request #475 from winterheart/cfile-std-filesystem 2024-07-06 23:25:12 +00:00
cfile Merge pull request #475 from winterheart/cfile-std-filesystem 2024-07-06 23:25:12 +00:00
cmake
czip Isolate misc module 2024-06-27 01:26:35 +03:00
d3music
dd_grwin32 Only link necessary libraries to DirectX 2024-06-29 18:21:37 +02:00
dd_video Remove unused DirectX-related files 2024-06-29 18:21:38 +02:00
ddebug Isolate misc module 2024-06-27 01:26:35 +03:00
ddio MVE: Make timer code crossplatform 2024-07-09 03:40:49 +03:00
Descent3 Merge pull request #486 from winterheart/fix-cfile-update 2024-07-14 15:18:45 +00:00
editor Remove loki_utils 2024-07-13 03:23:10 -05:00
fix
grtext Isolate misc module 2024-06-27 01:26:35 +03:00
legacy
lib Fix playback case-insensitive intros 2024-07-09 09:47:11 +03:00
libacm
libmve Documenting ISoundDevice classes 2024-07-09 03:42:52 +03:00
linux Remove loki_utils 2024-07-13 03:23:10 -05:00
manage DDIO: Remove unused platform-dependent functions 2024-07-01 12:50:49 +03:00
md5 [CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls. 2024-07-03 19:55:04 +02:00
mem Isolate misc module 2024-06-27 01:26:35 +03:00
misc [CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls. 2024-07-03 19:55:04 +02:00
model Isolate misc module 2024-06-27 01:26:35 +03:00
module Isolate misc module 2024-06-27 01:26:35 +03:00
movie [Movie] Fixed a crash when -no-intro is used on the command line. 2024-07-10 20:48:17 +02:00
music Isolate misc module 2024-06-27 01:26:35 +03:00
netcon Enumerate all DLL functions manually 2024-07-09 02:08:25 +03:00
netgames Enumerate all DLL functions manually 2024-07-09 02:08:25 +03:00
networking Factor CMake platform-specific sources 2024-06-29 18:21:38 +02:00
physics Isolate misc module 2024-06-27 01:26:35 +03:00
renderer Fix loading OpenGL library on Windows 2024-06-29 20:53:13 +02:00
rtperformance
scripts [CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls. 2024-07-03 19:55:04 +02:00
sndlib Set SDL_OpenAudioDevice allowed_changes flag to 0 for Windows compatibility. 2024-06-29 18:28:22 +02:00
stream_audio Isolate misc module 2024-06-27 01:26:35 +03:00
tests [CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls. 2024-07-03 19:55:04 +02:00
third_party [CMake] Enabled the CMake property USE_FOLDERS to provide a more structured project list in IDEs with the help of set(CMAKE_FOLDER "...") calls. 2024-07-03 19:55:04 +02:00
tools
ui Isolate misc module 2024-06-27 01:26:35 +03:00
unzip
vecmat Isolate misc module 2024-06-27 01:26:35 +03:00
win32 SDL2 editor: compile win32 and dd_grwin32 with directX 2024-06-29 18:21:37 +02:00
.clang-format
.clang-format-ignore
.editorconfig Explicitly declare that source files are UTF-8 2024-07-17 10:12:09 -04:00
.gitattributes
.gitignore
Brewfile
CMakeLists.txt Explicitly declare that source files are UTF-8 2024-07-17 10:12:09 -04:00
CMakePresets.json Remove win32 preset, make x64 the default on Windows 2024-06-29 18:21:38 +02:00
LICENSE
README.md Update Windows README instructions for 64bit win preset 2024-06-29 18:28:23 +02:00
THIRD_PARTY.md Add D2X implementation of MVE 2024-07-09 03:40:49 +03:00
vcpkg.json Update VCPKG builtin-baseline and SDL version to 2.30.3 2024-06-29 18:28:23 +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

Building - Windows

  1. Make sure that you have Git and Visual Studio 2022 with the “Desktop development with C++” workload and the “C++ MFC for latest v143 build tools (x86 & x64)” component. If you dont already have those installed or you arent sure, then open an elevated Command Prompt and run:

    winget install Git.Git Microsoft.VisualStudio.2022.Community
    
    "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\setup.exe" modify^
        --passive^
        --channelId VisualStudio.17.Release^
        --productId Microsoft.VisualStudio.Product.Community^
        --add Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended^
        --add Microsoft.VisualStudio.Component.VC.ATLMFC
    
  2. Open a “x64 Native Tools Command Prompt” and run:

    git clone https://github.com/DescentDevelopers/Descent3
    cd Descent3
    cmake --preset win -D ENABLE_LOGGER=[ON|OFF] -D BUILD_EDITOR=[ON|OFF]
    cmake --build --preset win --config [Debug|Release]
    

Once CMake finishes, the built files will be put in builds\win\Descent3\Debug or builds\win\Descent3\Release.

Building - macOS

  1. Make sure that Xcode is installed.

  2. Make sure that Homebrew is installed.

  3. Run these commands:

    git clone https://github.com/DescentDevelopers/Descent3
    cd Descent3
    brew bundle install
    cmake --preset mac -D ENABLE_LOGGER=[ON|OFF]
    cmake --build --preset mac --config [Debug|Release]
    

Once CMake finishes, the built files will be put in builds/mac/Descent3/Debug or builds/mac/Descent3/Release.

Building - Linux (Ubuntu)

Run these commands:

sudo apt update
sudo apt install -y --no-install-recommends git ninja-build cmake g++ libsdl2-dev zlib1g-dev
git clone https://github.com/DescentDevelopers/Descent3
cd Descent3
cmake --preset linux -D ENABLE_LOGGER=[ON|OFF]
cmake --build --preset linux --config [Debug|Release]

Once CMake finishes, the built files will be put in builds/linux/Descent3/Debug or builds/linux/Descent3/Release.

Building - Linux (Fedora)

Run these commands:

sudo dnf update --refresh
sudo dnf install -y git ninja-build cmake gcc-c++ SDL2-devel zlib-devel
git clone https://github.com/DescentDevelopers/Descent3
cd Descent3
cmake --preset linux -D ENABLE_LOGGER=[ON|OFF]
cmake --build --preset linux --config [Debug|Release]

Once CMake finishes, the built files will be put in builds/linux/Descent3/Debug or builds/linux/Descent3/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.