Welcome to the Creatures Wiki! Log in and join the community.

Linux Docking Station Instructions

From Creatures Wiki
Jump to navigation Jump to search

Introduction[edit]

There are two (but sort of three) methods for playing Docking Station on Linux:

  1. The official Linux port (requires acquiring binaries for gtk+-1.2 and glib-1.2, and no longer supports sound)
  2. Wine using Xephyr to emulate 16-bit colour, or using a patch to fix the 16-bit colour.

Method 1: The official Linux port[edit]

Official instructions from the Gameware article (Note: You're expected to run into problems with these. Read the problems section below.):

  1. Download the package from a mirror
  2. Extract the package: tar xvfj dockingstation_195_64.tar.bz2
  3. Go into the folder: cd dockingstation_195_64
  4. Run ./dstation-install
  5. Then run dockingstation nocheck to play the game

Linux Game Publishing Instructions[edit]

The file at Linux Game Publishing is a .run file instead of a .tar.bz2 file. So, instead of the instructions above:

  1. Download the package
  2. Run linuxgamepublishing_dockingstation.run (TODO: No idea how trap failures affect this)
  3. Then run dockingstation nocheck to play the game

Ubuntu guide[edit]

Download here (down, formerly available at docs.google.com/leaf?id=0B_hGfA7OiJLwOGRmODZiNGEtZGVhNS00YzlkLWI4M2ItMDNiZDdmZDY5ODNi&hl=en).

Problems[edit]

trap: 119: SIGINT: bad trap[edit]

When running ./ds_install, you may get the error trap: 119: SIGINT: bad trap. This can mean that either a) you're not root or b) the script couldn't relaunch itself. If you're not root, run sudo ./dstation-install or get the administrator to do it. If the script needed to relaunch, just run it again.

If you're running Ubuntu you have to open a root terminal e.g. "gksudo gnome-terminal" as "sudo su" won't work. You also need to install the package "libgtk1.2".

dirname: missing operand[edit]

When running dockingstation, you may get the error dirname: missing operand. To fix this, run the commands, each on a seperate line:

export DS_BIN="`whereis dockingstation | awk '{print $2}'`"
sed -i s/11/10/ "`ls -l $DS_BIN | awk '{print $10}'`"

NOTE: You may need to use sudo on the second command, depending on distro and user permissions.

Then run dockingstation as usual.

Libgtk1.2 isn't there[edit]

This can be fixed by acquiring Fedora

gtk+-1.2

and

glib-1.2

package files, and grabbing their contents (if your archiver doesn't let you, try a different archiver, perhaps

p7zip

?).

Note you don't need to actually be running Fedora to use these (or shouldn't need to anyway). Here's some (current but probably likely to go out of date) links that should be helpful:

Assuming you find said package files, you're looking for

/./usr/lib/

- there will be several files (including symlinks) here, drag them all into the directory with lc2e.

Sound initialisation failed (Game will run silently)[edit]

This is because the game has a dependency on an old version of SDL-1.2 (including, for some unusual reason, access to internal SDL audio conversion functions not exposed in modern builds). Furthermore this dependency is a little extreme, and the game will not start if it is not supplied with the SDL-1.2 version it expects (compatibility wrappers won't work). As a result, the game only works with the sound system that old (1999) version of SDL-1.2 expects, the Open Sound System.

Your best hope is probably osspd (an emulator for the Open Sound System on top of the regular Linux sound stack).

Whatever you do, do not install the Ubuntu package oss4-base - it places a set of files into /etc/modprobe.d to inhibit ALSA, effectively bricking sound until they're removed and the system restarted. It then doesn't get rid of said files when removed.

SoundManager::SetMNGFile() failed[edit]

Assuming you managed to overcome the last problem, you'll now probably be faced with this error. The problem at it's core is:

openat(AT_FDCWD, "./Sounds/DS_music.mng", O_RDONLY) = -1 ENOENT (No such file or directory)

On a case-sensitive filesystem, you need to have two copies of this file, one called DS_music.mng and one called ds_music.mng.

Download Mirrors[edit]

Method 2: Wine[edit]

  1. Make sure you have an up to date Wine.
You can find installation instructions for wine-staging at https://wiki.winehq.org/Download and you can check your version with wine winver.
  1. Download and run the Windows Docking Station installer using Wine.
  2. You should now run into the 16-bit colour depth issue. There are two solutions, Xephyr and a game patch.

Xephyr[edit]

  1. Install Xephyr - this is
    sudo apt install xserver-xephyr
    on Ubuntu,
    sudo dnf install xorg-x11-server-Xephyr
    on Fedora,
    sudo pacman -S xorg-server-xephyr
    on Arch.
  2. Run
    Xephyr :2 -ac -screen 800x600x16
    to start Xephyr at 800x600.
  3. From a terminal launched from the game directory (right click - Open in Terminal in most file managers), enter
    DISPLAY=:2 wine engine.exe
    to run the game.

16-bit colour depth patch[edit]

Application of the 16-bit colour depth patch is presently documented at Linux Wine Docking Station Instructions.

Problems[edit]

Installation stopped ; Failed to open uninstallation registry key - Success[edit]

Your Wine version isn't new enough. Wine Staging 7.10 is known to work.

Cannot establish any listening sockets - Make sure an X server isn't already running[edit]

This means the X display number (given as :2) is already in use, so you need to change 2 to a higher number. Do this with both the Xephyr command and the wine command.

Related Links[edit]

Editnorn.png This stub could use more information.