Dev Log #8 FateMMO Game Engine v2
Hey everyone,
Dropping Dev Log #8 with a fresh wave of changes since the YouTube showcase. This one covers a new video focused on the server, the fifth faction, the full active pet system, critical engine fixes, the new admin observer mode, and the engineering work that keeps all of it stable under load.
🎬 Watch the new video: Running the FateMMO Server
The first showcase covered the engine and editor. This one goes deeper into how the server actually runs live: 172,000+ lines of hand-written C++23, a headless 20 Hz authoritative server with Noise_NK encryption, PostgreSQL persistence, and no middleware anywhere in the stack. If you want to see exactly what powers FateMMO behind the scenes, this is it.
⚔️ GitHub: wFate/FateMMO_GameEngine (star the repo if you want to follow along)
The 5th Faction: Umbra
The world has a fifth faction now, and it is not one you can pick. Umbra is the negative space in the tapestry of fate. What remains when threads are severed. Not evil, just absence. Every name they carry is incomplete. Every word trails off.
Umbra lives in The Scorched Hollow, the mid-game recall hub between Crystal Caverns, Scorched Wastes, and Blighted Swamp. Players need this village, but Umbra guards attack everyone on sight and PvP is enabled. You visit at your own risk.
• Guards: Whisper (Mage Sentry, Lv35), Phantom (Archer Elite, Lv40), Erasure (Warrior Boss, Lv45)
• 7 fragment-named NPCs: Vess (Innkeeper), Faded (Shopkeeper), Ash (Banker), "The" (Quest Giver), One (Blacksmith), Mora (Alchemist), Absent (Lore NPC)
• "The" has a 4-quest chain across Crystal Caverns, Scorched Wastes, and Blighted Swamp. He is trying to remember his own name.
Active Pet System
Pets are fully shipped. You can loot pets in dungeons or buy them with Opals that you can acquire while farming. Equip one pet at a time. Your active pet shares 50% of the XP you earn from mob kills and auto loots items dropped for you.
• 5 pets available: Turtle and Wolf (Common), Hawk (Uncommon), Panther and Phoenix (Rare)
• Pet eggs are consumable wrappers sold in the new Opals Shop (3,000 to 8,500 opals each)
• Client-side pet sprite follows you with a 4-state machine (Following, Idle, Moving To Loot, Picking Up) and trails 48px behind
• Auto-loot: when enabled, the pet walks to dropped items in range and picks them up for you (server validates ownership and party rules)
• DB-level unique partial index enforces one equipped pet per character, so nothing desyncs on reconnect
Opals Shop
• 10+ SKUs priced as grind goals, not power: 4 bag sizes (1,000 to 5,000 opals), Fate's Grace revive consumable (5,000), and all 5 pet eggs
• Fate's Grace adds a third button to the death overlay. Use it to revive at your death location with full HP
• Server validates every purchase and returns your updated opals balance
• Strict no pay-to-win rule: no damage, XP, or loot buffs behind opals, ever
Admin Observer & Spectate Mode
Admins can now log in without a character and drop into any live scene to watch what is happening. No presence, no footprint, full replication.
• Use /spectate <scene> to enter any scene as a ghost observer
• MobAI keeps ticking in observed scenes via a presence refcount, so dead scenes do not freeze just because the only watcher is an admin
• Client interpolates ghost entities smoothly while spectating (no more frozen sprites)
• Typed SvSpectateAck packet reports accepted, not-admin, unknown-scene, or stopped so every outcome is visible
• Sentinel log observer_only_ticked catches regressions if any gate reverts
• Perfect for live-ops debugging, boss-fight reviews, and anti-cheat spot checks
Critical Fixes & Network Hardening
A lot of invisible work landed behind the scenes. Short version: the network layer is now rock solid under load and packet loss.
• Protocol v5 security pass: 64-bit CSPRNG session tokens (libsodium, zero mt19937), encrypted CmdAuthProof so the auth token never rides on the wire in plaintext, timing-safe token comparisons, per-account login lockout with exponential backoff. Closed off-path UDP session-spoof prediction and plaintext-token account-takeover windows in one pass.
• Retransmit offset fix: reliable retransmits were silently broken since the v5 sessionToken widening landed. First-send worked so gameplay masked it, but any lost ack produced a corrupted retransmit the peer would drop. Fixed the byte offsets on both sides. No more "Unknown packet type 0x00" spam on connect.
• Bag move preserves contents: dragging a bag to a different inventory slot used to orphan every nested item. Root cause was a map key invariant that was never maintained across moveItem. Fixed with full test coverage on store, retrieve, and move paths.
• Bag auto-open suppression: storing an item into a closed bag used to pop the bag view open as a side effect. Fixed with a client-side guard so only the currently open bag refreshes on mutation.
• Critical-lane bypass: 8 load-bearing opcodes (SvEntityEnter, SvDeathNotify, SvRespawn, and more) bypass reliable-queue congestion. Kills the "invisible mob" and "death overlay never fires" symptoms under load.
• UDP socket buffers bumped from 64KB to 1MB on both sides. Silent packet drops during burst replication are gone.
• Pending-packet queue lifted from 256 to 2048 slots. Initial replication bursts in 231-entity scenes no longer truncate.
Engine Robustness At A Glance
For anyone curious about the foundation all this runs on:
• 172,000+ lines of hand-written C++23 across 765+ files: engine (78K), game (36K), server (34K), tests (24K)
• 1,400+ automated tests across 180 test files covering combat, encryption, replication, inventory, skills, quests, VFX, collision grids, pets, Aseprite import, and more
• 50+ server-authoritative game systems with priority-based dirty-flag persistence at 95 mutation sites
• Noise_NK + XChaCha20-Poly1305 encryption with forward secrecy, symmetric rekeying every 65K packets or 15 minutes
• Fiber-based DbDispatcher handles async player load (18 queries as one job), disconnect saves, and all 5 metrics DB ops. Zero game-thread blocking.
• Mob AI scaling: 27 of 29 scenes skip mob AI each tick when population is sparse. Batched mob death persistence dropped 27 DB round-trips to 1 transaction per scene per tick.
• 5 platforms from one codebase: Windows, macOS (native Metal), iOS, Android, Linux
• Watch the video: Running the FateMMO Server
• GitHub: wFate/FateMMO_GameEngine
• Website: FateMMO.com