This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
| BOX or DO_MEGA: the announcment will appear in a box and pause the game | |
| P or PAUSE: the announcement will cause the game to pause | |
| R or RECENTER: the announcement will cause the game to recenter (if possible) | |
| A_D or A_DISPLAY: the announcement will be displayed in the main adventure announcement log (and on screen) | |
| D_D or D_DISPLAY: the announcement will be displayed in the dwarf announcement alerts | |
| UCR or UNIT_COMBAT_REPORT: the announcement will be associated to the unit combat/hunting/sparring reports | |
| UCR_A or UNIT_COMBAT_REPORT_ALL_ACTIVE: the announcement will be associated to any active unit combat/hunting/sparring reports, but if there are no reports it will not create one | |
| ALERT: the announcement will cause the alert button to light up | |
| [REACHED_PEAK:A_D:D_D:BOX] |
| MIT License | |
| Copyright (c) 2018 Noel Bundick | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| - name: wait_for http | |
| command: "curl --silent {{ url }}" | |
| register: result | |
| until: result.stdout.find("200 OK") != -1 | |
| retries: 60 | |
| delay: 1 | |
| changed_when: false |
| # Python logger in AWS Lambda has a preset format. To change the format of the logging statement, | |
| # remove the logging handler & add a new handler with the required format | |
| import logging | |
| import sys | |
| def setup_logging(): | |
| logger = logging.getLogger() | |
| for h in logger.handlers: | |
| logger.removeHandler(h) |
This guide assumes you are using Ubuntu and have some basic linux command-line know-how.
Download the server https://www.factorio.com/download-headless/stable:
| <powershell> | |
| winrm quickconfig -q | |
| winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}' | |
| winrm set winrm/config '@{MaxTimeoutms="1800000"}' | |
| winrm set winrm/config/service '@{AllowUnencrypted="true"}' | |
| winrm set winrm/config/service/auth '@{Basic="true"}' | |
| netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow | |
| netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow |