Build¶
Every platform gets CMake, Ninja, Rust and its libraries from pixi (conda-forge), so one command builds:
What that does depends on the platform.
CMake with the windows preset: Visual Studio 2026 (the Build Tools or any edition with
C++), 64-bit, libraries from conda-forge, Rust from rustup. The game,
the launcher and the DLLs it needs end up in build\windows\Game\src\Release.
CI uses the windows-ci preset: whatever MSVC the runner has, through Ninja.
CMake with the linux preset and GCC. The compiler, CMake, Ninja, Rust and every library
come from conda-forge, so nothing is installed system-wide. DevIL is downloaded and built
from source automatically. Sound goes through PulseAudio or PipeWire (also under WSLg).
CMake with the macos preset and Clang, everything from conda-forge. OpenAL Soft comes from
pixi rather than Apple's deprecated framework. To make a self-contained app (libraries in
Contents/Frameworks, signed ad hoc):
It builds and passes every unit test; it has not been played yet.
Presets directly¶
You can use the CMake presets without pixi tasks, or open the folder in an IDE that reads them (VS Code, CLion, Visual Studio):
What had to change to build today¶
The released source dates from 2013. Building it on current compilers and 64-bit took, among other things:
- 64-bit. Windows is 64-bit only; the old 32-bit Visual Studio projects are gone. The Newton physics engine is compiled from source for 64-bit and checked against the original 32-bit game (see Architecture).
- Character animations. The original read
.FBXanimation files with a closed-source SDK that can no longer be obtained. They are now read with the open-source ufbx library on every platform. - Apple Silicon. AngelScript's native calls for ARM64 were backported from a later AngelScript release; Newton uses its scalar maths path off x86.
- Linux and modern compilers. Fixes merged from shamazmazum/AmnesiaAMachineForPigs.
Continuous integration¶
Every push and pull request is built and unit-tested on GitHub Actions for Linux, Windows 64-bit
and macOS on Apple Silicon (.github/workflows/build.yml), with the same pixi environment and
CMake presets as above. The built game is uploaded as an artifact of each run.