diff --git a/Installation-on-Linux-and-macOS.md b/Installation-on-Linux-and-macOS.md index e6ba03c..658e41e 100644 --- a/Installation-on-Linux-and-macOS.md +++ b/Installation-on-Linux-and-macOS.md @@ -3,9 +3,7 @@ Once you have compiled the game, you will need assets to properly launch it. This page will guide through ways you can use to provide said assets. # OpenRCT2-specific files - We use a file called `g2.dat` to provide few graphic assets we need. To create the file, use `g2` target: - ``` make g2 ``` @@ -13,32 +11,27 @@ make g2 The file needs to be with the OpenRCT2 data directory. We search for few paths: `data/`, `/var/lib/openrct2`, `/usr/share/openrct2` and you can specify your own path with `--openrct-data-path=path`. # Installing the game - ## GOG - GOG installers are simply self-extracting archives, packaged to Win32 PE. -If you bought the game on GOG, you can either download it via website or using [`lgogdownloader`](https://github.com/Sude-/lgogdownloader) (check if your distribution already has a package available). +If you bought the game on GOG, you can either download it via the website or using [`lgogdownloader`](https://github.com/Sude-/lgogdownloader) (check if your distribution already has a package available). -To extract files from installer, you will need to use `wine` to launch it or use [`innoextract`](https://constexpr.org/innoextract/) (again, check if your distribution has a package available already). +To extract files from the installer, you will need to use `wine` to launch it or use [`innoextract`](https://constexpr.org/innoextract/) (again, check if your distribution has a package available). -In future, perhaps using GOG Galaxy client would also become an option. +In the future, perhaps using GOG Galaxy client will become an option. ## Steam - If you bought the game through Steam, you will have to use their client to download the files. ### Wine - If you wish to use `wine`, please read how to install Steam on Linux, most comprehensive guides are: -* [Valve Developer Community](https://developer.valvesoftware.com/wiki/Steam_under_Linux) -* [ArchWiki](https://wiki.archlinux.org/index.php/Steam/Wine) + * [Valve Developer Community](https://developer.valvesoftware.com/wiki/Steam_under_Linux) + * [ArchWiki](https://wiki.archlinux.org/index.php/Steam/Wine) -Using `wine` version has the game listed in GUI, just click install and remember where to have you decided to install it. +`wine` version has the game listed in the GUI, just click install and remember where to have you decided to install it. ### Native - -By default when using the native client *with GUI*, you can only install the games that match your current platform. RCT2 is not listed as available for Linux (*aka SteamOS*), so you won't see an 'Install' button. +By default when using the native client *with the GUI*, you can only install the games that match your current platform. RCT2 is not listed as available for Linux (*aka SteamOS*), so you won't see an 'Install' button. You can enable downloading for unsupported titles through the Steam client settings: ``` @@ -48,18 +41,18 @@ Steam Play, Enable Steam Play for Supported Titles, Enable Steam Play for all other titles. ``` -You will be prompted to restart Steam. Afterwards, you will be able to download RCT2, and consequently any non-native-linux title on your machine. +You will be prompted to restart Steam. Afterwards, you will be able to download RCT2, and consequently any non-native-Linux title. -You can also launch Steam with the console enabled, and follow below instructions with OS X: +You can also launch Steam with the console enabled, and follow below instructions with macOS: ``` steam -console ``` -If you're using OS X, this command is a little different. Assuming you have Steam installed in the default location, run this command in the Terminal: +If you're using macOS, this command is a little different. Assuming you have Steam installed in the default location, run this command in the Terminal: ``` /Applications/Steam.app/Contents/MacOS/steam_osx -console ``` -You should now see additional "tab" in the top menu called `CONSOLE`. If you have `steam://` links installed, you can also try using [steam://open/console](steam://open/console) +You should now see an additional "tab" in the top menu called `CONSOLE`. If you have `steam://` links installed, you can also try using [steam://open/console](steam://open/console) Once in console, execute this command: ``` @@ -76,7 +69,7 @@ Depot download complete : /home//.local/share/Steam/ubuntu12_32\steama ``` Depot download complete : /home//.steam/ubuntu12_32\steamapps\content\app_285330\depot_285331 ``` -There are a lot of small files and it can take a while to download them all, even on good link and with ssd. Remember, the game will not show up in your `installed` games list. +There are a lot of small files and it can take a while to download them all, even on good internet while using an SSD. Remember, the game will not show up in your `installed` games list. You can also download RCT1 this way, if you own it. For that, execute this command: ``` @@ -84,7 +77,6 @@ download_depot 285310 285311 ``` ### steamcmd - Install SteamCMD from your Package Manager, or download the package manually Ubuntu/Debian @@ -101,7 +93,7 @@ pacman -S steamcmd ``` Mac OS X ``` -curl -sqL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz' | tar zxvf - +curl -sSfqL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz' | tar zxvf - ``` Windows @@ -115,17 +107,15 @@ steamcmd +@sSteamCmdForcePlatformType windows +login +forc ``` ## Retail +Use `wine` to execute the Windows installer if there is any, use `unshield` on the installer or copy the files if they are available like that. -Use `wine` to execute Windows installer if there is any, use `unshield` on the installer or copy the files if they are available like that. +If the retail copy uses a Windows InstallShield installer, then it is possible to extract the necessary data without wine using a program called [unshield](https://github.com/twogood/unshield). It should be available as a package for your system, consult with your package manager. -If the retail copy uses a Windows InstallShield installer, then it is possible to extract the necessary data without wine using a program called [unshield](https://github.com/twogood/unshield). It should be available as a package for your system, consult with you package manager. - -Alternatively, you can follow instructions below on obtaining `unshield` manually. +Alternatively, you can follow the instructions below on obtaining `unshield` manually. For the instructions below, I'm going to assume that `$INSTALLDIR` is the directory where the disc is mounted and `$EXTRACTDIR` is the directory you want the extracted data to go. You can set these as a bash variable (ex. `INSTALLDIR=/path/to/installer`) or just replace them before running. First download [unshield](https://github.com/twogood/unshield) and `cd` into it. Then run the following commands: - ``` cmake . make @@ -134,12 +124,10 @@ cp -R "$INSTALLDIR/Data/" "$EXTRACTDIR/Minimum/Data" mv "$EXTRACTDIR/Minimum" "$EXTRACTDIR/RCT2" ``` -# Letting openrct2 know the game path - -On first launch of openrct2 it will launch a dialog box asking you to provide a path of your assets. On Linux it will use either `zenity` or `kdialog`, it will fail if these are not available. - -If it fails for you for some reason or you would like to change the path used, you can use `set-rct2` command of openrct2: +# Letting OpenRCT2 know the game path +On first launch of OpenRCT2 it will launch a dialog box asking you to provide a path of your assets. On Linux it will use either `zenity` or `kdialog`, it will fail if these are not available. +If it fails or you would like to change the path used, you can use `set-rct2` command of OpenRCT2: ``` openrct2 set-rct2 /your/path/to/data -``` \ No newline at end of file +```