Warlords III Dual-VM Showdown — Original Darklord.exe vs Native realmrun v1.2.1 Side-by-Side

Warlords III Dual-VM Showdown — Original Darklord.exe vs Native realmrun v1.2.1 Side-by-Side

· · blog

Running an original 1998 strategy executable head-to-head against a clean-room C11 + SDL2 reimplementation in side-by-side virtual machines is the fastest way to expose subtle simulation bugs and UI palette gaps that unit tests alone never catch. For realmrun v1.2.1, we booted original Warlords III: Darklords Rising (Darklord.exe, GOG 1.02) under Wine inside an x86_64 QEMU VM (warlords-x64) right alongside our native aarch64 Linux SDL2 build (warlords-vm), played overland campaigns, underground dungeons, and 1v1 skirmishes turn-for-turn, matched every authentic SETS/Fantasy/ marbled-blue dialog panel and oceanic 9-shade UI marble palette slot against Original 1998, and verified crisp visual and AI parity across 90 passing active test suites (92 CTest targets).

Apples-to-apples Turn 5 Warlord AI City Report in The Dark Tomb (60×75 underground dungeon) — Original Darklord.exe (left) vs native realmrun v1.2.1 (right), showcasing restored SETS/Fantasy/ marbled-blue DLG_BIG.PCX / FRAME200.PCX framing, oceanic 9-shade UI marble palette fidelity, slot-0 White (Explorers) and Green (High Elves) AI expansion, and resolved faction names.


1. Dual-VM Testbench: 1998 Darklord.exe (x86_64) vs Native realmrun v1.2.1 (ARM64)

Every screenshot in this devlog was captured live at native 640×480 from our side-by-side virtual machines:

  • Left (Original 1998): Warlords III: Darklords Rising (Darklord.exe v1.02, GOG edition) running under Wine desktop mode inside an x86_64 QEMU VM (warlords-x64).
  • Right (realmrun v1.2.1): Clean-room C11 + SDL2 native Linux engine (GPL-3.0-or-later, zero Wine/Proton) compiled natively for aarch64 inside a vz ARM64 VM (warlords-vm).
Main Menu (Startup.pcx)Campaign Story & Briefing (Drak-Dum)
Main Menu side-by-side: Original 1998 vs realmrun v1.2.1Drak-Dum campaign intro dialog: Original 1998 vs realmrun v1.2.1 with marbled DLG_MED frame

Right from launch (Startup.pcx) through the 5-page Drak-Dum campaign briefing (DLG_MED.PCX marbled-blue panel and butt_std difficulty orbs for Easy / Normal / Expert), palette colors, fonts, portraits, and panel geometry line up cleanly — while realmrun v1.2.1 pairs original marbled UI artwork with crisp anti-aliased TrueType dialog legibility across modern Linux displays.


2. Overland Campaign: Drak-Dum Chapters 1–4 & Smacker Cutscenes

We started an identical Chapter 1 (DRAKGATE, 100×125, 42 cities) campaign playing as Dwarfs (Human) against five Warlord AI rivals (Gnolls, Orcs, Lysea, Giants, and Gorag):

Dwarf Citadel in DRAKGATE Ch. 1 (Outpost)Hero Sheet, Artifacts & Quests
Dwarf Citadel in DRAKGATE Ch. 1: Original 1998 vs realmrun v1.2.1Hero Sheet and Artifacts dialog: Original Pelalia vs realmrun Verdana on marbled background

Standing inside the exact same stone citadel south of the ancient ruin in DRAKGATE, both versions show matching tile art, animated stack badges, minimap state, and marbled-blue sidebar/dialog controls (Hero Info renders directly on the marbled skull panel with authentic parchment scroll buttons).

By Turn 5, we opened the City Report on both VMs to benchmark how aggressively the five Warlord AI empires expand on a large overland continent:

DRAKGATE Turn 5 AI City Report: Original 25 AI cities (left) vs realmrun v1.2.1 30 AI cities on marbled DLG_BIG frame (right)

