FS2020 - Bool variables
-
- Posts: 5336
- Joined: Thu Jul 27, 2017 12:22 am
Re: FS2020 - Bool variables
All behave like there's the need to make SimConnect communications more asynchronous on Asobo / MS side : that's however the tricky part for 3PP tools and APPS that required more smooth updates on their side
Gilles
Gilles
-
- Posts: 5336
- Joined: Thu Jul 27, 2017 12:22 am
Re: FS2020 - Bool variables
If some not already tried using the SimvarsWatcher tool and made attempt to enter Float values, we're facing something weird and not obvious which has to be explained :
even with my windows localization already set to US_en, to enter Floats values in the [Value] field, we have to use the comma (",") in place of the dot/decimal point as a separator (".") which is refused in the field display
I guess this is hard-coded in the tool : to be confirmed
I've made an attempt and not found a way to set Radios frequencies which would be using either Mhz or BCD16, however without any success through the tool...
Gilles
even with my windows localization already set to US_en, to enter Floats values in the [Value] field, we have to use the comma (",") in place of the dot/decimal point as a separator (".") which is refused in the field display
I guess this is hard-coded in the tool : to be confirmed
I've made an attempt and not found a way to set Radios frequencies which would be using either Mhz or BCD16, however without any success through the tool...
Gilles
Last edited by SimPassion on Tue Aug 25, 2020 7:52 am, edited 1 time in total.
Re: FS2020 - Bool variables
Thanks awesome! Thanks for sharing that.SimPassion wrote: ↑Mon Aug 24, 2020 8:36 pm Just to add
There's plenty of .simvars sample files that can be loaded from "\MSFS SDK\Samples\SimvarWatcher\Simvars"
And the same @JackZ for the Simvarwatcher tool reference.
Re: FS2020 - Bool variables
Les devs d’Asobo sont Francais!SimPassion wrote: ↑Mon Aug 24, 2020 10:50 pm If some not already tried using the SimvarsWatcher tool and made attempt to enter Float values, we're facing something weird and not obvious which has to be explained :
even with my windows localization already set to US_en, to enter Floats values in the [Value] field, we have to use the comma (",") in place of the dot/decimal point as a separator (".") which is refused in the field display
I guess this is hard-coded in the tool : to be confirmed
I've made an attempt and not found a way to set frequencies which would be using either Mhz or BCD16, however without any success through the tool...
Gilles
My YouTube Chanel on the A320 (Real SOPs by an Airline Pilot IRL):
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
https://www.youtube.com/playlist?list=P ... 0Q6SBASRqJ
Re: FS2020 - Bool variables
Hi,
This thread is fine.
Do you know on which hard drive you installed FS2020?
Corjan
This thread is fine.
Do you know on which hard drive you installed FS2020?
Corjan
-
- Posts: 5336
- Joined: Thu Jul 27, 2017 12:22 am
Re: FS2020 - Bool variables
You're right Jacques, I suspected that and opened the Visual Studio solution file this night but didn't found anywhere where they set this. I guess it should be something around input localization. Indeed, not took enough time on my own for this yetJackZ wrote: ↑Tue Aug 25, 2020 7:52 amLes devs d’Asobo sont Francais!SimPassion wrote: ↑Mon Aug 24, 2020 10:50 pm If some not already tried using the SimvarsWatcher tool and made attempt to enter Float values, we're facing something weird and not obvious which has to be explained :
even with my windows localization already set to US_en, to enter Floats values in the [Value] field, we have to use the comma (",") in place of the dot/decimal point as a separator (".") which is refused in the field display
I guess this is hard-coded in the tool : to be confirmed
I've made an attempt and not found a way to set frequencies which would be using either Mhz or BCD16, however without any success through the tool...
Gilles
Additionally even after modifying the reference path for the SimConnect SDK path in project Simvars [Properties/Build Events] section, the solution wouldn't compile right away. Something to be investigated further
Gilles
-
- Posts: 5336
- Joined: Thu Jul 27, 2017 12:22 am
Re: FS2020 - Bool variables
Found it in "MainWindow.xaml.cs" !
private void NumberValidationTextBox(object sender, TextCompositionEventArgs e)
{
string sText = e.Text;
foreach (char c in sText)
{
if ( ! (('0' <= c && c <= '9') || c == '+' || c == '-' || c == ',') )
{
e.Handled = true;
break;
}
}
}
So the best should be to add a session localization reading before and use it in the code
waiting for this, better to use this, as English is the most used language and further SimConnect wont accept Float entry with other char than dot (decimal point)
Gilles
private void NumberValidationTextBox(object sender, TextCompositionEventArgs e)
{
string sText = e.Text;
foreach (char c in sText)
{
if ( ! (('0' <= c && c <= '9') || c == '+' || c == '-' || c == ',') )
{
e.Handled = true;
break;
}
}
}
So the best should be to add a session localization reading before and use it in the code
waiting for this, better to use this, as English is the most used language and further SimConnect wont accept Float entry with other char than dot (decimal point)
Code: Select all
private void NumberValidationTextBox(object sender, TextCompositionEventArgs e)
{
string sText = e.Text;
foreach (char c in sText)
{
if ( ! (('0' <= c && c <= '9') || c == '+' || c == '-' || c == '.') )
{
e.Handled = true;
break;
}
}
}
-
- Posts: 5336
- Joined: Thu Jul 27, 2017 12:22 am
Re: FS2020 - Bool variables
It looks like we can't compile this sample, even if adjusted, because I guess we don't get the proper SimConnect installer that would fit current MFS
Here's only previous SimConnect assemblies install from FSX and P3D only :
So, for the moment and as also confirmed by Asobo with incomplete state of SDK, unless it would be fixed at the source, we can't use projects using Managed SimConnect library
Gilles
Here's only previous SimConnect assemblies install from FSX and P3D only :
So, for the moment and as also confirmed by Asobo with incomplete state of SDK, unless it would be fixed at the source, we can't use projects using Managed SimConnect library
Gilles
-
- Posts: 5336
- Joined: Thu Jul 27, 2017 12:22 am
Re: FS2020 - Bool variables
I eventually get rid of this by replacing reference targeting the new Managed Library and compilation went fine
Here's a custom Simvars Watcher Tool :
Gilles
Here's a custom Simvars Watcher Tool :
Gilles