Main Menu

[CLOSED] No enroute traffic - Region/Decimal Symbol

Started by Wendl, October 03, 2023, 06:28:55 AM

Previous topic - Next topic

Wendl

I've set my Windows 11 to use the English display language but the German Format (e.g. 24h clock, DD.MM.YYYY, and the ',' as decimal symbol).
It seems that this causes faults with the flightplans and no enroute traffic is injected. Once I change the decimal symbol to '.' and restart Traffic Controller enroute traffic is injected.

Is that bug known already?

Kaiii3

Yes, it is a known bug. But so far I habe no clue how to fix it...

Wendl

Has been ages since I programmed something on Windows and I don't know the language you're using but getting the current system locale / decimal symbol with something like

https://learn.microsoft.com/en-us/dotnet/api/system.globalization.numberformatinfo.numberdecimalseparator?view=net-7.0

or

https://www.codeproject.com/Questions/188004/Decimal-Seperator-change-in-c

may help.

Kaiii3

the issue seems something related to the SimConnect interface, since we provide a default C# double value to the SimConnect API... I normally have those issues with "." and "," only when we work with decimals converted to strings...

Wendl

Thanks for that detail - that sucks.
If SimConnect is not respecting the locale there's not much you can do.

Maybe I'll try to play around with SimConnect_AICreateEnrouteATCAircraft if I find some time at the end of the year.

Props to you and the team, the advances during the last few years have been amazing!