How blindmindstudios/starruler2-source works
Project type and purpose
• Star Ruler 2 is a large-scale, cross-platform 4X/RTS game engine and toolchain.
• It combines a native C++ core (rendering, physics, networking, resource management), an embedded AngelScript VM for game logic, a rich data-driven asset system (text data, models, shaders, sounds, UI skins), and mod‐editing/CI toolkits.
File structure
• Top level:
– Launcher executables/scripts (Star Ruler 2.exe, StarRuler2.sh) and bin/ for compiled output.
– data/: all game assets and configuration (abilities, anomalies, models, shaders, sounds, maps, mods).
– scripts/: AngelScript client, server, shared and toolkit code driving high-level game logic, UI, AI, networking.
– source/: C++ engine code, sub-repos (Angelscript VM, freetype2, glfw, network, os abstraction, sound, util), and game-specific C++ (source/game).
• Patterns in structure:
– Subsystems are isolated in C++ (source/game/render, physics, network, resource).
– Script layers separated into client, server, shadow, shared.
– Asset directories (data/...) follow a strict domain model (abilities, buildings, research, etc.).
– Build scripts and CI under source/linux, source/ci, source/msvc.
README insights
• This is the full open-source release, MIT-licensed code with CC-BY-NC assets.
• Platform abstraction for Steam/GOG is removed but extensible.
• Build instructions demonstrate separation between working directory, external dependencies, and target binaries.
• Multiplayer compatibility retained via script definitions (version.as) and network manager components.
Detail
• Every major subsystem, script directory, and data repository
• At least one example of script-to-engine binding (e.g., as_binding_print.cpp → Console API)
• CI/build layer to reflect how the system is produced and deployed