|
|
# Running from Source
|
|
|
|
|
|
## Game Dependencies
|
|
|
|
|
|
Before running Trosnoth from the source distribution, you will need to install the following dependencies:
|
|
|
|
|
|
* [Python](http://python.org/), version 3.6 or newer
|
|
|
* [Pygame](http://www.pygame.org/), version 1.7 or newer
|
|
|
* [Twisted](http://twistedmatrix.com/), version 10 or newer
|
|
|
* under Windows, you will also need [win32api](http://sourceforge.net/projects/pywin32/)
|
|
|
|
|
|
Under Debian or Ubuntu, you can install these dependencies by typing:
|
|
|
```
|
|
|
sudo apt-get install python3 python3-pygame python3-twisted
|
|
|
```
|
|
|
|
|
|
Under Fedora, CentOS or RHEL, type:
|
|
|
```
|
|
|
sudo yum install python3 python3-pygame python3-twisted
|
|
|
```
|
|
|
|
|
|
If these instructions don't work for your favourite OS, follow the links above to download and install the libraries.
|
|
|
|
|
|
|
|
|
## Getting the Source
|
|
|
|
|
|
You can download the latest released source distribution from [trosnoth.org](http://trosnoth.org/). To install the game, simply unzip the game, navigate to the unzipped game, and type:
|
|
|
```
|
|
|
python setup.py install
|
|
|
```
|
|
|
|
|
|
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 a Trosnoth Server
|
|
|
|
|
|
After you've downloaded and installed Trosnoth from source, you can run a Trosnoth server by typing "`trosnoth-server`". The server has a few additional dependencies, including [Django](https://www.google.com.au/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi4r-fNl8PRAhWImpQKHcVdBn8QFggbMAA&url=https%3A%2F%2Fwww.djangoproject.com%2F&usg=AFQjCNGAkwU79_tDTUz9QJ2qNnMTWbsaXw&sig2=jsFH8Narw9PVLM1Nm5i91g) (Trosnoth 1.9 requires Django 1.8).
|
|
|
|
|
|
## Old Versions
|
|
|
|
|
|
See [Trosnoth on PyPI](http://pypi.python.org/pypi?%3Aaction=search&term=trosnoth&submit=search) for old source distributions. |
|
|
\ No newline at end of file |