Skip to content

About

Clean-room implementation of Civ2 via behavioral specs

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

OpenCiv2 Cleanroom

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.

Build and run

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 -- --help

For the desktop application:

dotnet restore solutions/OpenCiv2.App.slnx --locked-mode
dotnet run --project src/OpenCiv2.Desktop -c Release

The build guide covers Windows, macOS, Linux, browser publication, optional Lua/SQLite, independent CLI tests and formatting. Packaging produces self-contained CLI archives.

Development

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.

About

Clean-room implementation of Civ2 via behavioral specs

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages