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

More FS9->FSX XML things!

Messages
206
Country
unitedkingdom
Hi folks,

Sorry to be a pain posting all this, but I just don't understand what is going on with these and it's starting to be "not fun anymore" :mad:. Some examples.

Both the text elements appear, regardless of the state of the variable (L:minbaro,bool)
Code:
			<Element>
               <visible>(L:minbaro,bool) !</visible>
               <Position X="276" Y="310"/>
               <Text X="80" Y="15" Bright="Yes" Length="2" Font="Arial Bold" Color="white" Adjust="Right" VerticalAdjust="Center" Multiline="No" Bold="Yes">
                  <String>RA</String>
               </Text>
            </Element>
			<Element>
               <visible>(L:minbaro,bool)</visible>
               <Position X="281" Y="310"/>
               <Text X="80" Y="15" Bright="Yes" Length="4" Font="Arial Bold" Color="white" Adjust="Right" VerticalAdjust="Center" Multiline="No" Bold="Yes">
                  <String>BARO</String>
               </Text>
            </Element>

This appears also when (L:calltimer,enum) = 0
Code:
<Element>
<visible>(L:ElecAVAIL, enum) 1 == (L:dimmer,bool) &amp;&amp; (L:calltimer,enum) 0 &gt; &amp;</visible>
		<Image Name="butcall_D.bmp" Bright="yes" ImageSizes="35,34,35,34"/>
	</Element>

When (L:PFD_ANNUNC_L,enum) = 2, I see PITCH in white. When it is 1, I see nothing!
Code:
            <Element>
               <Position X="58" Y="12"/>
               <Visible>(L:PFD_ANNUNC_L,enum) 1 ==</Visible>
               <Text X="107" Y="17" Bright="Yes" Length="10" Font="Arial Bold" Color="#FF00FF" Adjust="Center" VerticalAdjust="Center" Multiline="No">
                  <String>PITCH</String>
               </Text>
            </Element>

            <Element>
               <Position X="58" Y="12"/>
               <Visible>(L:PFD_ANNUNC_L,enum) 2 ==</Visible>
               <Text X="107" Y="17" Bright="Yes" Length="10" Font="Arial Bold" Color="#FFFFFF" Adjust="Center" VerticalAdjust="Center" Multiline="No">
                  <String>PITCH</String>
               </Text>
            </Element>

HDG appears (when variables dictate) but TRK does not.
Code:
<Element>
<Position X="2" Y="2"/>
<Visible>(L:trkmode,bool) !</Visible>
<FormattedText X="52" Y="16" Font="Arial" FontSize="15" Adjust="Left" Color="#f1eee9" VerticalAdjust="Center" Bright="Yes">
<String>\{bo}HDG\{nr}</String>
</FormattedText>
</Element>

<Element>
<Position X="2" Y="11"/>
<Visible>(L:trkmode,bool)</Visible>
<FormattedText X="52" Y="16" Font="Arial" FontSize="15" Adjust="Left" Color="#f1eee9" VerticalAdjust="Center" Bright="Yes">
<String>\{bo}TRK\{nr}</String>
</FormattedText>
</Element>

In all the above cases, the variables have been checked elsewhere and are being set as expected. It's kind of like a 'spot the difference' competition... I cannot see why some of these are working and others not. There are many more examples of this but what am I missing that is messing up in FSX? Needless to say, all the above examples work flawlessly in FS9.

Geoff
 
1. In L:calltimer,enum the second part of visability should be &amp;&amp;
not &amp;

2. in L:PFD_ANNUNC_L,enum check your colour FF00FF is it zero zero
or capital OO .

Cheers
Karol
 
1. In L:calltimer,enum the second part of visability should be &amp;&amp;
not &amp;

2. in L:PFD_ANNUNC_L,enum check your colour FF00FF is it zero zero
or capital OO .

Cheers
Karol

I'm not sure about the &amp; convention - I was under the impression that you used it once per item.
Item1 Item2 &amp;&amp; Item3 &amp; etc
Anyway, even if it is different for FSX, there are hundreds of other instances in my code where that syntax is working just fine, so I doubt that's the issue here.

On the colour, I suspect strongly that the code would also not work in FS9 if I had used O in place of 0...

Geoff
 
Geoff, in XML, Capitalization is critical:

Code:
 <visible>(L:minbaro,bool) !</visible>

will never work because the tags aren't Capitalized.

Code:
 <Visible>(L:minbaro,bool) !</Visible>
 
Geoff, in XML, Capitalization is critical:

Code:
 <visible>(L:minbaro,bool) !</visible>

will never work because the tags aren't Capitalized.

Code:
 <Visible>(L:minbaro,bool) !</Visible>

Wow! Now that's a revelation - thanks. I'll check, but could be that this is the whole problem fixed in one sweep...
Funny that FS9 has been letting me get away with that all this time - I know that one capital and one not is a problem, but didn't realise it had to always be capitals.

Geoff
 
Wow! Now that's a revelation - thanks. I'll check, but could be that this is the whole problem fixed in one sweep...
Funny that FS9 has been letting me get away with that all this time - I know that one capital and one not is a problem, but didn't realise it had to always be capitals.

Geoff

Yep, the capitalisation fixes some of the issues, but not all. I'll continue to test and try to figure it out!

Geoff
 
Thanks very much for the link Tom. That fixed most of the remaining bugs I've found so far. Next, some flight testing, and no doubt that will generate a whole new "gripe list" to deal with!

Geoff
 
Back
Top