{"id":13531197,"url":"https://github.com/sourcehold/Sourcehold","last_synced_at":"2025-04-01T19:31:49.089Z","repository":{"id":48655136,"uuid":"168694263","full_name":"sourcehold/Sourcehold","owner":"sourcehold","description":"Open source re-implementation of Stronghold 1","archived":false,"fork":false,"pushed_at":"2024-07-08T17:24:53.000Z","size":8005,"stargazers_count":253,"open_issues_count":31,"forks_count":23,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-11-02T18:41:11.734Z","etag":null,"topics":["cpp","engine","engine-reimplementation","game","reimplementation","sdl2","stronghold"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sourcehold.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-01T12:28:33.000Z","updated_at":"2024-09-24T12:28:53.000Z","dependencies_parsed_at":"2024-01-03T03:58:13.018Z","dependency_job_id":"717f5413-c525-46be-906d-2660e9aa3448","html_url":"https://github.com/sourcehold/Sourcehold","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcehold%2FSourcehold","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcehold%2FSourcehold/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcehold%2FSourcehold/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sourcehold%2FSourcehold/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sourcehold","download_url":"https://codeload.github.com/sourcehold/Sourcehold/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700451,"owners_count":20819874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","engine","engine-reimplementation","game","reimplementation","sdl2","stronghold"],"created_at":"2024-08-01T07:01:00.819Z","updated_at":"2025-04-01T19:31:44.073Z","avatar_url":"https://github.com/sourcehold.png","language":"C++","readme":"# Sourcehold\n\n## Notice\nThis project is frozen until we know what the new [Definitive Edition of Stronghold](https://store.steampowered.com/app/2140020/Stronghold_Definitive_Edition/) from Firefly will be able to do!\n\nWe have a Discord server!\n[![Discord](https://img.shields.io/discord/1259903348077756527.svg?color=7389D8\u0026label=%20\u0026logo=discord\u0026logoColor=ffffff)](https://discord.gg/SKJGEGgPTv)\n\nLooking for a Stronghold (Crusader) community? Join the UCP Discord\n[![Discord](https://img.shields.io/discord/426318193603117057.svg?color=7389D8\u0026label=%20\u0026logo=discord\u0026logoColor=ffffff)](https://discord.gg/anzCpnTGxY)\n\n## Project description\n[![Build Status](https://github.com/sourcehold/Sourcehold/actions/workflows/sourcehold.yml/badge.svg?event=push)](https://github.com/sourcehold/Sourcehold/actions/workflows/sourcehold.yml)\n\nOpen 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.\n\n---\n\n![Imgur](https://i.imgur.com/rkk3kAt.png)\n\n## About\nStronghold is a castle sim created by Firefly Studios in 2001. It was released for Windows and supports MacOS since\nits HD remaster.\nThe 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.\n\n## Building\n\nSourcehold uses the following libraries:\n\n* SDL2\n* OpenAL\n* FFmpeg (avcodec, avutil, avformat, swscale)\n* zlib's blast for PKWARE decompression\n* [EnTT](https://github.com/skypjack/entt) as submodule\n* [filesystem](https://github.com/gulrak/filesystem) as submodule\n* [cxxopts](https://github.com/jarro2783/cxxopts) as submodule\n\nAfter cloning the repository, make sure to run `git submodule init` and `git submodule update` to fetch [EnTT](https://github.com/skypjack/entt), [filesystem](https://github.com/gulrak/filesystem) and [cxxopts](https://github.com/jarro2783/cxxopts).\n\nRun `cmake` in your build directory.\n\n### Windows\n\nYou will have to build the dependencies from source and the most convenient way is to use [vcpkg](https://docs.microsoft.com/en-us/cpp/build/vcpkg?view=msvc-160).  \nThis may take a long time, depending on your machine.  \nAlternatively you may install everything manually (not recommended).\n\n#### Quickstart\n\nInstalling vcpkg:\n\n```bash\ngit clone https://github.com/microsoft/vcpkg\ncd vcpkg\n./bootstrap-vcpkg.bat\nvcpkg integrate install\n```\n\nInstalling the dependencies:\n```bash\nvcpkg --triplet x64-windows install sdl2 ffmpeg openal-soft\n```\n\nThen continue building Sourcehold with CMake:\n```bash\ncmake -H. -B build -DCMAKE_TOOLCHAIN_FILE=%VCPKG_FOLDER%\\scripts\\buildsystems\\vcpkg.cmake\ncmake --build build\n```\n\n### Mac OS\nSimply 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`.\n\n**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.\n\n### iOS\nCurrently 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`. \n\nAfter 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.\n\n**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.\n\n## Running\nMake sure you point Sourcehold to where your game data is located, which you can do using `--path=/your/path` or copy\nthe files to a directory called `data` in the main folder of Sourcehold. The directory should look like this:\n\n```\ndata\n├── binks/\n├── fx/\n├── gfx/\n├── gfx8/\n├── gm/\n├── help/\n├── maps/\n├── stronghold.mlb\n├── sh.tex\n├── delete.ani\n├── hand.ani\n├── jester.ani\n└── sword.ani\n```\n\n### iOS\nYou 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.\n\nYou also may just drag'n'drop application bundle (Stronghold.app) to the simulator and run it manually.\n\n**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.\n\n## Configuration\nThis is either done by reading an existing Stronghold config file, found in your documents folder\nunder `Stronghold/stronghold.cfg`, via command line or both. Options from the command line will\noverwrite 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`.\n\n### iOS\nOn iOS configuration is not currently supported.\n","funding_links":[],"categories":["Strategy"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcehold%2FSourcehold","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsourcehold%2FSourcehold","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsourcehold%2FSourcehold/lists"}