This is a shim that adds missing functions that some old Linux native games, released by Loki Software or Hyperion Entertainment in the late 90s and early 2000s, requires to run on modern systems.
- Sid Meier's Alpha Centauri
- Civilization: Call to Power
- Descent 3
- Heroes of Might and Magic III
- Kohan: Immortal Sovereigns
- Shogo: Mobile Armor Division
- SiN
Make sure you have a 32-bit capable C compiler.
You are most likely running a Linux distribution on a shiny 64 bits CPU, but the binaries you are trying to run are build for the classic 32 bits PC architecture. In the Debian/Ubuntu world, you will need to install the gcc-multilib package.
Build the shim:
$ make
Run the game with the shim:
$ LD_PRELOAD=/path/to/lokishim.so ./smac.dynamic
This isn't heavily tested. There may be other functions missing I have not yet stumbled up on.