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

×
/!\ outdated thread, here you go for up-to-date scripts and instructions:
Install the Worms series on Debian/Ubuntu/Mint/etc.

-----

version française

-----

Hello fellow Debian users, Ubuntu lovers and Mint freaks!

Here you’ll find a script allowing you to turn your .exe installer of Worms 2 into a .deb package, allowing to install it through DPKG and remove it through any APT front-end (apt-get, aptitude, synaptic, etc.).

First thing first, here you can download the script:
GOG release 2.0.0.32: http://www.dotslashplay.it/scripts/play-worms-2_gog-2.0.0.23.sh

(updated on 2015-07-29)

I tried to make it as easy to use as possible:

1. Download the script, then put in a same directory the script and the GOG .exe installer (setup_worms2_2.0.0.23.exe);

2. Check the script dependencies. To run, this script needs the following packages to be installed on your system:
innoextract, fakeroot, icoutils (icoutils is optional, but without it the menu entry will use the generic WINE icon instead of the game-specific one)

3. Open a terminal in the directory containing the script, then run it via the following command:

sh ./play-worms-2_gog-2.0.0.23.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 to install the freshly built .deb package.

-----

intro videos
advanced usage

-----

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 should go via the chat or in the dedicated thread.

I hope you’ll enjoy these scripts as much as I enjoy writing and tweaking them ;)

-----

Here you go for more supported games!

-----

2015-07-21: script rewritten in conformity with the freedesktop specifications
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Post edited November 27, 2015 by vv221
Wow, great stuff, thank you very much!!!


EJ
avatar
begoggled: Wow, great stuff, thank you very much!!!
You’re welcome, it’s always nice to see people having some use for my scripts ;)
The game installed via this script will play the intro videos like the original game: the first intro (with the logos), then one random video from a small pool. If you want the videos to play when launching the game, you need to have one of the following packages installed on your system:
mpv, mplayer2, vlc
(more video players could be added to this list per request)

You’ll then surely notice a problem with the GOG-provided video files: audio and video are out-of-sync. Don’t panic, the solution is not far!
Download the archive named worms-2_wmv-sync.7z from the following page (please use the .torrent file if you have a BitTorrent client):
http://www.dotslashplay.it/ressources/worms/
Then run the following command (by giving it the path to the archive on your system of course):
worms2-tweak_sync-wmv ~/Téléchargements/worms-2_wmv-sync.7z
Wait a couple seconds for the videos to be extracted from the archive, and voilà, you can now enjoy properly synchronized intro videos!
If you renamed 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 installer around.
Here is an example:
sh ./play-worms-2_gog-2.0.0.23.sh ~/Downloads/setup_worms2_2.0.0.23.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 installer 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-worms-2_gog-2.0.0.23.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.
Example to build a xz-compressed .deb package:
COMPRESSION=xz sh ./play-worms-2_gog-2.0.0.23.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.
Example to install the game under '/opt/worms2':
PREFIX=/opt/worms2 sh ./play-worms-2_gog-2.0.0.23.sh
 
Of course you can use a combination of these options.
The following command will build a package from the installer found in ~/Downloads, without checking its integrity before processing it, compressed through DPKG built-in xz, that will install the game in '/opt/worms2':
CHECKSUM=none COMPRESSION=xz PREFIX=/opt/worms2 sh ./play-worms-2_gog-2.0.0.23.sh ~/Downloads/setup_worms2_2.0.0.23.exe
Post edited July 28, 2015 by vv221