Server Real Time Clock

Doesn't fit in the other categories, like libraries, small fixes or modpacks.
Post Reply
smew
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Oct 24, 2016 7:04 pm
Contact:

Server Real Time Clock

Post by smew »

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.

Image
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

User avatar
Sparen
Inserter
Inserter
Posts: 33
Joined: Thu Jun 30, 2016 1:25 am
Contact:

Re: Server Real Time Clock

Post by Sparen »

This is quite amazing, in my opinion. Looks pretty good and should definitely be useful - especially to those who take a look and realize that they've been playing Factorio for the past six hours!

Post Reply

Return to “Mod Packs / Libs / Special Interest”