Back to Blog

Stellar Throne Devlog #4 — The Great Migration: GDScript to Zig Complete

by MrPhil
stellar-thronedevloggame-developmentziggodot

The Godot to Zig port reached a huge milestone — gdzig is running smoothly and the simulation core is nearly 100% native.

100% Zig Migration Complete (23 / 23 Managers)

All 23 game managers are now fully ported from GDScript to Zig.

  • Final additions: ZigAIDirectorManager, ZigAIEmpireManager, and ZigQuestManager
  • 333 tests passing (256 Zig + 77 GUT) — zero compiler warnings, zero leaks

TOML Configuration Migration

Gameplay configuration has moved entirely to TOML:

  • 22 TOML files now act as the single source of truth for balance, events, and systems
  • Legacy JSON assets archived with complete documentation

Simulation System Track 2

The Turn Simulator foundation is now live:

  • 23 phases planned — 4 implemented (resource generation, upkeep, colony growth, research)
  • Economic feedback loops and performance benchmarks already show 20-50x speed gain

Track 2 Progress: 21% complete and climbing.

Testing, Docs & Performance

  • 333/333 tests passing (100%) across Zig + GUT
  • Documentation reorganized (72 to 57 files)
  • Hybrid Zig/GDScript architecture yielding major speed ups

6,000 lines of Zig code, 2,300 lines of tests, 2,500 lines of new docs — 31 commits in 24 hours.

The Big Picture

Track 1 (Migration): Complete Track 2 (Simulation): Underway (21%)

The simulation framework is ready to handle complex turn-based economics and AI strategy at empire scale.