Alpha India Group

Alpha India Group => TC - Support => AIG Traffic Controller => AIG Software => TC Solved Issues => Topic started by: Wendl on October 03, 2023, 06:28:55 AM

Title: [CLOSED] No enroute traffic - Region/Decimal Symbol
Post by: Wendl on October 03, 2023, 06:28:55 AM
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?
Title: Re: No enroute traffic - Region/Decimal Symbol
Post by: Kaiii3 on October 03, 2023, 06:39:44 AM
Yes, it is a known bug. But so far I habe no clue how to fix it...
Title: Re: No enroute traffic - Region/Decimal Symbol
Post by: Wendl on October 03, 2023, 06:46:52 AM
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.
Title: Re: No enroute traffic - Region/Decimal Symbol
Post by: Kaiii3 on October 03, 2023, 07:40:17 AM
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...
Title: Re: No enroute traffic - Region/Decimal Symbol
Post by: Wendl on October 03, 2023, 08:17:00 AM
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!