Descent 3 by Outrage Entertainment
Go to file
Jason Yundt df838f0617 Create EditorConfig file
Most files in this repo assume that tabs are 8 characters wide and use 2
spaces for indentation. Most people’s editors aren’t configured to do
that by default. This can lead to indentation mistakes [1].

The main motivation behind this change is to make indentation mistakes
less likely. Many editors [2] will automatically use whatever
indentation settings are in the EditorConfig file.


On an unrelated note, the EditorConfig that this commit adds includes a
tab_width property. This comment in cfile/cfile.h was the inspiration
for specifying the tab_width property:

// Opens a HOG file.  Future calls to cfopen(), etc. will look in this HOG.
// Parameters:  libname - the path & filename of the HOG file
// NOTE:	libname must be valid for the entire execution of the program.  Therefore, it should either
//			be a fully-specified path name, or the current directory must not change.
// Returns: 0 if error, else library handle that can be used to close the library
int cf_OpenLibrary(const char *libname);

When tab_width is set to 8, the first “libname” lines up with the second
“libname”, and the m in “must” lines up with the b in “be”. When
tab_width is set to its default value (4 in this case [3]), the first
“libname” doesn’t line up with anything, and the second “libname” lines
up with the b in “be”. It just looks more correct when tab_width is set
to 8.

[1]: <https://github.com/DescentDevelopers/Descent3/pull/372#issuecomment-2122445826>
[2]: <https://editorconfig.org/#pre-installed>
[3]: <https://spec.editorconfig.org/#supported-pairs>
2024-05-21 11:11:16 -04:00
.github Use CMake to create LICENSE file, not CI 2024-05-17 12:14:01 -04:00
2dlib more software renderer code removal 2024-05-09 12:11:49 +01:00
acmlib
AudioEncode
bitmap Remove commented-out code. 2024-05-10 12:53:06 -06:00
cfile CFILE: Remove throwing exception in cf_ReadBytes() 2024-05-16 23:27:56 +03:00
cmake Introducing git revision in source code 2024-04-28 22:05:26 +03:00
czip Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
d3music Mark functions and variables as static (#185) 2024-05-07 23:35:28 +02:00
dd_grwin32 Remove DDAccess.h header, and associated DD_ACCESS_RING definition 2024-05-13 23:21:05 +02:00
dd_lnxsound Remove DDAccess.h header, and associated DD_ACCESS_RING definition 2024-05-13 23:21:05 +02:00
dd_sndlib Merge pull request #345 from Lgt2x/remove-aureal 2024-05-16 15:34:35 +03:00
dd_vidwin32 Remove DDAccess.h header, and associated DD_ACCESS_RING definition 2024-05-13 23:21:05 +02:00
ddebug Remove Gamegauge and -timetest command-line argument 2024-05-12 18:32:46 +02:00
ddio_common Get executable path for -useexedir 2024-05-20 11:40:14 -04:00
ddio_lnx Get executable path for -useexedir 2024-05-20 11:40:14 -04:00
ddio_win Get executable path for -useexedir 2024-05-20 11:40:14 -04:00
ddvid_lnx more software renderer code removal 2024-05-09 12:11:49 +01:00
Descent3 Merge pull request #371 from JeodC/hwcursorfix 2024-05-20 15:20:19 -04:00
fix Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
grtext Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
legacy Merge pull request #361 from pzychotic/fix-line-endings 2024-05-17 13:44:17 -04:00
lib Get executable path for -useexedir 2024-05-20 11:40:14 -04:00
libacm [Misc] Deleted left over VS project file. 2024-05-17 18:40:32 +02:00
libmve Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
linux Remove DDAccess.h header, and associated DD_ACCESS_RING definition 2024-05-13 23:21:05 +02:00
lnxcontroller Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
lnxmvelib Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
manage Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
md5 move md5 tests to md5/tests/ 2024-05-12 18:07:13 +03:00
mem Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
misc Remove spdlog dependency, keep the logging module 2024-05-14 14:12:03 +02:00
model Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
module Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
movie Remove DDAccess.h header, and associated DD_ACCESS_RING definition 2024-05-13 23:21:05 +02:00
music Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
netcon Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
netgames Merge pull request #297 from Jayman2000/revamp-usage-instructions 2024-05-20 15:18:49 -04:00
networking Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
physics Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
renderer Merge pull request #342 from Lgt2x/remove-ddaccess 2024-05-15 17:42:05 -04:00
rtperformance Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
scripts Merge pull request #349 from Lgt2x/clang-warnings2 2024-05-20 09:43:18 -04:00
sndlib Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
stream_audio Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
tests move md5 tests to md5/tests/ 2024-05-12 18:07:13 +03:00
third_party save screenshots as PNG 2024-05-09 22:46:17 +01:00
third_party_licenses Include previously missing licenses in builds 2024-05-17 12:17:24 -04:00
tools Move gplheader and gpl.sh to tools folder 2024-05-08 14:41:19 -04:00
ui Quiet another asan bug. 2024-05-09 21:15:18 -06:00
unzip Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
vecmat Join license header with historical commentrs 2024-05-08 14:41:19 -04:00
win32 [WinApp] Fixed missing initialization of m_MsgFn array in ctor. 2024-05-19 13:23:15 +02: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 Introducing git revision in source code 2024-04-28 22:05:26 +03:00
Brewfile Remove spdlog dependency, keep the logging module 2024-05-14 14:12:03 +02:00
CMakeLists.txt Automatically create netgames/ directory 2024-05-20 09:02:01 -04:00
CMakePresets.json
LICENSE
README.md Revamp usage instructions 2024-05-20 13:32:10 -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, except for d3-linux.hog
    • The missions folder
    • (Optional) All .pld files
    • (Optional) The demo folder
    • (Optional) The movies folder
  6. Create the following folders in D3-open-source:

    • cache/
    • 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.

  9. Run the game:

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

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.