Server Real Time Clock
Posted: Fri Sep 21, 2018 8:47 pm
I was sick of not having a clock in our multiplayer server and the mod infrastructure doesn't seem to support collecting system time, so I hacked together something stupid.
https://gitlab.com/smew/factorio-clock
Video
How does it work? It is a separate Python script that runs on the system that is hosting a Factorio headless server. Upon execution it gets the current time, compiles a set of commands to place stone blocks at certain coordinates, then feeds those commands to factorio-init. Cron ensures that it runs every minute, or however often you want it to update.https://gitlab.com/smew/factorio-clock