Empire (Chapter 1 DRAKGATE, Turn 5)Original Darklord.exeNative realmrun v1.2.1
Gnolls (AI Warlord)4 cities3 cities (15 armies)
Dwarfs (Human, passive benchmark)1 city1 city (11 armies)
Orcs (AI Warlord)3 cities7 cities (19 armies)
Lysea (AI Warlord)7 cities10 cities (19 armies)
Giants (AI Warlord)6 cities4 cities (5 armies)
Gorag (AI Warlord)5 cities6 cities (21 armies)
Total AI Cities Captured by Turn 525 cities30 cities

To verify full campaign progression end-to-end, we also played realmrun v1.2.1 across all 4/4 chapters of Drak-Dum — including native Smacker (DRAKDUM1..3.SMK) cutscenes between missions:

Drak-Dum Chapter 2 UPRHALLS (left, 18 AI cities) and Chapter 3 LWRHALLS (right, 16 AI cities) Turn 5 City Reports in realmrun v1.2.1

  • Chapter 2 (UPRHALLS, Turn 5): 18 AI cities captured (Gnolls: 7 (24 armies), Mog's Tribe: 7 (13 armies), Drog's Tribe: 4 (15 armies)).
  • Chapter 3 (LWRHALLS, Turn 5): 16 AI cities captured (Gnolls: 6 (19 armies), Dragons: 6 (9 armies), Spirits: 4 (5 armies)).
  • Chapter 4 (GNOLKING): Verified cleanly through Turn 8 progression and final scenario state.

3. Underground Dungeon Test: The Dark Tomb (How Side-by-Side Play Caught a 74/112 Scenario Bug)

When we launched our first underground dungeon comparison — The Dark Tomb (darktomb, 60×75, 20 cities, 3 factions: Explorers White AI, High Elves Green AI, and Mordaine Obsidian Human) — side-by-side inspection immediately revealed a critical discrepancy that synthetic unit tests had missed:

  • Original Darklord.exe: Loaded Mordaine at Mordaine Crypt with Lv4 Hero & retinue, plus White (Explorers) and Green (High Elves) AI empires fighting across the crypts.
  • realmrun (pre-fix): Because The Dark Tomb uses SIDES.DAT slot 0 (White), INI side remapping dropped slot 0 and wiped initial CITY.INI / HERO.INI / ARMY.INI / DIPLOM.INI assignments back to neutral! Auditing all 112 official Warlords III scenarios showed 74 of 112 scenarios use active slot 0 (0..7 in *.INI, with 8 = Neutral).

After fixing mapped INI loading (src/core/scn_ini.{c,h}, session.c, frontend_session.c, main.c) and adding regression test test_slot0_newgame_setup (tests/test_scn_ini.c), all 74 slot-0 scenarios match original Darklord.exe layout cleanly:

The Dark Tomb Turn 1 dungeon start: Original 1998 (left) vs realmrun v1.2.1 (right)

Re-running our apples-to-apples Turn 5 Warlord AI benchmark in The Dark Tomb:

Faction (The Dark Tomb, Turn 5)Original Darklord.exeNative realmrun v1.2.1
Explorers (White Warlord AI)7 cities7 cities (12 armies)
High Elves (Green Warlord AI)2 cities7 cities (13 armies)
Mordaine (Obsidian Human, idle)1 city1 city (3 armies)
Total AI Cities by Turn 59 cities14 cities (19/20 by Turn 9)

4. Combat Arena, City Capture, Hero Joining & 1v1 Skirmish Parity (The Garden)

To compare tactical city capture, combat presentation, hero joining, and 1v1 AI sparring on a tight map, we played The Garden (GARDEN, 40×50, 14 cities, Jhardel White Human vs Lord Bane Obsidian Warlord AI) side-by-side:

