• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

installer/H30-Jan-2021-130104

jfaudiolib/H03-May-2022-17,81211,604

jfbuild/H03-May-2022-116,54898,580

jfmact/H03-May-2022-5,2213,066

rsrc/H03-May-2022-16,60316,558

src/H03-May-2022-139,641101,662

tools/H30-Jan-2021-12687

xcode/H03-May-2022-1,6031,577

.gitignoreH A D30-Jan-2021324 2925

.gitmodulesH A D30-Jan-2021186 109

.travis.ymlH A D30-Jan-20211.2 KiB6051

MakefileH A D03-May-20227.1 KiB313235

Makefile.depsH A D03-May-202217.5 KiB109100

Makefile.msvcH A D30-Jan-20215.2 KiB239191

Makefile.watcomH A D30-Jan-20214.1 KiB205173

README.mdH A D30-Jan-20214.3 KiB10882

build-setup.batH A D30-Jan-202125 21

makemsc.batH A D30-Jan-202148 21

makew.batH A D30-Jan-202141 21

setup.batH A D30-Jan-202122 21

README.md

1JonoF's Shadow Warrior Port
2===========================
3by Jonathon Fowler, with contributions by Ken Silverman and others
4
5 * First Release: 2 April 2005
6 * Email: jf@jonof.id.au
7 * Website: http://www.jonof.id.au/jfsw
8 * Source code: https://github.com/jonof/jfsw
9
10This is the source code for my port of [3D Realms' Shadow
11Warrior](http://legacy.3drealms.com/sw/index.html) using [my port of
12Ken Silverman's Build game engine](https://github.com/jonof/jfbuild).
13
14Minimum system requirements
15---------------------------
16
17* 32 or 64-bit CPU. These have been tried first-hand:
18  * Intel x86, x86_64
19  * PowerPC 32-bit (big-endian)
20  * ARM 32-bit hard-float, 64-bit
21* A modern operating system:
22  * Linux, BSD, possibly other systems supported by [SDL 2.0](http://libsdl.org/).
23  * macOS 10.9+
24  * Windows Vista, 7, 8/10+
25* Optional: 3D acceleration with OpenGL 2.0 or OpenGL ES 2.0 capable hardware.
26
27You will require game data from an original release of Shadow Warrior. Refer to [the
28documentation on my website](https://www.jonof.id.au/jfsw/readme.html) on what
29releases are suitable and where to locate their game files.
30
31Compilation
32-----------
33
34Before you begin, clone this repository or unpack the source archive. If you cloned using
35Git, be sure to initialise the submodules of this repository (i.e. `git submodule update --init`).
36
37Now, based on your chosen OS and compiler:
38
39### Linux and BSD
40
411. Install the compiler toolchain and SDL2 development packages, e.g.
42   * Debian 9: `sudo apt-get install build-essential libsdl2-dev`
43   * FreeBSD 11: `sudo pkg install gmake sdl2 pkgconf`
442. Install optional sound support development packages.
45   * Debian 9: `sudo apt-get install libvorbis-dev libfluidsynth-dev`
46   * FreeBSD 11: `sudo pkg install libvorbis fluidsynth`
473. Install GTK+ 3 development packages if you want launch windows and editor file choosers, e.g.
48   * Debian 9: `sudo apt-get install libgtk-3-dev`
49   * FreeBSD 11: `sudo pkg install gtk3`
504. Open a terminal, change into the source code directory, and compile the game with: `make` or `gmake` (BSD)
515. Assuming that was successful, run the game with: `./sw`
52
53### macOS
54
551. [Install Xcode from the Mac App Store](https://itunes.apple.com/au/app/xcode/id497799835?mt=12).
562. Fetch and install the SDL 2.0 development package:
57   1. Fetch _SDL2-2.0.x.dmg_ from http://libsdl.org/download-2.0.php.
58   2. Copy _SDL2.framework_ found in the DMG file to `~/Library/Frameworks`. Create the
59      _Frameworks_ directory if it doesn't exist on your system.
603. Open _sw.xcodeproj_ from within the JFShadowWarrior source code's _xcode_ folder.
614. From the Product menu choose Run.
62
63### Windows using Microsoft Visual C++ 2015 (or newer) and NMAKE
64
651. If needed, [install Visual Studio Community 2017 for free from
66   Microsoft](https://docs.microsoft.com/en-us/visualstudio/install/install-visual-studio).
67   Terms and conditions apply. Install at minimum these components:
68   * VC++ 2015.3 v140 toolset for desktop (x86,x64)
69   * Windows Universal CRT SDK
70   * Windows 8.1 SDK
712. Open the command-line build prompt. e.g. _VS2015 x64 Native Tools Command Prompt_
72   or _VS2015 x86 Native Tools Command Prompt_.
733. Change into the JFShadowWarrior source code folder, then compile the game with: `nmake /f Makefile.msvc`
745. Assuming success, run the game with: `sw`
75
76Compilation options
77-------------------
78
79Some engine features may be enabled or disabled at compile time. These can be passed
80to the MAKE tool, or written to a Makefile.user (Makefile.msvcuser for MSVC) file in
81the source directory.
82
83These options are available:
84
85 * `RELEASE=1` – build with optimisations for release.
86 * `RELEASE=0` – build for debugging.
87 * `USE_POLYMOST=1` – enable the true 3D renderer.
88 * `USE_POLYMOST=0` – disable the true 3D renderer.
89 * `USE_OPENGL=1` – enable use of OpenGL 2.0 acceleration.
90 * `USE_OPENGL=USE_GL2` – enable use of OpenGL 2.0 acceleration. (GCC/clang syntax.)
91 * `USE_OPENGL=USE_GLES2` – enable use of OpenGL ES 2.0 acceleration. (GCC/clang syntax.)
92 * `USE_OPENGL=0` – disable use of OpenGL acceleration.
93 * `WITHOUT_GTK=1` – disable use of GTK+ to provide launch windows and load/save file choosers.
94
95Warnings
96--------
97
981. You should exercise caution if you choose to use multiplayer features over
99   untrustworthy networks with untrustworthy players.
1002. 3D Realms and Apogee do not support this port. Contact me instead.
101
102
103Enjoy!
104
105Jonathon Fowler
106
107
108