[Mod Request/Help] 24h clock

+
Hello. I'd really just like my in-game clock to be 24h, nothing more. Googling didn't find much. So I poked around some scripting files but since I have no experience in the matter I can't really do much, perhaps a good-willed person could help me?
 
hudModuleMinimap2.ws

b24HRFormat = GetCurrentTextLocCode() != "EN";

Play in french for 24h format or try to change

b24HRFormat = GetCurrentTextLocCode() != "FR";

or

b24HRFormat = GetCurrentTextLocCode() = "EN";

Not tested.
 
Last edited:
hudModuleMinimap2.ws

b24HRFormat = GetCurrentTextLocCode() != "EN";

Play in french for 24h format or try to change

b24HRFormat = GetCurrentTextLocCode() != "FR";

Not tested.

Thanks for replying, I tried changing that line of code to a few different languages but it remained the same unfortunately.

Is the clock always stuck to 12h if the game is in English? I hope not :/
 


In French
 
No still 12h, even when trying other languages instead of EN in the text document :/
 
Code:
//        if ( !b24HRFormat )
//        {
//            if (hours >= 12)
//            {
//                if ( hours > 12 )
//                    hours -= 12;

//                timePeriod = " PM";          
//            }
//            else
//            {
//                if ( hours == 0 )
//                    hours = 12;

//                timePeriod = " AM";
//            }      
//        }

change for this code

 
The code you posted seems to be the same what as is already there.
Code:
        if ( !b24HRFormat )
        {
            if (hours >= 12)
            {
                if ( hours > 12 )
                    hours -= 12;

                timePeriod = " PM";           
            }
            else
            {
                if ( hours == 0 )
                    hours = 12;

                timePeriod = " AM";
            }       
        }
 
put this "//"
in front to disable the code

don't change original script, create new script in mods folder
copie past original file in your mods script folder yourmod\content\scripts\game\gui\hud\modules\hudModuleMinimap2.ws
edit lines in script.
then scan with WitcherScriptMerge.
 
Last edited:
Top Bottom