It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
/!\: 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 Wasteland games on Linux

-----

Hello fellow Debian users, Ubuntu lovers and Mint freaks!

Here you’ll find scripts allowing you to turn your .tar.gz archives of Wasteland 2 into .deb packages, allowing to install them through DPKG and remove them through any APT front-end (apt-get, synaptic, gnome-software, etc.).

First thing first, there you can download the scripts:

English version (GOG release 1.9.0.13):
dead link removed

French version (GOG release 1.9.0.13):
dead link removed

(updated on 2015-06-18)

Choose the language you feel most comfortable with, but reste assured it won’t mess with you game’s language. It’s only the langauge used by the script itself.

I tried to make these scripts as easy to use as possible:
1. Download the script and put in a same directory the script and the GOG .tar.gz archive (gog_wasteland_2_1.9.0.13.tar.gz);
2. Install the script’s dependencies. To run, this script only need the 'fakeroot' package to be installed on your system. You can install it by running the following command as root (or via sudo):

apt-get install fakeroot
3. Open a terminal in the directory containing the script then run it via the following command:

sh ./play-wasteland-2_gog-1.9.0.13.sh
 
That’s it! The script will take a couple minutes to work its magic, and end by giving you the commands to launch as root (or via sudo) to install the freshly built .deb packages.

-----

advanced usage:
https://www.gog.com/forum/wasteland_series/turn_your_gogcom_targz_archive_into_a_deb_package/post10

-----

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. Demands for similar scripts for other GOG games should be sent directly via the chat.

I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)
Have fun, and see you in Arizona!

-----

Here you go for more supported games

-----

2015-04-08: Added an English version of the script
Post edited February 17, 2019 by vv221
Handy, though I personally prefer tarballs.
Question: Now that we have a new version (1.7.0.11), is it as simple as telling the script which file to work with, or does the script itself need updating?
avatar
Borkis: Question: Now that we have a new version (1.7.0.11), is it as simple as telling the script which file to work with, or does the script itself need updating?
The script needs an update (I’ve written the new script), I’m updating the first post to reflect this.
Thank you for notifying this ;)

-----

Done!
Post edited December 20, 2014 by vv221
Opening post totally revamped, and script updated to the latest version (patch 6, a.k.a 1.9.0.13).
I am having difficulty installing .sh file the 'normal' way, so tried your packager in hopes it would make the install successful. I had to run with the CHECKSUM off, and it seemed to run the script all the way to this point:


dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
Paquets construits.
Installez-les en lançant en root :
dpkg -i /media/zubba/Games/Media/wasteland/wasteland-2_1:6-gog1.9.0.13_i386.deb /media/zubba/Games/Media/wasteland/wasteland-2-scenes-az_1:6-gog1.9.0.13_i386.deb /media/zubba/Games/Media/wasteland/wasteland-2-scenes-ca_1:6-gog1.9.0.13_i386.deb; apt-get install -f


I'm not sure if it did anything? I can find no new files or directories, so am unsure if it aborted?

Any ideas what happened?
avatar
zubbs1: dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
Looks like you’re running the script on a NTFS partition or similar. It won’t work.
You need to run it on a file system supporting UNIX rights, such as ext4 (your $HOME partition should do the trick).
avatar
zubbs1: dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
avatar
vv221: Looks like you’re running the script on a NTFS partition or similar. It won’t work.
You need to run it on a file system supporting UNIX rights, such as ext4 (your $HOME partition should do the trick).
Ok, that is good to know. I was hoping to avoid turning that hard drive into an ext4, but it seems like it is necessary. Cheers.
8/04/2015 Update

An English version is now downloadable. As it is not my native language, please report any mistranslation or bad formulations you might encounter, be it in the script returns or in the commentaries.

The script will now automatically detect the game archive if it has been "gunzipped" (gog_wasteland_2_1.9.0.13.tar). It will be able to check its integrity prior to processing it.
If you renamed your GOG archive, the script will not find it automatically. You’ll have to give it the path to the archive as an argument. This can allow you to run the script without the need to have the archive in the same direcory.
Here is an example:
sh ./play-wasteland-2_gog-1.9.0.13.sh "/home/ranger/GOG games/Wasteland2.tar.gz"
 
You can set different options while running this script 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-wasteland-2_gog-1.9.0.13.sh
 
COMPRESSION=none,gzip,xz
By default, the final .deb package is built without compression to speed up the building and installation. You can use DPKG built-in gzip or xz compression by setting this option to the adequate value:
COMPRESSION=xz sh ./play-wasteland-2_gog-1.9.0.13.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/wl2 sh ./play-wasteland-2_gog-1.9.0.13.sh