coding:dos:versions

How do I compile the source for Spear of Destiny or Shareware Wolfenstein 3D?

The source code comes prepared to build version 1.4 of the full version of Wolfenstein 3D, but is actually capable of building for multiple different versions of the game, as well as Spear of Destiny!

This tutorial assumes you have a project that builds successfully. If not, click here to set up a project for the DOS source code.

Open your VERSION.H file in the editor of your choice, and you should see the following lines:

//#define SPEAR
//#define JAPAN
#define GOODTIMES
#define ARTSEXTERN
#define DEMOSEXTERN
//#define MYPROFILE
//#define DEBCHECK
#define CARMACIZED
//#define UPLOAD

These lines turn on/off various aspects of the code exclusive to particular versions or games. Having certain combinations of lines commented and uncommented will have the engine build for any specific version.

Some lines may need to be added for some versions.

Game Uncommented Lines
Wolf3D Full v1.4 GT GOODTIMES
ARTSEXTERN
DEMOSEXTERN
CARMACIZED
Wolf3D Shareware v1.4 ARTSEXTERN
DEMOSEXTERN
CARMACIZED
UPLOAD
Wolf3D Spanish Version SPANISH
ARTSEXTERN
DEMOSEXTERN
CARMACIZED
Wolf3D Japanese Version JAPAN
JAPDEMO
UPLOAD
ARTSEXTERN
DEMOSEXTERN
CARMACIZED
Wolf3D Japanese Demo JAPAN
ARTSEXTERN
DEMOSEXTERN
CARMACIZED
Spear of Destiny Full Version SPEAR
ARTSEXTERN
DEMOSEXTERN
CARMACIZED
Spear of Destiny Demo SPEAR
SPEARDEMO
ARTSEXTERN
DEMOSEXTERN
CARMACIZED

By default, the uncommented lines allow the engine to compile for the full version of Wolfenstein 3D.

Depending on the game being compiled, further changes may be necessary. MCS details the changes needed to ensure Spear of Destiny compiles properly.

When the necessary changes are made, compile your source code, and you should now have a working executable for the game!

Note: You will need the game files for whatever game you build, otherwise it won't actually run anything.

  • coding/dos/versions.txt
  • Last modified: 2020/03/27 08:44
  • by zombie