Translation(s): English - Fran├žais - Portugu├¬s (Brasil)

./play.it banner

./play.it is a libre software that automates the build of native packages for multiple distributions, including Debian and its derivatives, from DRM-free installers for commercial games. The generated packages are then installed using the standard tools provided by the distribution, like dpkg or APT.

Native Linux games are supported, as well as games developed for other systems thanks to tools like Wine, DOSBox and ScummVM.

Installation

Debian repositories

play.it is provided in the contrib section of Debian repositories.

Git repository

When installing from git, running make install as the current user installs ./play.it only for the current user, while running it as root installs it system-wide.

You can provide an alternative installation prefix with make -e prefix=/opt/play.it install, default prefix is /usr/local if the command is run as root, $XDG_DATA_HOME otherwise (defaults to $HOME/.local/share if $XDG_DATA_HOME is not set).

Stable version

git clone --branch 2.12.1 --depth 1 https://forge.dotslashplay.it/play.it/scripts.git play.it.git
cd play.it.git
make
make install

Development version

git clone --branch master --depth 1 https://forge.dotslashplay.it/play.it/scripts.git play.it.git
cd play.it.git
make
make install

Usage

Using installed version

Assuming your game installer is called setup.exe, using ./play.it to install a game is a two-steps process:

  1. Run ./play.it by giving it the path to the game installer:

    play.it ~/Downloads/setup.exe
  2. Run the apt command provided at the end of the process as root (or dpkg command on old Debian versions), it should be something similar to:

    apt install /home/user/Downloads/game.deb /home/user/Downloads/game-data.deb

Using scripts from ./play.it website

./play.it can be used without being installed. This is not the recommended method if your distribution provides packages for it.

Up-to-date ./play.it scripts can be download from its website, these are the same that are provided by the master branch of the git repository.

To use these scripts on a system that does not have ./play.it available, follow these steps:

  1. Find your game on the website, go to its page;
  2. Download in a same directory the two files provided on the game page, one is the ./play.it library (libplayit2.sh) and the other a game-specific script (with a name similar to play-game.sh);

  3. Install the scripts dependencies listed on the game page;
  4. Run the game script by giving it the path to your game installer as its argument, this should be something similar to:

    ./play-game.sh ~/Downloads/setup.exe
  5. Wait until the script ends its process by giving you the apt command to run as root to install your game (or dpkg command on old Debian versions), it should be something similar to:

    apt install /home/user/Downloads/game.deb /home/user/Downloads/game-data.deb

Common issues

The following issues are copied from the upstream documentation, and as such the list might be incomplete or outdated. The up-to-date list of common issues for Debian is available on ./play.it forge: Common issues on Debian

Install i386 packages on a amd64 system

On a default amd64 setup, i386 packages can not be installed.

The following commands, that need to be run with the root account, allow the installation of i386 packages with their dependencies:

dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386

This needs to be done only once per system, after that all i386 packages should be installable.

source

Available innoextract version is too old

When calling ./play.it on a Windows installer, you could get an error similar to this one:

Error: Available innoextract version is too old to extract data from the following archive: setup_heroes_of_might_and_magic_3_complete_4.0_(28740).exe

This happens when the installer you are trying to convert to native packages is an ?InnoSetup installer that is not supported by the version of innoextract currently available on your Debian. There is a package available from openSUSE Build Service to get an up-to-date version of innoextract: innoextract from home:dscharrer project

source

Depends: libfaudio0 but it is not installable

When installing some packages generated by ./play.it on a Debian Buster (or some derivative), the installation might fail with a message similar to this one:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 owlboy : Depends: libfaudio0 but it is not installable
E: Unable to correct problems, you have held broken packages.

This is because the libfaudio0 package is only available starting with Debian Bullseye, so you need to enable the buster-backports repo, see Backports#Adding_the_repository.

Once backports are enabled, you can run again the command to install your game packages. apt should no longer complain about some not installable libfaudio0 package.

source

Contact

IRC channel

Some ./play.it developers can be reached on IRC, channel is #play.it on server chat.freenode.net.

E-mail

A contact e-mail for feedback can usually be found in each ./play.it script, as well as the library. Open one of these files with any text editor to see the contact e-mail.


CategoryGame