/BerserkerQuake2

Berserker@Quake2 game engine, ported to SDL2 library.

Primary LanguageCGNU General Public License v2.0GPL-2.0

Berserker@Quake2 Engine

Original project hosted at: Quake Gate, ModDB

This is a port of Berserker@Quake2 engine (1.45) to SDL2 library. It is currently known to compile and run on Linux and Windows.

Building on Linux

The makefile is provided in the root of this source tree, which should, provided you have all needed libraries setup, produce "berserkerq2" executable file and game logic library "game.so". These libraries are:

libjpeg (v8)
libpng
libogg
libvorbis
libvorbisfile
SDL2 (v2.0.4 or newer recommended)
zlib
libminizip

Code::Blocks project files are also provided.

Building on Windows

Visual Studio 2015 solution is provided, along with header files and .libs for linking with required libraries. Libraries are provided along with precompiled engine binaries in the Releases section.

Running the game

To make use of this engine, you will need original Quake II data. If you have Steam version, you can find needed files in its install directory, in baseq2 folder. These are:

DIR players
DIR video
FILE pak0.pak
FILE pak1.pak
FILE pak2.pak

If you have original Quake II CD, the data can be found in Install/Data/baseq2. In addition to the data on the CD, you will need the data from the official Quake II 3.20 patch, which you can get from http://deponie.yamagi.org/quake2/idstuff/q2-3.20-x86-full-ctf.exe The content can be extracted using any utility for working with ZIP files.

Make a distintctive folder where you want to run Berserker from. The folder must be writable, so somewhere under home folder should do for Linux users. Inside it, create baseq2 folder in which you put the above mentioned files.

Then you will have to get some extra data that comes with this engine. You can get it from my Google Drive. Extract the zip in your Berserker directory. The content itself is identical to those hosted at official website and ModDB, except all file names were converted to lower case and references to them, as well as paths have been fixed to use slashes instead of backslashes so hopefully there isn't any problem with file access on Linux systems.

Now, you just need to put compiled executable files in their places:
(assuming Quake2 is the folder where you put the data)

berserkerq2 or berserkerq2.exe -> Quake2
game.so or game.dll -> Quake2/baseq2

Finally, you can run the game. Make sure it's executed from its own directory so it can find the data.

One final tip, if you're on Windows and have NVIDIA graphics card, you should disable threaded optimizations for the game, they seem to dramatically decrease the performance.