Posted May 27, 2015
/!\: This thread is not kept up-to-date anymore, please go to the following one to get the latest links and instructions, or for any kind of feedback on the scripts:
[./play.it] Install The Settlers games on Linux
-----
Hello fellow Debian users, Ubuntu lovers and Mint freaks!
Here you’ll find scripts allowing you to turn your .exe installer of The Settlers II Gold into a .deb package, allowing to install it through DPKG and remove it through APT.
First thing first, here you can download the scripts:
GOG release 2.1.0.16, French version: dead link removed
GOG release 2.0.0.14, English version: dead link removed
While the language of the script as no effect on the language of the game (nothing is stripped nor added to the game), you have to use the script corresponding to the GOG release of your installer.
I tried to make them as easy to use as possible:
1. Download the script;
2. Put in a same directory the script and the GOG .exe installer (setup_settlers2_gold_2.0.0.14.exe or setup_settlers2_gold_french_2.1.0.16.exe);
3. Check the script dependencies. To run, these scripts need the following packages to be installed on your system:
fakeroot, innoextract
4. Open a terminal in the directory containing the script;
5. Run the script via the following command:
sh ./play-the-settlers-2_gog-2.1.0.16.sh
for the 2.1.0.16 release, or
sh ./play-the-settlers-2_gog-2.0.0.14.sh
for the 2.0.0.14 release
That’s it! The script will take a couple seconds to work its magic, and end by giving you the command to launch as root to install the freshly built .deb packages.
-----
ADVANCED USAGE
If you rename your GOG installer, the script will not find it automatically. You have to give it the path to the archive as an argument in order for it to work. This can allow you to run the script without the need to copy the archive around.
Here is an example:
sh ./play-the-settlers-2_gog-2.1.0.16.sh "/home/settler/GOG games/Settlers2-2.1.0.16.exe"
You can set different options while running these scripts to define some of its behaviours. Here comes the list of these options, with the default option in bold characters.
CHECKSUM=md5,none
By default, the script will check the archive integrity through md5sum. If you want to bypass this check for any reason, set this option to none while launching the script:
CHECKSUM=none sh ./play-the-settlers-2_gog-2.1.0.16.sh
COMPRESSION=none,gzip,xz
By default, the final .deb package is built without compression to speed up the process. You can use gzip or xz compression by setting this option to the adequate value:
COMPRESSION=xz sh ./play-the-settlers-2_gog-2.1.0.16.sh
PREFIX=/usr/local,any absolute path
By default, the .deb package will install the game data under /usr/local. If you want to install it under another path, you can by setting this option to the relevant path. Only an absolute path can be defined this way.
PREFIX=/opt/settlers2 sh ./play-the-settlers-2_gog-2.1.0.16.sh
-----
Any return, be it a bug report, a suggestion, a request, a demand for clarification, an insult or a simple "thank you" is welcome in this thread. Requests for similar scripts for other GOG games (or Humble Bundle ones) should go via PM.
I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)
Have fun, and see you on some unknown continent!
-----
Here you go for more supported games!
[./play.it] Install The Settlers games on Linux
-----
Hello fellow Debian users, Ubuntu lovers and Mint freaks!
Here you’ll find scripts allowing you to turn your .exe installer of The Settlers II Gold into a .deb package, allowing to install it through DPKG and remove it through APT.
First thing first, here you can download the scripts:
GOG release 2.1.0.16, French version: dead link removed
GOG release 2.0.0.14, English version: dead link removed
While the language of the script as no effect on the language of the game (nothing is stripped nor added to the game), you have to use the script corresponding to the GOG release of your installer.
I tried to make them as easy to use as possible:
1. Download the script;
2. Put in a same directory the script and the GOG .exe installer (setup_settlers2_gold_2.0.0.14.exe or setup_settlers2_gold_french_2.1.0.16.exe);
3. Check the script dependencies. To run, these scripts need the following packages to be installed on your system:
fakeroot, innoextract
4. Open a terminal in the directory containing the script;
5. Run the script via the following command:
sh ./play-the-settlers-2_gog-2.1.0.16.sh
sh ./play-the-settlers-2_gog-2.0.0.14.sh
That’s it! The script will take a couple seconds to work its magic, and end by giving you the command to launch as root to install the freshly built .deb packages.
-----
ADVANCED USAGE
If you rename your GOG installer, the script will not find it automatically. You have to give it the path to the archive as an argument in order for it to work. This can allow you to run the script without the need to copy the archive around.
Here is an example:
sh ./play-the-settlers-2_gog-2.1.0.16.sh "/home/settler/GOG games/Settlers2-2.1.0.16.exe"
CHECKSUM=md5,none
By default, the script will check the archive integrity through md5sum. If you want to bypass this check for any reason, set this option to none while launching the script:
CHECKSUM=none sh ./play-the-settlers-2_gog-2.1.0.16.sh
By default, the final .deb package is built without compression to speed up the process. You can use gzip or xz compression by setting this option to the adequate value:
COMPRESSION=xz sh ./play-the-settlers-2_gog-2.1.0.16.sh
By default, the .deb package will install the game data under /usr/local. If you want to install it under another path, you can by setting this option to the relevant path. Only an absolute path can be defined this way.
PREFIX=/opt/settlers2 sh ./play-the-settlers-2_gog-2.1.0.16.sh
Any return, be it a bug report, a suggestion, a request, a demand for clarification, an insult or a simple "thank you" is welcome in this thread. Requests for similar scripts for other GOG games (or Humble Bundle ones) should go via PM.
I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)
Have fun, and see you on some unknown continent!
-----
Here you go for more supported games!
Post edited February 17, 2019 by vv221