Skip to content

Instantly share code, notes, and snippets.

@AI221
Last active July 23, 2016 21:26
Show Gist options
  • Save AI221/c313c763ff210d5c334e to your computer and use it in GitHub Desktop.
Save AI221/c313c763ff210d5c334e to your computer and use it in GitHub Desktop.
Auto-compiler for OpenRCT on linux - Bash
#!/bin/bash
#install VV (w/o #)
# wget https://gist.githubusercontent.com/AI221/c313c763ff210d5c334e/raw/7150d8af6a44a1f580e6902bf10b01735f247878/newrct.sh && chmod +x netrct.sh && ./newrct.sh
#clean out old one
./OpenRCT2/scripts/linux/clean.sh
#delete old old
rm -rf o_OpenRCT2
#move old one
mv OpenRCT2 o_OpenRCT2
#dl new one
git clone https://github.com/OpenRCT2/OpenRCT2
#compile
cd OpenRCT2
./scripts/linux/build.sh #run the build script, must be in root dir of orct
cd build
make g2 #build g2
mv g2.dat data #move it into the data
cd .. # go back
echo Finished. Now launching.
./openrct2 & #run the game in the background
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment