Missing Variables & Incorrect Decimal Place Settings #66
-
Hi there, I have already been quite successful setting up new TP pages using this plugin, but it appears that some variable outputs, such as one for the Cessna 172 transponder code as an example, are not available in the GUI drop down boxes or in the State.ini file? Further, the format of some variable outputs such as the NAV1/2 active and standby values are shown to three decimal places and not two as per the real aircraft? I have tried to alter these in the State.ini file, but to no avail. Could you please advise therefore:-
Thanks and regards Paul |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Hi Paul, There is actually a whole article about it in the Wiki: Since you mentioned radio, you may also find this set of custom definitions interesting (but read the above first so you know what this is all about): Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hi Max
Many thanks for your quick response, appreciated 😊
I have already looked through the excellent pages you have provided on this, but can’t find out how to create new output variables and/or alter output variable decimal place settings? Obviously I’ve tried amending the State.ini file, but no results so far.
However, I’ll have another look through the information already out there, but if I still can’t fathom it out, perhaps I could get back in touch?
Kind regards
Paul
|
Beta Was this translation helpful? Give feedback.
-
Hi Max
Yes, thanks for the clarification about the State.ini file, as it happens, I’ve actually just read that part on your web page lol!
I’ll have another look in the file to see what I can do there?
Initially I was altering the string format setting for the NAV1 active and standby variables in the State.ini file from 0.000# to 0.00#, but now I understand that the State.ini file doesn’t control the plugin, it’s a result of its output!
Thanks again and take care
Paul 😊
|
Beta Was this translation helpful? Give feedback.
-
Forgive me Max, I actually learned how to write bespoke Arduino sketch codes for my YouTube channel on the subject of home flight simulators, so I’ll get there with this eventually!
As an exercise, I put the below lines of code in the State.ini file, so should I see this “Transponder Code” output variable as an available option in a drop down box when working in Touch Portal? So far, I can’t see this anywhere?
[TransponderSquawkCode]
CategoryId = Communication
Name = "Transponder squawk code"
SimVarName = "TRANSPONDER CODE:1"
Unit = "BCD16"
StringFormat = "0.000#"
DeltaEpsilon = 0.0009
Also as indicated before, I changed the NAV1 active and standby string format code from 0.000# to 0.00# in the State.ini file, but in Touch Portal, the variable still displayed three decimal places??
Thanks for your help my friend 😊
|
Beta Was this translation helpful? Give feedback.
-
Hi Max
Apologies, I’ve been staring at this stuff all week and at my age of 67, I think I’m getting a bit punch drunk lol!
I think it’s your last comment that I didn’t appreciate, in that you have to re-load the .ini file for any changes to become effective, if I understand you correctly?
Thanks again and I’ll now just crack on and try not to bother you again with silly questions 😊
Kind regards Paul
|
Beta Was this translation helpful? Give feedback.
Hi Paul,
There is actually a whole article about it in the Wiki:
https://github.com/mpaperno/MSFSTouchPortalPlugin/wiki/Using-Custom-States-and-Simulator-Variables
Since you mentioned radio, you may also find this set of custom definitions interesting (but read the above first so you know what this is all about):
https://github.com/mpaperno/MSFSTouchPortalPlugin/wiki/assets/pages/CustomRadioStates.ini
(more details here: https://github.com/mpaperno/MSFSTouchPortalPlugin/wiki/Pages-Buttons-and-Graphics#radio-stack-v2-4-x-7-layout-phone-size)
Cheers,
-Max