It's About Time!


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

Utilities
1 year, 23 days ago
2.0
3.72K

i Opening Factoriopedia on left-click

7 days ago
(updated 7 days 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).

3 days 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! :)

New response