RimWorld

RimWorld

31 ratings
Better Time Format (Continued)
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
788.608 KB
Dec 3, 2024 @ 11:49am
Dec 30, 2024 @ 2:47pm
3 Change Notes ( view )

Subscribe to download
Better Time Format (Continued)

In 1 collection by Mlie
Mlie's resurrected mods
909 items
Description

Update of Netrves mod https://steamcommunity.com/sharedfiles/filedetails/?id=2072773208

- Now uses the 12-hour clock setting from the game-preferences instead of a separate mod-option



[dsc.gg]
[github.com]


Notice
Due to focus on other project and my lack of interest in RimWorld for now, I'm not maintaining my mods for the time being. They are all open source, so feel free to fork them!

Better Time Format
Turn that boring 18h to whatever you like! Safe to add and remove to savegames!

Have you ever wanted to see what in-game time your colony is at, but were bothered by that "18h" display?

Well then I have the mod for you! Better Time Format changes the display of the clock to render in a more satisfying way, like "18:05" or "12am" or "8 o'clock" or...whatever! See the minutes and even seconds zoom past when you accelerate your game!

YOU HAVE THE CONTROL! You can set up the time display however you like, using simple placeholders you can type in your own preferred time format, ie. "HH:MM" becomes "07:15"! Read the mod settings for more information!

Note regarding no time: Just reopen the mod settings menu once, the last update changed where a few internal variables are stored and those need to be updated once.

Supported Versions and Requirements
This mod is made for RimWorld 1.2 and up, and requires Harmony 2.x

Parsing and Performance
The parsing is somewhat simple, on purpose. I traded accuracy for performance, while something like a regular expression would be more accurate, it isn't something you want to use for a game. So please excuse if you sometimes get weird displays with certain inputs. It should work fine for 99% of the cases.

This mod modifies an UI drawing method and on top of that also pulls some strings to get the user format going. I have taken the best precautions I could take to make sure everything runs as optimal as I can see.

The performance at worst is on par with the original function, and sometimes even better, but spikes happen every now and then. Unless something seriously broke, this mod should not be able to pose any problem.

Special Thanks
Thanks to all the helpful people over at the RimWorld Discord who have helped me a lot.


  • See if the the error persists if you just have this mod and its requirements active.
  • If not, try adding your other mods until it happens again.
  • Post your error-log using HugsLib or the standalone Uploader and command Ctrl+F12
  • For best support, please use the Discord-channel for error-reporting.
  • Do not report errors by making a discussion-thread, I get no notification of that.
  • If you have the solution for a problem, please post it to the GitHub repository.
  • Use RimSort[github.com] to sort your mods

| tags: clock, format
12 Comments
gold_talisman Mar 5 @ 3:45pm 
Thanks for this Mlie ♥
CurtimusPrime92 Dec 30, 2024 @ 2:55pm 
neat thanks for all your work that you do for the RW community. and thanks for the quick fixes i posted on here only expecting you to fix it eventually if you ever get around to it and you're like "hold my [preferred beverage of choice]... and fixed"
Mlie  [author] Dec 30, 2024 @ 2:49pm 
@CurtimusPrime92 Should work better now, seems the original calculation switched at 60% of 24 hours; at 14,4 for some reason. Never used the format myself but hopefully its correct now.
CurtimusPrime92 Dec 30, 2024 @ 2:16pm 
it seems usually around noon and midnight it sometimes gets stuck at 24 hour mode and and doesnt seem to catch that it should be in 12 hr mode sometimes till around 2:45pm or 2:45am
Mlie  [author] Dec 30, 2024 @ 2:13pm 
@CurtimusPrime92 Can you give an example of such a time of day?
CurtimusPrime92 Dec 30, 2024 @ 2:10pm 
correction it seems to fall back to 24 hour mode at random times of the day
Mlie  [author] Dec 30, 2024 @ 2:09pm 
@CurtimusPrime92 Not when I test it. Perhaps you are looking at the game clock and not the custom clock added by this mod?
CurtimusPrime92 Dec 30, 2024 @ 2:05pm 
@mlie that fixed am/pm parsing but now "HH:MM" or "H:MM" only shows hour in 24 hour mode regardless of 12hr setting ie "14:35" instead of "02:35" or "2:35" depending on formatting
Mlie  [author] Dec 30, 2024 @ 1:48pm 
@CurtimusPrime92 Should work better now, had some references to the old mod-specific 12-hour clock setting before the change to using the game preference instead
CurtimusPrime92 Dec 30, 2024 @ 12:13pm 
12 hour mode toggle isn't working default formatting is "HH:MM" but if i toggle 12 hour mode and change formatting to "HH:MM N" it shows up as "06:35 N" instead of "06:35 AM" like it is supposed to