Comment by weberer
3 years ago
I like to play Factorio, but too often lose track of time while playing. There's no clock in the game's UI, and no way to access the system's time through the mod API. So I made a script that runs as a process on the host machine that every minute, sends commands to the game's process to build a clock in the center of the map out of concrete. Its pretty cool because you can also clearly see the time from the mini map.
Devs ruining your fun I'm afraid https://www.reddit.com/r/factorio/comments/s7i4xu/1151_added...
This has big Anno-series "You've been playing for [x] hours!" notification energy. I love it. Both of those game series are incredible time sinks.
> sends commands to the game's process
You can do that? Is there an API?
I was using factorio-init to start the process. That script makes it easy to send commands to the in-game console.
https://github.com/Bisa/factorio-init
https://wiki.factorio.com/Console