This mod provides a mostly reliable way to get the 24-hour time of day in the game. It does so by calculating the 12-hour time from the Finland-shaped clock in the player's house, then using the Sun's rotation to decide whether it's the morning or the afternoon.
I've also included a plugin that displays the 24-hour time of day in the upper right corner. I'll probably release an actual physical clock in the near future, I just need to figure out how to draw a GUI in world space.
How to use
I've also included a plugin that displays the 24-hour time of day in the upper right corner. I'll probably release an actual physical clock in the near future, I just need to figure out how to draw a GUI in world space.
How to use
- Open your mod in Visual Studio.
- Right click on the project > Add >Existing Item...
- Navigate to TwentyFourClock.cs and open it.
- Add using TwentyFourClock; to the using statements.
- Create a member field of type Clock24 and instantiate it in the OnLoad method.