• 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.

IF Simvar extension on FSXME

Messages
87
Country
spain
Hi,

I'm trying to use this function in a FSXME mission, but have several problems. For example, I can "read" and get the trigger fired the "KolsmannSettings", Autopilots,and other variables, but when I try to work with any radio component, The IF sentence seems not to work.For example, using "ACTIVE COMM FREQUENCY" or "TRANSPONDER CODE", OR "ADF FREQUENCY", does not work. I'm using a 737, wich has COMM1 and COMM2, and I was thinking that the problem would be related to own two comm radios, but if it were true, ADF or transponder should work.I'd like if "IF" have bugs, or I'm doing something wrong. (I've got no answer from FSXME forum)
 
I'm pretty sure the chances of getting a good answer is higher in the fsxme forums, though. ;)

I'd say you need to specify the index of the system, which you guessed right. The ADF also has 2 frequencies, though ADF2 isn't used normally. In FS9-times we used it to control scenery animations. :)
 
Hi,

I think you need to add the index manually, as Thorsten said. The variables with indices aren't listed explicitly, but you can override them. Try changing the variable name to "ADF FREQUENCY:0" or "ADF FREQUENCY:1" and see if that works. I'll check tonight for the exact value needed, but I know it's possible to read the radios.

Also, make sure to open the extension's debug console; the easiest way is to use the 'debug on' command at the start of the mission. You'll see an error message if it's unable to request a value from FSX, or the actual value that's returned otherwise.

Incidentally, you asked elsewhere about converting from an Acceleration mission to SP1/SP2. Since you're using simvar, I assume you've got the editor. If you head over to the support forums and get the latest build, it's much better at showing and downgrading a mission. Use the 'Show Compatibility' menu item. It shows all the nodes and models that belong to a higher version than the one you specify.

Cheers,
Jim
 
Thank you, Thornsten an Jim for your answers.
I think I'm doing something wrong, because I've used "IF" in my mission and sometimes seems to work and sometimes not. For example, I use this:

SimVar IF "$KOHLSMAN SETTING HG" IN number >= 29.000 THEN {570A6767-4185-4F99-B48C-97BCEE03C304} ELSE {9D109E7C-D72C-4AEC-8BE4-E57B0A404531}

Yesterday, all was right. "Trigger" fired if Kolssmann windows shows 29,92, and does not fires if I press "B" and set the current HG, that was 28,50.


Today, I run the same mission and "trigger" is always firing.

I think I'm going to try the "debug console" to find what I'm doing bad, just like Jime said.

Very,very,very,very thanks, both, for your answers, and excuse my english.
 
Back
Top