# Fiefdom

Fiefdom is a self-hosted, browser-played isometric castle-builder inspired by Stronghold Crusader. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/2813/fiefdom

## Description

Fiefdom is a self-hosted, browser-played isometric castle-builder inspired by Stronghold Crusader. Players build a desert settlement, manage food, ale, and weapon production, raise a garrison, and defend against rival lords who build economies under the same rules. It supports two to four players on one map, with allied or free-for-all play and empty seats filled automatically. Players register directly on the server using a name, email, and password, with no database, mail server, external login, or application programming interface (API) keys required.

## Platform availability

Available on 1 of 10 platforms: Unraid.

## Health score

41/100 (Fair), based on 4 of 4 factors.
- Maintained: 78 (last commit 63 days ago)
- Popular: 6 (1 GitHub stars)
- Easy to install: 35 (1 install platform, install notes, Docker image)
- Light to run: 10 (8 GB minimum RAM)

## Links

- Unraid: https://ca.unraid.net/apps/fiefdom-1eabwr40k2mpxg?q=fiefdom
- GitHub: https://github.com/halvar20000/fiefdom

## Common questions

### Which port and host directory should I map when running Fiefdom in Docker?

Map host port 8080 to container port 80 and bind a host folder to /data. The /data volume holds saved games and custom maps so they survive container updates.

### How do I install Fiefdom on Unraid?

Search for Fiefdom in Community Applications, set the web interface port if 8080 is already in use, apply, and open the container's web interface.

### What should I back up?

Back up the /data volume because it stores saved games and custom maps. If the volume is unmapped, saves fall back to browser localStorage and can be lost when the container is recreated.

### Why can a player remain on an old game version after an update?

This can happen if index.html is cached after the container is updated. Keep index.html uncacheable and cache sprite assets aggressively so the browser loads the new fingerprinted scripts.

### Does the server need much CPU because the game runs in the browser?

No; the simulation, pathfinding, AI lord, and rendering happen in the visitor's browser. The server's main job is storage and it sits near zero CPU.

---
Source: Our Local Host (https://ourlocalhost.com/app/2813/fiefdom), the self-hosted and open-source app directory.
