Castle Doctrine - Jason Rohrer's tenth game. A massively-multiplayer game of burglary and home defense. Available now.
- Buy direct: http://thecastledoctrine.net/
- Buy on Steam - https://store.steampowered.com/app/249570/The_Castle_Doctrine/
A fork of the original code by Rohrer, trying to apply code updates so:
- Server php is compatible with PHP 7+
- Win32 executables can be compiled on Linux systems.
- Updated compilation of OSX binaries possible
- Make a new directory (e.g.
mkdir cdoctrine
) - Clone the repo using gh or git (e.g
git clone https://github.com/paegan69/CastleDoctrine cdoctrine/
) or download the repo and extract to the created dir. - Install the g++ compiler (
sudo apt install build-essential
) - Install the MinGW compiler (
sudo apt-get install gcc-mingw-w64
) n.b. this may only be needed to compile Windows binaries. - Install the SDL libraries (
sudo apt-get install libsdl1.2-dev
) - Install ImageMagik (
sudo apt install imagemagick
) cd cdoctrine
sudo chmod -R 777 ./minorGems
chmod 777 runToBuild
- Execute runToBuild
- $$ Profit? $$
- Download the MinGW Installer here.
- Run the installer and select mingw-developer-tool, mingw32-base, mingw32-gcc-g++, and msys-base.
- Go to https://www.libsdl.org/release/, download SDL-devel-1.2.15-mingw32.tar.gz and extract to a temp folder.
- From your temp(~temp) folder, copy to your MINGW installation (~mingw):
- a. ~temp\SDL-1.2.15\include\SDL\ to ~mingw\include\SDL\
- b. ~temp\SDL-1.2.15\lib\ to ~mingw\lib\
- c. ~temp\SDL-1.2.15\bin\sdl-config to ~mingw\bin\sdl-config
- d. ~temp\SDL-1.2.15\bin\SDL.dll to Windows\System32 and Windows\SysWOW64
- Download a copy of the repo and extract it to a working folder(~cdoctrine)
- Run ~mingw\msys\1.0\msys.bat
- In the new console window change your working directory to the newly created working folder (cd ~cdoctrine)
- Execute runToBuild
- $$ Profit? $$
No freaking clue when.
Make sure you have the dev package of the following library installed:
The included "runToBuild" script should build the game for you automatically.
Currently does not create a Windows executable in a Linux build environment. Unable to path windows.h
.