A C#/.NET implementation of Civilization II Multiplayer Gold Edition 5.4.0f, patch 3, built from behavioral specifications. Avalonia supplies the desktop and browser UI. The portable core and command-line tools also run without a display, graphics assets, Lua or SQLite.
This is not yet a playable game. The M1 foundations implement classic file codecs, content tools, state, scoped session clients, setup/load/save workflows, bounded checkpoints and registered conformance operations. The application exercises a real session command through Avalonia and a console; optional Lua uses the same authority and command APIs. M2 develops rendering and platform integration; M3 delivers the first playable slice.
Install the pinned .NET SDK 11.0.100. Run from the repository root:
dotnet restore --locked-mode
dotnet build -c Release --no-restore
dotnet test --project tests/OpenCiv2.Base.Tests -c Release --no-build --no-restore
dotnet run --project src/OpenCiv2.Cli -c Release --no-build -- --helpFor the desktop application:
dotnet restore solutions/OpenCiv2.App.slnx --locked-mode
dotnet run --project src/OpenCiv2.Desktop -c ReleaseThe build guide covers Windows, macOS, Linux, browser publication, optional Lua/SQLite, independent CLI tests and formatting. Packaging produces self-contained CLI archives.
- Architecture: cleanroom boundary, project dependencies, ownership, commands, presentation and networking.
- Source guide: projects, entry points and where to add code.
- Implementation plan: current scope and the next specification families, milestone dependencies and acceptance gates.
- Implementation coverage: current APIs, sources and shared/native test coverage.
- Validation: executed CI evidence and remaining native desktop checks; a successful headless CI job is not desktop acceptance.
- Application and Lua automation: current host behavior and bounded scripting contracts.
- Algorithm specifications, compatibility (X01) and conformance (X02): behavioral requirements, registered operations, fixtures and explicit evidence gaps.
- Content, JSON formats, schemas and gameplay data: data contracts and the standalone-content work still required.
- Performance: workload budgets, measured costs and reproducible collectors.
Core/CLI, Lua/SQLite and self-contained packages have passed hosted CI on Linux x64, macOS ARM64 and Windows x64. Browser tests execute in Chromium WebAssembly. Actual Windows/macOS desktop interaction, shutdown and target-hardware performance remain pending. Full menus, DPI/IME/accessibility, browser storage, complete original-peer networking and playable gameplay retain their milestone gates.
Implement gameplay from this repository's specifications. Do not consult or
translate OpenCiv2 or Civ2 reconstruction/decompilation source. External source
links and filenames in specification provenance are historical research records,
not implementation or test inputs. Resolve missing behavior through the
specification contract or independent original-game observations. The designated
PeterJohnson/openciv2-assets content is an allowed data dependency.
MIT license. See third-party notices for dependencies and publication-specific notices in generated packages.