An open-source 3D medieval-fantasy MMORPG built with Godot 4. A playable game with its own identity, and a reference architecture for authoritative-server action combat that you can study, fork or build on.
Three realms fight over the forts and castles of a central war zone. You pick a realm, level up inside its walls, and march out through its gate to take fortresses from the other two. Combat is third-person action in the style of New World: over-the-shoulder camera, crosshair aiming, no target lock, blocking and dodging. The server decides everything that matters; the client predicts what it can.
Status: pre-alpha, a playable vertical slice. One real zone (the Vado Gris frontier, with a capturable fort), accounts and character saves through a separate platform service, and the full network and combat stack underneath. It is a prototype, not a finished game: most of the world, the third realm's content and the siege layer are still ahead (see Roadmap).
Language: the code, comments, documentation and test messages are in English. The in-game interface text (including chat commands) and the runtime log messages of the game are still in Spanish; an English localization is planned.
Everything below is in main. The gameplay and network parts are covered by the automated test suite; the presentation layer (art, animation, audio, interface) is checked with a capture bench rather than by assertions, and it is still provisional in places (see "Not there yet").
- Dedicated server per zone. The same Godot project runs as a headless server (
--headless -- --server). Each zone is its own map and its own process; there is no continuous world. - Authoritative networking. Fixed 60 Hz ticks, binary protocol over ENet (optionally DTLS), snapshots at 30 Hz, client-side prediction with reconciliation for the local player, interpolation for everyone else, and lag compensation: the server keeps a short position history and rewinds hitboxes to what the attacker saw (up to 24 ticks, 400 ms). Rate limiting, input-window checks and a per-IP connection cap protect the server from malformed or abusive clients.
- Action combat. Sword and shield (light-attack combo, charged heavy attack, block with a parry window, dodge with invulnerability frames), bow (quick and drawn shots, projectiles simulated deterministically), three shield abilities and three bow abilities, two potions, weapon swap, stamina, knockdown (the "downed" state, revive and finisher). Fully data-driven from
data/combat/*.tres. - NPCs and a boss. A hierarchical-state-machine AI with navmesh pathing and attack tokens: the undead of the Hollow, realm guards, gate guardians and the Ford Captain.
- Capturable fort. The Vado Gris fort has a destructible gate, a capture circle, a garrison that changes hands, respawn waves inside owned forts, war alerts, a minimap and a capture HUD. Its keep is an original model (a four-sided roof, a wooden gallery, three levels of detail and a cloth banner in the owner's color).
- Presentation (visual quality waves 2 to 5). Client-side work, almost all of it in
scripts/client/and the assets:- Interface. A global theme with three open fonts (Cinzel for titles and war notices, Noto Sans for text and numbers, IM Fell English SC for map place names), an original icon set for the action bar, potions, status effects and weapon items, and a compact bottom HUD (action bar, health and stamina). Nameplates stack without overlapping and carry a mark per realm; war notices are queued one at a time on a banner with the realm emblem; the boss bar appears only while you fight the boss; the kill log shows the weapon between the two names; floating damage numbers, a hit marker and a damage vignette scaled to the damage taken. The ground marks that telegraph NPC attacks are amber, a color reserved for danger from NPCs, so they are not confused with red damage.
- Maps and navigation. A parchment-style map of the zone, baked reproducibly from the scene (
tools/map/), shown in a round minimap and in the M window (mouse-wheel zoom, drag to pan, double click to see the whole zone, place names that avoid overlapping). A compass bar with bearing and markers, and an objective marker and line that point to the fort or capture circle you should go to. - Animation. A combat stance (shield guard at rest and the arms held in front while moving), attacks that plant the feet, a shield-up block, a visible flinch on every hit and a push on blocked hits, deaths that keep some momentum, and a visual profile per NPC type (the Hollow without a shield, ash-gray with glowing eyes and a shambling walk; the Ford Captain larger and iron-red).
- Hit feel. Impact effects at the contact point, distinct looks for a block and a parry, a weapon trail, a charge aura, effects for the three shield abilities, and a hitstop of 50 ms (light) or 80 ms (heavy) that only freezes the animation, never the simulation. For your own hits the spark, the impact sound and the hitstop are predicted locally as cosmetics and are not repeated when the server confirms a normal hit; damage numbers are never predicted.
- Audio. Combat sounds by material (flesh, gambeson, leather, mail, shield) with several variants each, swings synchronized with the animation, and footsteps chosen by the surface under the feet (grass, dirt, stone, wood), for your character and for the others.
- Scenery. An original storm-sky shader, volumetric fog and screen-space lighting, eight Poly Haven ground textures with normal and height, wind-animated grass colored from the terrain, the new keep, and a first pass at telling the two halves of the zone apart (snow patches and dark forest floor in the Vardheim half, living green grass in the Solmarch half).
- Social. Realm-only chat (say, zone, whisper, party and system channels), parties, ignore and report, server-side filtering by realm, moderation sanctions.
- Progression. Races and character appearance, inventory with an authoritative ledger, currencies, levels and experience, starter templates (Squire with sword and shield, Marksman with bow).
- Platform service in Go (
platform/, Go 1.26 on PostgreSQL 16): accounts with email verification and password reset, characters, hand-off tickets that let a zone admit a character, periodic persistence with integrity checks, an admin CLI, privacy tooling (data export and retention purges), and Docker-based deployment with backups. Optional: you can run the whole game without it. - Bots and load testing. Full headless bot clients and a lightweight swarm that can load a zone with dozens of connections, a battery of cheating bots that checks the server cannot be fooled, and tools that compare the predicted and authoritative state bit by bit.
- Tests and CI. 3,027 test methods in 223 files for the Godot project, plus about 300 Go tests for the platform, including multi-process network tests, run on every pull request and every push to
mainthrough GitHub Actions (see docs/getting-started.md).
Not there yet, to be honest about it: the other two war-zone regions, siege weapons, the capital cities and PvE zones, Askarra gameplay content (the realm exists in the catalog and the realm-select screen, but the Vado Gris only admits Vardheim and Solmarch), classes beyond the two starter templates, guilds, and a finished art pass. The visual quality waves lifted the Vado Gris well above a prototype, but the known gaps are written down in docs/quality.md: characters, outfits and animations are still stand-in kits shared by every realm, the tents are plain prisms, the wind-up of the heavy attack still lifts a foot, the map legend is half empty and the grass near the player is not yet a continuous meadow. Sound effects are synthesized and provisional. Interest management is a stub that sends every entity to every client; a grid-based policy is designed but not built.
The swords are original models, one base design and one variant per realm:
Eldmark is set in The Broken Crown. The three peoples were once a single kingdom, Eld, ruled from the citadel of Aldcor, where the Flame of Eld burned. When the last king died without an heir the three lineages fought for the throne, the Flame burst, and the land cracked. The embers of the Flame still burn in the ruins and empower whoever holds them.
| Realm | Inspiration | Colors and emblem | Capital |
|---|---|---|---|
| Vardheim (north) | Norse and Anglo-Saxon clans: fjords, pine forest, tundra | Steel gray and ice blue; white wolf | Isenholm |
| Solmarch (southwest) | Gothic theocracy: fertile valleys, vineyards, slow rivers | White and gold; split radiant sun | Valcorin |
| Askarra (southeast) | Forgelords and merchants: red canyons, mesas, volcanic fields | Crimson and bronze; anvil over a burning crack | Kassar |
Each realm is enclosed by a wall with gates facing Eldrun, the central war zone, where the ruined citadel of Aldcor stands and where forts (small, quick objectives) and castles (large, with walls, gates and several lines of defense) can be captured and held. Realm-vs-realm combat happens there; inside a realm's own safe areas, enemies cannot hurt you. There is no diplomacy and no cross-realm chat: you see the enemy's body and banner, never their voice.
The first playable zone is the Vado Gris ("Gray Ford"), a compressed frontier of about 300 by 300 m between Vardheim's Frost Wall (north) and Solmarch's Dawn Wall (south), with a horseshoe river, a stone bridge and a wide ford, ruins on the flanks and a palisade fort on the central hill. Full lore and geography are in docs/world.md and the zone notes in docs/zones/vado_gris.md.
You need:
- Godot 4.7 (standard build, GDScript; 4.7.2 is what CI uses)
- Git: models, textures, audio and terrain data are normal files in the repository (no Git LFS)
git clone https://github.com/Luisbh-dev/Eldmark
cd EldmarkOpen project.godot in Godot and press F5. This starts the offline sandbox in the Vado Gris: you appear in the Vardheim camp in front of the wall, with the fort across the river. There is no server in this mode, so no enemies and no other players; it is good for looking around and trying movement and camera.
Run the following from the project root. godot stands for the Godot 4.7 console executable (see getting started if it is not on your PATH).
godot --headless --path . --import # once after cloning
# Everything in one command: starts a local server if none is running, then connects
godot --path . -- --local --realm=vardheim --name=AnaOr run the pieces yourself, which is what you do for development and load tests:
# Terminal 1: a dedicated server for the Vado Gris, headless, with 8 fake players
godot --headless --path . -- --server --zone=vado_gris --port=24600 --fake-players=8
# Terminal 2: a player client
godot --path . -- --connect=127.0.0.1 --realm=solmarch --name=Ana
# Terminal 3: a headless bot that plays for 25 seconds and writes a JSON report
godot --headless --path . -- --bot --connect=127.0.0.1:24600 --bot-seed=3 \
--quit-after-ticks=1500 --report=build/bot_3.json
# A swarm of 32 lightweight bots
godot --headless --path . -- --bots=32 --connect=127.0.0.1:24600 --bot-seed=1000 \
--quit-after-ticks=3600 --report=build/swarm.jsonWithout a platform service, every client enters with a throwaway character that is lost on exit. To play with accounts and saved characters, run the Go platform service (platform/deploy/dev.sh) and start the client with --title. All options, debug panels, settings and the platform setup are in docs/getting-started.md.
godot --headless --path . --import # import assets once
godot --headless --path . -s res://tests/run_tests.gd # whole suite, exit code 0 if all pass
godot --headless --path . -s res://tests/run_tests.gd -- --filter=replayThe full suite takes a while (CI splits it into four parallel shards with --shard=K/4).
Keys are bound to physical key positions, so WASD works on any keyboard layout. Defaults are registered at runtime by scripts/client/input_bindings.gd.
| Action | Default |
|---|---|
| Move | W A S D |
| Look | Mouse |
| Jump / Sprint | Space / Shift (hold) |
| Light attack (combo); hold for a charged heavy attack | Left mouse button |
| Block (a quick press just before a hit parries it) | Right mouse button |
| Dodge (in the direction you are moving) | Ctrl |
| Abilities of the equipped weapon | 1, 2, 3 |
| Swap weapon | Q |
| Health potion / stamina potion | R / T |
| Interact (hold to revive a downed ally or finish a downed enemy) | E |
| Swap camera shoulder / zoom | V / mouse wheel |
| Free the cursor while held (also shows the names of map markers) / release the cursor until you click | Alt / Esc |
| Chat / party invite accept, decline | Enter / Y, N |
| Map window / scoreboard | M / Tab |
Zoom the minimap (the two keys right of 0: = and - on a US layout) |
= / - |
| Inventory / character window / social menu | I / C / G |
| Settings / controls help bar | F10 / F1 |
| Debug panels / network ghost (client) | F3 / F4 |
In the map window, the mouse wheel zooms, dragging with the left or middle button pans and a double click shows the whole zone again. Chat commands (/r, /ignorar, /reportar, ...) are in Spanish for now. The --demo flag plays a scripted route and combat for recording captures; see getting started.
assets/ Models, animations, textures, materials, audio, fonts, UI theme and icons, maps, emblems (binaries as normal files)
addons/ Third-party plugins (Terrain3D, ProtonScatter)
data/ Game data as .tres resources: combat catalog, NPCs, items, fortresses, races, level curve
docs/ Design and technical documentation (see the index below)
platform/ Accounts, characters and persistence service in Go (not scanned or exported by Godot)
scenes/ Godot scenes: boot, characters, client roots, UI, world and zones, VFX
scripts/
shared/ Simulation and protocol, loaded by both client and server
server/ Authoritative server logic, AI, persistence glue
client/ Camera, input, UI, audio, animation, bots
world/ Nodes used by zone scenes
tests/ Automated tests: run_tests.gd, test_*.gd and the network harness
tools/ Generators, quality bench, load tests, balance and state-log tools, export scripts
web/ The project website: static HTML, CSS and JavaScript, no build step (see web/README.md)
One Godot project holds client and server. scripts/shared/ never depends on scripts/client/ or scripts/server/, and server and client never depend on each other; tests/test_architecture.gd enforces it. More in docs/architecture.md.
If you want to build your own networked action game in Godot, the parts of Eldmark that are hardest to get right are written down and tested:
- A deterministic shared simulation (
scripts/shared/) that the server and the predicting client run bit for bit on the same binary and OS. It never reads a clock orInput; movement goes through Godot physics (CharacterBody3D.move_and_slide), so each simulated world needs its own physics space. Reconciliation compares encoded state exactly, and a test fails on any unexplained divergence. See docs/networking.md. - Prediction, interpolation and lag compensation built on ENet with explicit ticks instead of Godot's high-level multiplayer: tick synchronization, input windows, snapshot priority under a byte budget, rewound hit checks with cheat-resistant limits.
- An action-combat state machine driven by
.tresdata, shared by client and server, with abilities, status effects, projectiles and a deterministic balance tool. See the combat section of the architecture overview and docs/abilities.md. - A test harness that runs a server and several clients in a single process, or as real processes, with a network simulator (latency, jitter, loss, duplication) and cheating bots.
- A server/platform split with a small Go service for accounts and persistence, signed hand-off tickets, and the design notes for privacy and operations. See docs/platform.md.
- Measured limits: load-test tooling and recorded results for how many combatants one zone process sustains (40 per battle at the moment).
The design documents are long and written as decision records, including what was tried, what failed and what is still provisional. They are the best place to understand why things are the way they are.
| Document | Contents |
|---|---|
| docs/getting-started.md | Running the game, server, bots, platform, tests, CI and export |
| docs/architecture.md | Architecture overview for contributors and people building on Eldmark |
| docs/vision.md | Game vision, realms, war zone, combat pillars, roadmap |
| docs/world.md | Lore, geography and world structure |
| docs/networking.md | Protocol, ticks, prediction, interpolation, lag compensation, security, budgets |
| docs/abilities.md | Abilities, status effects, weapons and projectiles |
| docs/fortress.md | The capturable fort: state, gate, NPC garrison, alerts, siege bots |
| docs/progression.md | Items, inventory, currencies, levels, races and appearance |
| docs/advancement.md | Level curve 1-60, experience sources, attributes, mastery, talent trees, specializations and ultimates, normalization |
| docs/items.md | Item levels, equipment slots, rarity and affixes, loot, crafting, upgrades and the gold economy |
| docs/weapons.md | Weapon catalog, five abilities per weapon, mana, ground areas and combat v6 |
| docs/npcs.md | NPC ranks, bestiary, AI, camps, bosses and service NPCs |
| docs/quests.md | Quest model, objectives, rewards, boards, world events and the quest tools |
| docs/story.md | Story bible: the Sundering, the three realms, the six acts and the first chain in Hondal |
| docs/social.md | Chat, parties, moderation and what crosses between realms |
| docs/platform.md | Accounts, tickets, persistence, privacy, deployment |
| docs/art.md | Art direction and asset plan |
| docs/combat.md | Combat design: states, timings, hit feedback, animation and sound |
| docs/zones/ | Zone notes; docs/zones/vado_gris.md covers the Vado Gris: terrain, sky, fort |
| docs/quality.md | Visual quality plan: what each wave delivered and what is still open |
| docs/localization.md | English and Spanish localization: format, runtime, tooling and the increments |
| docs/backlog.md | The master task list: what is done and what is next |
| docs/history/ | Archived reports from past work sessions |
Contributions are welcome, from bug reports to new content. Read CONTRIBUTING.md first. The short version:
- Open an issue before starting anything large, so we can agree on the approach.
- Follow the official GDScript style guide:
snake_casefiles and variables,PascalCaseclass_name, tabs, static typing everywhere. Identifiers, comments and documentation are in English. - Keep the dependency rules between
scripts/shared,scripts/serverandscripts/client. - Add tests with your change and make sure the suite passes headless. Scenes and resources must stay in text format (
.tscn,.tres). - Any third-party asset must be redistributable and recorded with its author, version, URL and license.
The long-term plan, from docs/vision.md. The first four steps are in place; the master task list is docs/backlog.md.
- Character and camera: WASD movement and an over-the-shoulder action camera. Done.
- Networking: dedicated server, several players, prediction and interpolation, realm selection. Done.
- Action combat: attacks, block, dodge, stamina, lag compensation, death and respawn. Done.
- First capturable fort on a small frontier map. Done (Vado Gris).
- Accounts, characters and database persistence. Implemented (platform service and title screen); no public deployment yet.
- First realm: capital city, a PvE zone, wall and gate. Planned.
- Full war zone: several forts and castles, siege weapons, rewards.
- All three realms and scaling across several servers.
In parallel: finishing the visual quality pass (waves 2 to 5 delivered the animation, map, HUD, hit feel, audio and scenery work described above; what remains is in docs/quality.md), an English localization of the interface, and exports for closed tests (export presets for a Windows client and a Linux server already exist).
- Code (GDScript, Go, Python, shaders and tooling): MIT.
- Original assets made by this project (the sword models and the fort keep, interface icons and emblems, sound effects, visual effects, materials, zone maps and screenshots): CC BY 4.0. The file lists exactly which folders it covers and which it excludes.
- Third-party material keeps its own license and is not relicensed: the addons in
addons/(MIT), the fonts inassets/fonts/(SIL OFL 1.1) and the CC0 asset packs listed below. Details and per-folder scope are in LICENSE-ASSETS.md and the per-pack records in assets/LICENSES.md.
Eldmark stands on the work of others. These are included in the repository today:
- Terrain3D 1.0.2, by Cory Petkovsek, Roope Palmroos and contributors. MIT.
- ProtonScatter 4.2.0, by HungryProton. MIT.
- Quaternius: Universal Animation Library 1 and 2, Universal Base Characters, Modular Character Outfits (Fantasy), Medieval Village MegaKit and Stylized Nature MegaKit (the free Standard editions). CC0 1.0.
- Castle Wall Kit by loafbrr. CC0 1.0.
- Castle Kit by Kenney. CC0 1.0.
- Hand-Painted Watercolor Terrain Texture Pack by Jonas Voland (Voxel Core Lab). CC0 1.0.
- Poly Haven terrain textures (
grass_ground,dirt_floor,ground_grey,rock_boulder_dry,rocky_trail,damp_beach_sand,snow_02,forest_ground_06), by Dimitrios Savva, eye-candy.xyz, Charlotte Baglioni, Rob Tuytel, Rico Cilliers and Amal Kumar, modified (rescaled, desaturated). CC0 1.0. - Impact Sounds by Kenney: only the grass and wood footsteps. CC0 1.0.
- Fonts, all SIL Open Font License 1.1: Cinzel (The Cinzel Project Authors), Noto Sans (The Noto Project Authors) and IM Fell English SC (Igino Marini), from Google Fonts.
- The Terrain3D binaries are built with godot-cpp (MIT, Godot Engine contributors), and the game runs on the Godot Engine (MIT).
Credit is not required for the CC0 material, but it is deserved. The OFL fonts do require that their license text stays with the font files (assets/fonts/OFL-*.txt), also in exported games. The full table, with licenses and the folders each one covers, is in LICENSE-ASSETS.md.
Eldmark is an independent project and is not affiliated with Amazon Games or New World; the combat style is cited only as a reference.







