I hereby claim:
- I am idarthjedi on github.
- I am darthjedi (https://keybase.io/darthjedi) on keybase.
- I have a public key ASAEM793rVtiG5BiXs6vLsmD-54KwXkKsUQHg126T6srRwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import argparse | |
| import math | |
| from binascii import unhexlify | |
| def egcd(a, b): | |
| if a == 0: | |
| return b, 0, 1 | |
| else: |
| def print_alpha_rangoli(size): | |
| alpha = [x for x in 'abcdefghijklmnopqrstuvwxyz'] | |
| output = [] | |
| display = [] | |
| # determine the total width of the alphabet rangoli | |
| width = (size + (size - 1)) + ((size + (size - 1)) - 1) | |
| # for each of the letters in reverse order (starting inside out) | |
| for lin in range(size -1, -1, -1): |
So, with credit to the Factorio wiki and cbednarski's helpful gist, I managed to eventually setup a Factorio headless server. Although, I thought the process could be nailed down/simplified to be a bit more 'tutorialised' and also to document how I got it all working for my future records.
The specific distro/version I'm using for this guide being Ubuntu Server 16.04.1 LTS. Although, that shouldn't matter, as long as your distro supports systemd (just for this guide, not a Factorio headless requirement, although most distros use it as standard now).
The version of Factorio I shall be using is 0.14.20, although should work for any version of Factorio 0.14.12 and higher.
Just a note to newcomers: If there are any issues with the installation steps, people in the comments are doing a good job