FAQ

From Unknown Horizons - Wiki

Jump to: navigation, search

On this page, we try to collect several problems players or devs came across while trying to run UH in various environments and the solutions we found.

Contents

Game issues

My inhabitants won't advance

  • Lower taxes
  • Provide everything they want (click on a few residential buildings to check)

My inhabitants won't advance beyond level 4

  • Level 4 is the current maximum, the next increment isn't implemented yet. You can contribute graphics (or get others to contribute) and we will see it very soon ;-) More information.

Cattle run and pig sty have no icon / graphics

  • Our graphic artists did not find time to create those yet. The buildings still work though (as does the butchery)! You can help by contributing graphics (or get others to contribute) and we will see it very soon ;-) More information.

Technical problems, crashes

The game won't start because there is something wrong with the settings

  • Remove your settings file (Where is it?)
  • Command line users can alternatively do: unknown-horizons --restore-settings

The editor crashes when I try to launch it: Libertine file not existing

I keep getting "No handlers could be found for logger ..."

  • This is a warning that you get when logging is turned off, just disregard it.

I keep getting "Widget containment fumble ..."

  • This warning is harmless and fixed in our dev version.

I keep getting "AL lib: pulseaudio.c:612: Context did not connect: Access denied"

  • Your OpenAL configuration tries to load pulse before the sound driver you actually use. Edit the drivers= line in the config file (usually found in /etc/openal) and put your sound system on pole position in the list ;-)

Multiplayer/Networking

I can't join a LAN multiplayer game

  • Currently, a master server is used to set up games. Your router might not support 2 players joining from the same network.
  • You can circumvent this by using your own master server (a more convenient GUI-only version of this is planned but not implemented yet):
./server.py -h <your-ip> -p <any-port>
unknown-horizons --mp-master=<server-ip:server-port>

2012

Crash on startup

File "/usr/lib/python2.6/dist-packages/fife/fife.py", line 3531, in createFont
  return _fife.GUIChanManager_createFont(self, *args)
RuntimeError: _[SDLException]_ , SDL reported something bad :: Fatal Error when
loading image into a SDL_Surface: Unsupported image format

This is caused by an old FIFE somewhere in your system. If you compiled the recent FIFE sources from svn, try removing the package fife-python from your system. If you use the latest FIFE release: Sorry, that's not compatible with current UH HEAD anymore. Please check our homepage for a guide on how to compile the svn sources.

2011.3

Problems startup on windows

To fix it, please install cPython to C:\python2 and copy the contents of it to your unknown horizons installdir into the python folder Python27/

Black screen and ATI card

This is a known bug with some older ATI drivers and newest FIFE. To solve, locate <Module name="FIFE"> in your settings file (Where is it?) and add these two new entries:

<Module name="FIFE">
   <Setting name="GLUseFramebuffer" type="bool"> False </Setting>
   <Setting name="GLUseNPOT" type="bool"> False </Setting>
</Module>

Graphical glitches on windows

If you have graphical glitches like this. Please install the last offical driver for your graphic card from the manufacturer's website.

I am using the 1024x600 resolution and the game crashes while opening the settings dialogue

Quite annoying, but there's a commit missing in the last FIFE release.

To fix it, add 1024x600 to the list of valid resolutions; see this commit for the details. No rebuild of FIFE is required! Alternatively, do not open the settings dialogue and directly edit your settings file ;)

Game Doesn't Start: ValueError: plural forms expression could be dangerous

This is probably a bug in the translation you are using (we currently know of the danish translation that has this bug). To solve this, please play in english. You have to edit the settings.xml file manually to fix it.

  • Open your settings.xml (Where is it: #Settings)
  • Change the line
<Setting name="Language" type="unicode">YOURLANGUAGE/System Default</Setting>

To

<Setting name="Language" type="unicode">English</Setting>
  • Save the file
  • Retry starting the game

2011.2

UH won't start

There is a bug related to updating old settings file. This is the most likely cause for UH 2011.2 not starting. The command line output contains sth like this:

Updating settings.xml to the default, it is missing the entry: ($entry) for module unknownhorizons
[...]
AttributeError: 'NoneType' object has no attribute 'show_popup'

The fix is explained in detail here:

Fix for Windows

Remove your old settings file:

C:\Users\USERNAME\.unknown-horizons\settings

a new settings file with default values will be generated by the next start of Unknown Horizons.

2011.1

required lib pyenet not found

Problem:

AttributeError: 'module' object has no attribute 'enet'

Solution:

  • Download the missing file File.png enet.so (depends on your architecture and OS) from our trac: select file
  • Copy it (with root permissions) to the proper path: Folder.png /usr/lib/python2.6/dist-packages/horizons/network/***/enet.so

The tutorial doesn't advance

Problem:

If you saved the game during the tutorial, quit and then loaded it again the tutorial will not advance any further. This has been fixed in the development version and will be fixed with the next release.

Solution:

  • Play the tutorial in one try :)

Settings

The settings file for Unknown Horizons is located here:

  • Windows: File.png %HomePath%\Documents\My Games\unknown-horizons\settings.xml
  • Linux: File.png ~/.unknown-horizons/settings.xml

Settings FIFEdit

The FIFEdit settings file for our editor is located here:

  • Windows: ???
  • Linux: File.png ~/.fife/editor/settings.xml

Savegames

The savegame files for Unknown Horizons are located here:

  • Windows: File.png %HomePath%\Documents\My Games\unknown-horizons\save
  • Linux: File.png ~/.unknown-horizons/save

Logs

The log files for Unknown Horizons are located here:

  • Windows: File.png %HomePath%\Documents\My Games\unknown-horizons\log
  • Linux: File.png ~/.unknown-horizons/log

FIFE

Required lib SDL_ttf not found!

  • Check out #865 including comments for the latest information

sh: o: command not found

  • (This line can appear during the build process, resulting in an error shortly thereafter.)
  • This usually means swig is missing, installing it should fix the issue.

Developer Questions

I want to enable atlas files

  • (Optional, if you want to include new GFX in an atlas) Regenerate the atlas files using FIFE atlas creator tool
    • Use the unknown-horizons folder as ROOT directory for paths
    • Use MAX size of atlases 2048x2048 px
  • Remove old files:
content/atlas.sql
content/actionsets.json
content/tilesets.json

and everything in

content/gfx/atlas
  • Run File.png development/parse_atlas.py
  • In File.png horizons/constants.py, set
class GFX:
	USE_ATLASES = True
  • (Optinal, but necessary for testing) Now you can remove all folders (not the single files/icons) in content/gfx besides the following folder because the game uses atlases now.
content/gfx/atlas
content/gfx/dummies
content/gfx/misc

The single images aren't used anymore

YAML cache crash

This is the last part of a crash caused by our YAML cache being in a messed up state. Delete File.png yamldata.cache in the same folder as your settings to fix it.

 File "horizons/savegamemanager.py", line 409, in get_campaigns
    campaign = YamlCache.get_file(f)
 File "horizons/savegamemanager.py", line 51, in get_file
    cls._read_bin_file()
 File "horizons/savegamemanager.py", line 92, in _read_bin_file
    s = shelve.open(cls.yaml_cache)
 File "/usr/lib/python2.7/shelve.py", line 239, in open
    return DbfilenameShelf(filename, flag, protocol, writeback)
 File "/usr/lib/python2.7/shelve.py", line 223, in __init__
    Shelf.__init__(self, anydbm.open(filename, flag), protocol, writeback)
 File "/usr/lib/python2.7/anydbm.py", line 85, in open
    return mod.open(file, flag, mode)
 error: (22, 'Invalid argument')
Personal tools
Summer of Code 2012