Build the engine
Build and self-test the Alt:SA engine from source. For contributors with access to the private repository.
For contributors with access to the private Alt-SAMP/Engine repository.
Requirements#
- Unity 2020.3.26f1 exactly.
- Your own copy of the classic PC GTA San Andreas.
- Git with submodules.
Steps#
- Install the exact Unity version:
1unity install 2020.3.26f1 -c 7298b473bc1a --no-cm -y- Clone the engine with its submodules:
1git clone --recurse-submodules https://github.com/Alt-SAMP/Engine.git- Create
config.user.jsonin the repository root with your game folder:
1{ "game_dir": "C:/Games/GTA San Andreas" }- Build and self-test:
1Tools/build.sh # Build/Alt-SA/Alt-SA.exe2Tools/run-autotest.sh # single player3Tools/run-autotest.sh mp # host + clientThe repository's AGENTS.md has the full setup, the code map and known issues. The unity-dev-build and unity-autotest skills explain the build and self-test in depth.