All Projects → sourcehold → Sourcehold

sourcehold / Sourcehold

Licence: mit
Open source re-implementation of Stronghold 1

Programming Languages

cpp
1120 projects

Projects that are alternatives of or similar to Sourcehold

Engine
A basic cross-platform 3D game engine
Stars: ✭ 208 (+36.84%)
Mutual labels:  game, engine, sdl2
Corona
Solar2D Game Engine main repository (ex Corona SDK)
Stars: ✭ 1,679 (+1004.61%)
Mutual labels:  game, engine
Voxelman
Plugin-based client-server voxel game engine written in D language
Stars: ✭ 105 (-30.92%)
Mutual labels:  game, engine
Gamedev Resources
🎮 🎲 A wonderful list of Game Development resources.
Stars: ✭ 2,054 (+1251.32%)
Mutual labels:  game, engine
Geotic
Entity Component System library for javascript
Stars: ✭ 97 (-36.18%)
Mutual labels:  game, engine
Openrct2
An open source re-implementation of RollerCoaster Tycoon 2 🎢
Stars: ✭ 10,115 (+6554.61%)
Mutual labels:  game, sdl2
Mir2x
open source MMORPG game
Stars: ✭ 118 (-22.37%)
Mutual labels:  game, sdl2
Starruler2 Source
4X Space Strategy game Star Ruler 2's open source distribution.
Stars: ✭ 1,267 (+733.55%)
Mutual labels:  game, engine
Openmf Archived
Abandoned C++ version. Contains useful format utils and parsers.
Stars: ✭ 123 (-19.08%)
Mutual labels:  game, engine
Teeworlds
A retro multiplayer shooter
Stars: ✭ 1,712 (+1026.32%)
Mutual labels:  game, sdl2
Openage
Free (as in freedom) open source clone of the Age of Empires II engine 🚀
Stars: ✭ 10,712 (+6947.37%)
Mutual labels:  game, engine
Openra
Open Source real-time strategy game engine for early Westwood games such as Command & Conquer: Red Alert written in C# using SDL and OpenGL. Runs on Windows, Linux, *BSD and Mac OS X.
Stars: ✭ 10,220 (+6623.68%)
Mutual labels:  game, engine
Uebergame
Uebergame code repository
Stars: ✭ 90 (-40.79%)
Mutual labels:  game, engine
Opendiablo2
An open source re-implementation of Diablo 2
Stars: ✭ 10,057 (+6516.45%)
Mutual labels:  game, engine
Kys Pascal
《金庸群侠传》Pascal重制版
Stars: ✭ 86 (-43.42%)
Mutual labels:  game, sdl2
Xray 16
Improved version of the X-Ray Engine, the game engine used in the world-famous S.T.A.L.K.E.R. game series by GSC Game World. Join OpenXRay! ;)
Stars: ✭ 1,806 (+1088.16%)
Mutual labels:  engine, sdl2
Knightonline
OpenKO is an open source version of the old school Knight Online MMORPG
Stars: ✭ 146 (-3.95%)
Mutual labels:  game, sdl2
Novelrt
A cross-platform 2D game engine accompanied by a strong toolset for visual novels.
Stars: ✭ 81 (-46.71%)
Mutual labels:  game, engine
Doom Nano
A 3d raycast engine for Arduino
Stars: ✭ 86 (-43.42%)
Mutual labels:  game, engine
Simplexrpgengine
Modular game engine built with MonoGame, with GMS2-like workflow and advanced level editor
Stars: ✭ 122 (-19.74%)
Mutual labels:  game, engine

Sourcehold

Build Status Discord

Open source engine implementation of Stronghold by Firefly Studios. This project is currently in an early stage of development. Once completed, it should be able to replace all editions of classic Stronghold, including the HD remaster.


Imgur

About

Stronghold is a castle sim created by Firefly Studios in 2001. It was released for Windows and supports MacOS since its HD remaster. The purpose of this project is to make Stronghold playable on platforms it didn't support originally. It is not intended to be a 100% accurate source port, so there will be differences.

Building

Sourcehold uses the following libraries:

  • SDL2
  • OpenAL
  • FFmpeg (avcodec, avutil, avformat, swscale)
  • zlib's blast for PKWARE decompression
  • EnTT as submodule
  • filesystem as submodule
  • cxxopts as submodule

After cloning the repository, make sure to run git submodule init and git submodule update to fetch EnTT, filesystem and cxxopts.

Run cmake in your build directory.

Windows

You will have to build the dependencies from source and the most convenient way is to use vcpkg.
This may take a long time, depending on your machine.
Alternatively you may install everything manually (not recommended).

Quickstart

Installing vcpkg:

git clone https://github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.bat
vcpkg integrate install

Installing the dependencies:

vcpkg --triplet x64-windows install sdl2 ffmpeg openal-soft

Then continue building Sourcehold with CMake:

cmake -H. -B build -DCMAKE_TOOLCHAIN_FILE=%VCPKG_FOLDER%\scripts\buildsystems\vcpkg.cmake
cmake --build build

Mac OS

Simply run build.sh macos from apple directory in the repository root. This script will install Homebrew and all necessary dependencies and build project. To build debug configuration pass -t Debug option to build.sh.

Note: You should install Xcode before trying to build project using build.sh script. Also do not forget to pass -c option to build.sh if you build Mac OS version of the Sourcehold after iOS version.

iOS

Currently you can not build for iOS devices. Only iOS simulator is supported. To build Sourcehold for the iOS simulator run build.sh ios-simulator from apple directory in the repository root. Script will install Homebrew and all necessary tools. Also it will compile and install SDL2 and FFmpeg libraries to thirdparty/ios directory in the repository root. To build debug configuration pass -t Debug option to build.sh.

After building project with build.sh script you may also peform subsequent builds using Xcode. To do that simply open Stronghold.xcodeproj from cmake build directory.

Note: You should install Xcode before trying to build project using build.sh script. Also do not forget to pass -c option to build.sh if you build iOS version of the Sourcehold after Mac OS version.

Running

Make sure you point Sourcehold to where your game data is located, which you can do using --path=/your/path or copy the files to a directory called data in the main folder of Sourcehold. The directory should look like this:

data
├── binks/
├── fx/
├── gfx/
├── gfx8/
├── gm/
├── help/
├── maps/
├── stronghold.mlb
├── sh.tex
├── delete.ani
├── hand.ani
├── jester.ani
└── sword.ani

iOS

You may run iOS version on the simulator using run-on-ios-simulator.sh script. You should pass simulator UUID to this script. Run it without parameters to get list of available simulators and their UUIDs. By default run-on-ios-simulator.sh tries to run release configuration. Pass -t Debug option to alter this behaviour.

You also may just drag'n'drop application bundle (Stronghold.app) to the simulator and run it manually.

Note: Currently data folder is embedded into application bundle resources, thus you should put it in the main folder of Sourcehold before you build the project.

Configuration

This is either done by reading an existing Stronghold config file, found in your documents folder under Stronghold/stronghold.cfg, via command line or both. Options from the command line will overwrite the ones from the config. Available options are listed with the --help argument. You can also add your command line options to a file called settings.ini, in the form option=value.

iOS

On iOS configuration is not currently supported.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].