Running the game

From UFO:AI

Contents

General

You need a 3D graphics card and a suitable driver which is installed on your system to run UFO:AI. There is no software renderer available.

You can use commandline parameters to start the game.

  • +map [mapname] will automatically start the given map
  • +set [cvar] [value] will automatically set the cvar from start

Examples:

  • +map farm08n starts the map farm08n
  • +set r_mode 6 sets the cvar r_model to value 6

Every available command can be executed and every available cvar be set in this way from the commandline.

Note: For UFOAI 2.3 the way maps are specified on the command-line will change. If you want to test maps in the current development version see Mapping/Random_map_assembly and use the command presented there with a '+' prepended on the command-line.

SVN version

You have grabbed the SVN version and now you are lost? Look at the articles at compiling the source. There you will find some more information about several plattforms.

Windows

Missing dll's for start

You might come into trouble when you try to start ufo.exe. The binary won't be able to load some dll's that are needed. These are:

  • iconv.dll
  • intl.dll
  • jpeg62.dll
  • SDL.dll
  • SDL_ttf.dll
  • zlib1.dll
  • libpng13.dll

Put them in the root dir - see directory tree for more information.

ref_glxxx.dl

Recently we've changed the name of the renderer lib for windows. You can see a debug renderer dll by an appended d. The name is ref_gl32.dll for 32bit Windows systems and ref_gl64.dll for 64bit Windows systems.

Links

Linux

(get)text issues in the GUI

If you see a lot of the text in the GUI that looks like "b_radar_txt", try running the game with the option "+set s_language en_US". This issue and work-around was reported on a Gentoo Linux with LINGUAS stripped down.

error while loading shared libraries: libjack-0.100.0.so.0

The 2.1 Linux installer (ufoai-2.1-linux.run) installs a 'ufo' binary which requires libjack to be present on your system. There are three ways to overcome this problem:

  1. install libjack - how you do this depends on your distribution
  2. compile ufo:ai from sources and replace the installed 'ufo' binary with the newly compiled one
  3. wait for a new version to be released with a fix for this

For more info about this problem see the The 2.1 was compiled against glibc_2.4 thread in the forums.

Distribution notes

Interface

Key Bindings

Console

Note: In windowed mode, entering the console (with ^) will free the mouse cursor.

Also see the console key bindings in the console article.

project-navigation