OpenSoldat is a unique 2D (side-view) multiplayer action game
MIT License
OpenSoldat is a unique 2D (side-view) multiplayer action game. It has been influenced by the best of games such as Liero, Worms, Quake, Counter-Strike, and provides a fast-paced gaming experience with tons of blood and flesh.
This repository contains the source code of the so-called 1.8 version. Compared to the original version, the code has undergone many changes but is not in a finished state. We hope that by open-sourcing Soldat we can empower our community to improve the game at a faster pace.
OpenSoldat compiles on Windows, Linux and macOS.
This approach automates some build steps. OpenSoldat's assets will be downloaded for you, and you will not have to worry about downloading pre-built libraries. This is the simplest way to build OpenSoldat for Linux.
CMake 3.14+ is required.
sudo apt-get install build-essential g++ cmake git fpc libprotobuf-dev protobuf-compiler libssl-dev libsdl2-dev libopenal-dev libphysfs-dev libfreetype6
mkdir build && cd build
cmake ..
make
vcpkg.exe --triplet x64-windows install sdl2 physfs openssl protobuf freetype openal-soft
set PATH=%PATH%;C:\fpc\3.2.2\bin\i386-win32
set OPENSSL_ROOT_DIR=C:\vcpkg\installed\x64-windows
set PHYSFSDIR=C:\vcpkg\installed\x64-windows
mkdir build
cd build
cmake -G "NMake Makefiles" -DCROSS_WINDOWS_64=1 -DCMAKE_TOOLCHAIN_FILE="C:\vcpkg\scripts\buildsystems\vcpkg.cmake" -DSDL2_BUILDING_LIBRARY=1 ..
nmake
brew install openssl@3 protobuf fpc cmake sdl2 physfs freetype2
mkdir build && cd build
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opt/openssl@3/lib/pkgconfig
cmake -DOPENSSL_ROOT_DIR=$(brew --prefix openssl@3) ..
make
The build can be customized by passing flags to cmake
command. For example, you can choose whether you want to build the client, the server, or both. You can decide if you want to include OpenSoldat's assets in the build. There are also options for cross-compilation.
Check the CMakeLists.txt
files in this repository to see the available options and their default values.
Example: cmake .. -DCMAKE_BUILD_TYPE=Release -DADD_ASSETS=1 -DBUILD_CLIENT=0
to get a release build of the server with OpenSoldat's assets
If you decide to follow the approaches below, you will have to download OpenSoldat's assets and pre-built libraries for the game to work.
client/build
and server/build
soldat.smod
file to client/build
and server/build
play-regular.ttf
file from base repository from the latest release
play-regular.ttf
file to client/build
server/opensoldatserver.lpi
with Lazarus, press CTRL + F9 to compile the serverclient/opensoldat.lpi
with Lazarus, press CTRL + F9 to compile the game clientYou need to start the server first, and then join the game with client.
opensoldatserver
opensoldat -join 127.0.0.1 23073
(more generically -join ip port
)