Author Topic: Aurora-Loader with Date-format and comma fix  (Read 1052 times)

0 Members and 1 Guest are viewing this topic.

Offline Reiko (OP)

  • Leading Rate
  • *
  • Posts: 6
  • Thanked: 9 times
  • do, or do not - there is no 'try' . . .
Aurora-Loader with Date-format and comma fix
« on: November 21, 2024, 05:15:45 PM »
I guess this will help some people.


What is it ?

a powershell script to temporarily set (and restore) the date-format and comma-settings for the game and start it.



how to use:

put the files in your Aurora-game-folder (where the exe is)
then start 'runAurora.bat' for the vanilla game or 'runAuroraPatch.bat' for a modded game.
best make a shortcut to that batch-file somewhere.



how it works:

it reads the current settings for date-format and decimal-delimiter (dot or comma) from the Windows registry,
then it sets these to what the game needs for 30 seconds - and starts the game.
then it restores the initial settings, which is fine, because the game reads the settings only at start and not while running.



but why ??

When the game starts, it (sadly and for no good reason) reads the Windows-settings for date-format and delimiters for decimal and thousands (like in '2,000,000.34') from the Windows-Registry and then uses these in the game-session.

If the date-format is too long (eg 'Thursday, 01. December, 2055') it can lead to parts of the date not being visible in some places.

If your local number-format uses a comma as decimal-delimiter (e.g. '2.000.000,34') it will lead to all kinds of serious bugs making the game unplayable.

As serious as this is - the dev made clear this will never be changed afaik.
So, since the beginning, many people have to manually change these Windows settings for playing the game - which, if you don't change them back afterwards, can lead to serious problems elsewhere - for example when entering data in Excel-sheets.



how it was done:

it is based on a script from here  https://aurora2.pentarch.org/index.php?topic=11237.0

but the download there isn't available anymore and you had to edit the path in the script on that version.




any feedback will be welcome . . .
« Last Edit: November 25, 2024, 09:25:07 AM by Reiko »
do, or do not - there is no 'try' . . .
 
The following users thanked this post: thpapak, WebGremlin, serger, Gniwu, King-Salomon, skoormit, Mark Yanning