Outils pour utilisateurs

Outils du site


lokigames:kohan

Kohan: Immortal Sovereigns

Install & patch the game

To install the game, mount your CD & run the installer with linux32 from the util-linux package :

# mount /dev/cdrom /media/cdrom
$ linux32 bash /media/cdrom/setup.sh

Apply the first patch :

$ linux32 bash kohan-1.2.0-x86.run

Apply the last released patch :

$ linux32 bash kohan-1.3.1-x86.run

Patch the binary to add a dependency on libX11.so.6 (required if you system SDL1.2 is in fact sdl12-compat)

cd <installation-directory>
patchelf --add-needed libX11.so.6 ./kohan.dynamic

Game crash

./kohan.dynamic greets you with “Segmentation fault”

This is due to a change in libgcc that broke some binaries that where compiled with gcc 2.95 in an unusual way (like compiling C++ code with gcc instead of g++).

Option a

You can use a little shim that add back functions required by a bunch of old games like this one.

LD_PRELOAD="/path/to/lokishim.so" ./kohan.dynamic

Option b

The missing function can be found in a very old libstdc++, and you can use libstdc++-3-libc6.2-2-2.10.0.so from https://www.improbability.net/loki/

LD_PRELOAD="./libstdc++-3-libc6.2-2-2.10.0.so" ./kohan.dynamic
lokigames/kohan.txt · Dernière modification : 2024/04/22 17:56 de twolife

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki