Compiling for Linux (UFO2000)
Introduction
UFO2000 is written in portable C, so of course it is also possible, to compile it on linux. The following instructions have been tested on an Ubuntu 14.04 x64 without any additional software or libraries installed by the user. The apt-get
-commands should work on any Debian-related linux. If you run a different distribution, you may need the corresponding commands and library-names.
Requirements
In principle, you only need a few libraries like allegro or dumb:
build-essential
liballegro4.2-dev
libexpat1-dev
zlib1g-dev
libfreetype6-dev
libdumb1-dev
(only necessary for ogg-music-files)libpng12-dev
(usually already there, at least with an Ubuntu 14.04)
For the server you (only) need these:
libhawknl-dev
libsqlite3-dev
To install them all at once, run:
sudo apt-get install build-essential liballegro4.2-dev libexpat1-dev zlib1g-dev libfreetype6-dev libdumb1-dev libpng12-dev libhawknl-dev libsqlite3-dev
It is also recommended, to have X-COM and TFTD original files at hand for the game, but it is not necessary for playing.
Compiling UFO2000
So now we're ready to compile UFO2000. For both, game and server, you will need the source-files:
svn checkout svn://svn.code.sf.net/p/ufo2000/code/trunk ufo2000-code cd ufo2000-code
Compiling the server
For this there is only one command necessary:
make server
That's it. You can now start it on demand or us it in an init-script of some kind. There's also the option to run it in demonized mode, but there have been [reports of problems with that], so one might refrain from using it.
Compiling the game
You have two options for compiling UFO2000. Easy way with ogg-music-support:
make
Or if you prefer not to have ogg-support:
make no_dumbogg=1
Getting ready to play
UFO2000 doesn't exactly rely on files from original X-COM, but if you have it, or TFTD for that matter, you might want to copy the files into the folders XCOM
and TFTD
after compilation. You will have a much better game experience. For further information, see Quick guide to UFO2000 online playing. One piece of warning: The game needs writing-permissions to the games own folder in order to save settings, squad-files and replays. So do not place it somewhere, useres don't have write permissions.