• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX VOR instrument code ?

Check the FSX SDK's "Simulation Variables" list. All secondary systems use 2 for the index parameter, e.g.:

NAV CDI:index

NAV CDI:2 /* uses NAV2 tuned frequency */
 
I will do that Fr.Bill, thanks much. Strange as it might seem, last night I was looking through the docs and I couldn't see what to replace the 'index' parameter with!! That's how much I know about xml!

Thanks again.

Skip
 
Hi Again Fr. Bill, I pasted below two pieces of code that you kindly posted over on the FFDS Design Forum some time ago. In the first example of the HSI Glideslope Indicator, (which of course was created for the 'NAV1' system) I am confused as to where the code mentions the 'NAV1' system and thus I am confused as to what to change to make it apply to the 'NAV2' system ! The variable is 'HSI GSI NEEDLE', the SDK doesn't mention an index for that particular variable and what is the term 'Number' indicating ? The same goes for the second piece of code for the HSI CDI NEEDLE. I tried various combinations of adding '2' but nothing seemed to work, I realise I was 'shooting in the dark' tho :o

Can you recommend any xml tutorials ?

Thanks for any help.

Skip


<PartInfo>
<Name>C310_HSI_needle_GSI</Name>
<AnimLength>238</AnimLength>
<Animation>
<Parameter>
<Code>(A:HSI GSI needle, Number) 119 + </Code>
<Lag>300</Lag>
</Parameter>
</Animation>
</PartInfo>

<PartInfo>
<Name>C310_HSI_needle_CDI</Name>
<AnimLength>254</AnimLength>
<Animation>
<Parameter>
<Code>(A:HSI CDI needle, Number) 127 + </Code>
<Lag>300</Lag>
</Parameter>
</Animation>
</PartInfo>
 
I am confused as to where the code mentions the 'NAV1' system and thus I am confused as to what to change to make it apply to the 'NAV2' system ! The variable is 'HSI GSI NEEDLE', the SDK doesn't mention an index for that particular variable and what is the term 'Number' indicating ? The same goes for the second piece of code for the HSI CDI NEEDLE.

Skip, the HSI_xxx variables are permanently assigned to NAV1 radio's signals. Simply replace them with the variables that take an index as I've done below.

The "number" units correspond to generic values returned by the sim as shown in this snippet from the FSX SDK below. For the CDI the signal will be a number between -127 (full left) and +127 (full right). The GSI signal is likewise a number between -119 and + 119.

HSI CDI NEEDLE Needle deflection (+/- 127) Number
HSI GSI NEEDLE Needle deflection (+/- 119) Number

For 3d model XML I know of no "tutorials" other than those that're available at FFDS.

Code:
  <PartInfo>
    <Name>C310_HSI_needle_GSI</Name>
    <AnimLength>238</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV GSI:2, Number) 119 + </Code>
        <Lag>300</Lag>
      </Parameter>
    </Animation>
  </PartInfo>

  <PartInfo>
    <Name>C310_HSI_needle_CDI</Name>
    <AnimLength>254</AnimLength>
    <Animation>
      <Parameter>
        <Code>(A:NAV CDI:2, Number) 127 + </Code>
        <Lag>300</Lag>
      </Parameter>
    </Animation>
  </PartInfo>
 
Thanks a lot Bill. That seems to have fixed it but as to how one comes to the state of being able to correctly write xml code is beyond me, especially with no tutorials etc. Arduous trial and error must be the order of the day ?

Thanks again.

Skip
 
I suspect that the single largest problem is that there are essentially four distinct "schemas" used in FS development, where the main thing in common is that they are all forms of XML!

Fortunately, there are plenty of examples for study.

Unfortunately, since MS/ACES use XML in ways it was never intended to be used, means that most -if not all- of the information available via books and the Internet are completely useless.

For basic tutorials which may help you some, check out http://www.fs2x.com/Tutorials.htm
 
Also remember to modify the aircraft.cfg to enable the glideslope.

[Radios]
// Radio Type = availiable, standby frequency, has glide slope
Audio.1 =1
Com.1 =1,1
Com.2 =1,1
Nav.1 =1,1,1
Nav.2 =1,1,1
 
Back
Top