It's About Time!


Displays a clock with the in-game time on the current planet.

Utilities
14 days ago
2.0 - 2.1
4.69K
Environment

i Opening Factoriopedia on left-click

5 months ago
(updated 5 months ago)

I realise it's been quite a long time and you probably know how to do this already, but just in case, LuaPlayer::open_factoriopedia_gui is used to open Factoriopedia to a given LuaPrototypeBase like this:

player.open_factoriopedia_gui(prototypes.space_location["nauvis"])

As for alternate click functions... maybe you could toggle a coloured display, so the time turns green when the planet is generating power (daytime for solar panels on Nauvis, nighttime for lightning on Fulgora).

5 months ago

Thank you for the hint! That function didn't exist yet when I created the mod, and apparently I didn't notice it in the changelogs or didn't think of this mod when I read it. ^^ I'll implement that in the next update.

About the colored display, I had some similar ideas like showing a thunderstorm warning icon on Fulgora shortly before and during nighttime. A solar power indicator would be a good idea too. Not sure yet what the best way to display that would be, coloring the text definitely would be an idea, but it could also be confusing/inconsistent when considering Fulgora: Should it be consistent with other planets and display green during the day? But you usually generate power during the night, so inverting it might make sense - but also, nighttime is dangerous, so it should be red to signalize danger? Very unsure about the best approach here 😅 But I might try some things out.

Thanks for the feedback! :)

14 days ago

Since the last update, left-clicking the planet button will open Factoriopedia. Thanks again for the hint. :)

I'm still thinking about the other ideas, but haven't got time and motivation yet to implement them. ^^

New response