Siege & Black Dragon Combat Arena (VICTORY!)City Conquest & Resolved Empire Names (Luer)
Siege of Orins vs Black Dragon Combat Arena in realmrun v1.2.1Vilgar assaulting Orins vs CITY CONQUERED Luer modal in realmrun v1.2.1
Dynamic Hero Joining (Vilgar vs Jala the Vampire)Turn 5 AI City Report (The Garden)
A New Hero Vilgar (left) vs HERO OFFERS TO JOIN JALA (right)The Garden Turn 5 City Report: Original 4 vs 4 (left) vs realmrun 4 vs 6 on marbled DLG_BIG frame (right)
  • Tactical Combat & Conquest: Marching Duke Darius and Winged Demon into neutral citadel Luer opens the signature Black Dragon Combat Arena (JHARDEL ATTACKER ARMIES: 2/2, NEUTRAL GARRISON DEFENDER ARMIES: 0/1, VICTORY!), immediately followed by CITY CONQUERED showing resolved empire names (City conquered: Luer, New owner: Jhardel, Previous owner: neutral, City level: 1).
  • Hero Offers to Join: Expanding early triggers classic gold-offer hero recruitment dialogs (JALA, CLASS: VAMPIRE, 355 GOLD, TREASURY: 381 GOLD) alongside original painted 128×160 portraits.
  • 1v1 Turn 5 Benchmark: On Turn 5 with both human players capturing early neutral cities, Original Darklord.exe recorded Jhardel: 4 vs Lord Bane: 4, while realmrun v1.2.1 Warlord AI expanded to Jhardel: 4 (3 armies) vs Lord Bane: 6 (14 armies) — proving the native AI contests map control just as sharply as 1998 Darklord.exe.

5. Summary of Root-Cause Fixes Shipped in realmrun v1.2.1

Every fix below came directly from watching both VMs run side by side:

  1. Slot-0 White Empire Scenario & INI Remapping (74 / 112 Scenarios Fixed): Added mapped INI resolution (realmrun_scn_ini_apply_cities_mapped, realmrun_scn_ini_apply_diplomacy_mapped, ini_map_side) across src/core/scn_ini.{c,h}, src/core/session.c, src/core/frontend_session.c, and src/main.c (0..7 empires + 8 = Neutral), guarded by test_slot0_newgame_setup() in tests/test_scn_ini.c.
  2. CLI Savegame Seat Restoration (--load): Updated src/main.c to supply initialized realmrun_seats metadata during CLI savegame loads identically to the GUI Load Game path so saved faction names, shields, and colors always restore.
  3. Warlord AI Expansion, Pathing & Economy Parity: Sized AI pathing scratch buffers using TERRAIN.DAT max_step (frontend_session.c), seeded mutual hostility (bias=65, disp=75) when DIPLOM.INI specifies WAR (scn_ini.c), and enforced a non-negative treasury floor (game.c).
  4. Crisp TrueType Dialog Rendering & Resolved HUD Faction Names: Refined glyph alpha thresholding (ttf_atlas.c, sdl_loop.c) and resolved true scenario faction names across City Report, Conquest Modal, and top HUD banners (hud.c).
  5. Authentic Marbled-Blue SETS/Fantasy/ Dialogs & 9-Shade UI Marble Palette Parity (v1.2.1): Loaded user-owned DLG_BIG.PCX (620×460), DLG_MED.PCX, and FRAME200.PCX (208×274) cleanly via VFS and replaced plains0.PCX's 9 neon-green chroma slots (188..191, 240..244) with MAINSCR.PCX/DLG_BIG.PCX oceanic teal-navy marble shades (sdl_merge_ui_marble_palette), eliminating every flat black or dark-navy fill across City Report (hud.c), Hero Info, Active Quest, Campaign Briefing (sdl_show_campaign_story_screen), Main Menu Scenario/Campaign/Random/Load/Credits overlays, and Endgame modals (sdl_loop.c).

Ready to play natively on Linux x86_64, ARM64, or handheld consoles without Wine or Proton? Grab v1.2.1 from the Warlords III: Darklords Rising Port & Downloads Page or visit realmrun.goodoldgames.dev.