Descent 3 by Outrage Entertainment
Go to file
Jason Yundt 38e5332b90 Revamp build instructions
Before this change was made, I had tried building Descent 3 on Windows
for the first time. The instructions for building Descent 3 on Windows
were unclear, inaccurate and they messed up my installation of Windows.
(See #332 for details).

I started working on this commit in order to prevent that situation from
happening again. I ended up revamping the entire build instructions
section.

The biggest change that I made was making it so that users only need to
look at the instructions for their own platforms. Before this change,
you had to look at the “Building” heading and read the sentence that was
directly beneath it. If you don’t do what that sentence says, then the
instructions won’t work. Unfortunately, the way that the instructions
were laid out drew the reader’s eye away from that sentence.
Specifically, the instructions would draw the reader’s attention towards
the subheading for their specific platform. This commit makes it so that
each platform-specific subsection contains everything that users of that
platform need to know.

Another change that I made has to do with Git. Previously, the
instructions said “Build steps below assume you have already cloned the
repository and entered it locally.” They never told users how to make
sure that Git is installed or how to create a clone of the repository.
They also didn’t tell Windows users that the clone of Descent3 should
not be entered until after VCPKG_ROOT has been set. In other words, if a
Windows user had followed the instructions exactly as they were written,
then they would have ended up with a clone of vcpkg inside of their
clone of Descent3 (not using submodules!). This commit adds explicit
instructions for installing Git and cloning Descent3. It also makes sure
that Descent3 is only cloned after all dependencies have been installed.

I also made a Visual Studio-related changes in this commit. Previously,
the instructions for Windows said “Requires Visual Studio 2022 and C++
Tools (cmake and vcpkg)”, but the instructions never told users how to
make sure that they had those things. This commit adds explicit
instructions for how to make sure that you have Visual Studio and the
required components installed.

Another change that this commit makes has to do with vcpkg. Before this
commit, the Windows build instructions had you manually set up vcpkg.
This was redundant because the instructions also had you install Visual
Studio 2022 with the “Desktop development with C++” workload. That
workload comes with vcpkg [1], so setting up vcpkg manually was
unnecessary. This commit removes the parts about installing vcpkg.
(Thanks to @Lgt2x for this idea [2].)

The commit also adds sentences to the ends of the platform-specific
build instructions that tell users where the built files get put. This
is technically redundant since the Usage instructions already tell users
where to find the built files. Even though those sentences are
redundant, I still included them because they make the instructions
easier to use.

This commit also makes a minor capitalization-related change.
Previously, the build instructions said “Building - MacOS”. The official
capitalization has been “macOS” since 2016 [3][4].

Another minor change that this commit makes has to do with the Ubuntu
and Fedora build instructions. This commit adds the sentence “Run these
commands:” to each of those sections. I only added that sentence in
order to make the Ubuntu and Fedora sections more consistent with the
Windows and macOS sections. The Windows and macOS sections use that
sentence as part of a numbered list.

[1]: <https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-community?view=vs-2022#desktop-development-with-c>
[2]: <https://github.com/DescentDevelopers/Descent3/pull/413#discussion_r1624974614>
[3]: <https://www.businessinsider.com/wwdc-2016-os-x-becomes-macos-2016-6>
[4]: <https://www.apple.com/macos>
2024-06-18 06:57:36 -04:00
.github Merge pull request #422 from Lgt2x/windows-ninja 2024-06-14 07:32:44 +01:00
2dlib Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
acmlib 64-bit fixes 2024-05-22 18:14:45 -04:00
AudioEncode Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
bitmap Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
cfile Replace "PSPATHNAME_LEN" and "MAX_PATH" with "_MAX_PATH" 2024-06-01 22:19:41 -04:00
cmake
czip Fix rebase breakage 2024-05-24 09:13:36 -04:00
d3music Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
dd_grwin32 Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
dd_video Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
ddebug Merge pull request #396 from GravisZro/cleanup 2024-06-04 07:25:15 +00:00
ddio opengl: use SDL_WINDOW_FULLSCREEN_DESKTOP and an FBO. 2024-06-14 03:56:49 -04:00
Descent3 Merge pull request #435 from winterheart/third-party 2024-06-15 15:44:37 +00:00
editor Run clang-format on editor code 2024-06-15 20:12:48 +02:00
fix
grtext Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
legacy Run clang-format on legacy code 2024-06-15 20:13:59 +02:00
lib opengl: use SDL_WINDOW_FULLSCREEN_DESKTOP and an FBO. 2024-06-14 03:56:49 -04:00
libacm Remove Taoist typedefs 2024-06-01 22:17:44 -04:00
libmve Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
linux Merge pull request #396 from GravisZro/cleanup 2024-06-04 07:25:15 +00:00
lnxmvelib Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
manage Release build fixes 2024-06-07 23:50:38 +02:00
md5 Replace "short" with "int16_t" and fix missing headers 2024-05-23 23:49:31 -04:00
mem Merge pull request #408 from GravisZro/remove/unusedpredefs 2024-06-01 20:51:41 +00:00
misc Release build fixes 2024-06-07 23:50:38 +02:00
model Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
module Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
movie Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
music Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
netcon Merge pull request #434 from MaddTheSane/DedicatedServerPrintf_fp 2024-06-15 14:20:39 +00:00
netgames Editor review fixes 2024-06-10 23:35:11 +02:00
networking fix server crash during client connection 2024-06-10 21:51:51 -04:00
physics Cleanup mono debugging code 2024-06-03 01:40:33 +03:00
renderer opengl: use SDL_WINDOW_FULLSCREEN_DESKTOP and an FBO. 2024-06-14 03:56:49 -04:00
rtperformance Properly format/use variadic macros 2024-05-24 20:57:17 -04:00
scripts Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
sndlib Cleanup mono debugging code 2024-06-03 01:40:33 +03:00
stream_audio Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
tests 64-bit fixes 2024-05-22 18:14:45 -04:00
third_party Fix missing header includes/restore third-party files 2024-05-23 23:14:40 -04:00
tools Replace "unsigned char" with "uint8_t" 2024-05-23 22:58:46 -04:00
ui Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00
unzip Replace "ushort" with "uint16_t" and fix missing includes 2024-05-23 23:16:40 -04:00
vecmat Replace "unsigned short" with "uint16_t" 2024-05-23 23:03:29 -04:00
win32 Add comments explaining warning suppression 2024-06-07 16:24:07 -05: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
CMakeLists.txt Merge pull request #435 from winterheart/third-party 2024-06-15 15:44:37 +00:00
CMakePresets.json Windows CMake preset: use ninja generator 2024-06-07 19:20:07 +02:00
LICENSE
README.md Revamp build instructions 2024-06-18 06:57:36 -04:00
THIRD_PARTY.md Create THIRD_PARTY.md for external code handling 2024-06-12 23:40:27 +03:00
vcpkg.json

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. 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
    
  2. Open a “x86 Native Tools Command Prompt” and run:

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

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