Running from Source
Installing Python
Trosnoth requires Python, version 3.6 or newer.
Under Debian or Ubuntu, you can install Python using:
sudo apt-get install python3
Under Fedora, CentOS or RHEL, type:
sudo yum install python3
On Windows or Mac, use the latest Python installer from [trosnoth.org].
Running a released version from source
You can install the source code of a released version of Trosnoth using:
python3 -m pip install trosnoth
After this, you should be able to run the game from a shell window by typing "trosnoth
". If you want desktop / menu shortcuts, you'll have to set them up yourself.
Running from the repository
For the latest unreleased dev code, you can clone the repository.
To install Trosnoth's dependencies, from the root folder of the repository, type:
python3 -m pip install -r requirements
(You might want to do this in a venv to isolate it from the dependencies of your other Python projects.)
To run Trosnoth from the repository once the dependencies are installed, you can use the script run-trosnoth.py
in the root of the repository.
Running a Trosnoth Server
After you've installed Trosnoth from source, you can run a Trosnoth server by typing "trosnoth-server
" (or using run-auth.py
from the repository root. The server has a few additional dependencies, including Django (Trosnoth 1.9+ requires Django 1.8).
Old Versions
See Trosnoth on PyPI for old source distributions.