# Building OpenXray and playing "Stalker - Call of Pripyat" on macOS Sonoma 14.3.1 ARM64 M1/M2 # Project page @ https://github.com/OpenXRay/xray-16/ with further documentation .d8888b. 888 888 888 d88P Y88b 888 888 888 Y88b. 888 888 888 "Y888b. 888888 8888b. 888 888 888 .d88b. 888d888 "Y88b. 888 "88b 888 888 .88P d8P Y8b 888P" "888 888 .d888888 888 888888K 88888888 888 Y88b d88P Y88b. 888 888 888 888 "88b Y8b. 888 "Y8888P" "Y888 "Y888888 888 888 888 "Y8888 888 cd $HOME git clone https://github.com/OpenXRay/xray-16 --recursive cd xray-16 CFLAGS="-w" CXXFLAGS="-w" cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_UNITY_BUILD=ON -DLUAJIT_DISABLE_JIT=ON gmake -j8 # Prepare the environment for game data files mkdir -p "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" # Copy the original game data resources to the above directory # This is around 4.5 Gigs cp -rv levels "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" cp -rv localization "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" cp -rv patches "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" cp -rv resources "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" # Next we will copy the OpenXray game resources to the above directory cd $HOME/xray-16/res cp -rv gamedata "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" cp -rv fsgame.ltx "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" cp -rv openxray_plus.ltx "$HOME/Library/Application Support/GSC Game World/S.T.A.L.K.E.R. - Call of Pripyat" # Next we prepare a custom loader and directory to hold OpenXray binaries and libs mv $HOME/xray-16/bin/arm64/Release $HOME/Stalker cd $HOME/Stalker echo "export DYLD_LIBRARY_PATH=$HOME/Stalker" > run.sh echo "./xr_3da" >> run.sh chmod +x run.sh # Playing the game cd $HOME/Stalker ./run.sh # Observed issues - The game does not exit cleanly from the game menu and screen artefact gets stuck on display It is better to [press] command+tab and navigate to the terminal and ctrl+c from there for exit (same the game first) during game If the screen still gets stuck, in the terminal from where the game was launched type logout or logout -f , this should clear it. - Multiplayer crashes and does not work