Skip to content
Kilian Köppchen edited this page May 31, 2013 · 19 revisions

LAN games (Running your own server)

Simply run the file server.py with the required option -h to start a local running server or without any options to show a little help, with all available options. Download the file if its not included in the package you downloaded. For the -h option the best case is to use the IP the computer has in your network, only use the loopback device if you want to connect multiple clients from the same computer as the server.

Example Linux

user@computer:~/unknown-horizons$ python2 server.py -h 192.168.178.23
[2013-05-30 20:30:00,040] [INFO] Starting up server on 192.168.178.23:2002
[2013-05-30 20:30:00,045] [DEBUG] Entering the main loop...
Connect the clients

Start the client with the option

--mp-master=<ip:port> Specify alternative multiplayer master server.

Example Windows

First make sure both ends of the network cable are plugged in and you have the correct server.py file. If you installed Unknown Horizons to "C:\Program Files\Unknown Horizons" and if your ip-address is 192.168.1.1 then you should use:

"C:\Program Files\Unknown Horizons\python\python" "C:\Program Files\Unknown Horizons\server.py" -h 192.168.1.1

to start the Unknnown Horizons server.

Connect the clients

To connect to the server the clients should use:

"C:\Program Files\Unknown Horizons\python\python.exe" "C:\Program Files\Unknown Horizons\run_uh.py" --mp-master=192.168.1.1:2002


Settings

The settings file for Unknown Horizons is located here:

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

Logs

The log files for Unknown Horizons are located here:

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

Savegames

The savegame files for Unknown Horizons are located here:

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

On Mac, by default you will not be able to see this directory as it is hidden (due to the '.' before unknown-horizons).

  • If you need to change this you can use defaults write com.apple.Finder AppleShowAllFiles TRUE followed by killall Finder so that the changes take effect. You should then be able to find the folder and files in your Finder view.
  • To reverse the changes, use defaults write com.apple.Finder AppleShowAllFiles FALSE again, followed by killall Finder.

My game crashes!

Check our Problem database for whether you find something similar. If not, ask us on IRC and provide the traceback: http://bpaste.net/+pytb

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 tier 4

Tier 4 is the current maximum, the next tier isn't implemented yet. You can contribute graphics (or get others to contribute) and we will see it very soon ;-) [More information here!] (Artists)

Some buildings have no proper graphics

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

Clone this wiki locally