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

FS2004 Digital negative readouts problem (SOLVED)

Make it simple and use the power of formatted text, not tested:
Code:
<Element>
<Position X="526" Y="870"/>
<FormattedText X="150" Y="20" Font="Arial" FontSize="20" Color="#05DA23" Adjust="Center" VerticalAdjust="Center" Bright="Yes">
<String>
((A:Circuit general panel on,bool) (L:Eng2Running,bool) (L:Eng3Running,bool) | and)
%{if}%((A:ENG TRANSMISSION TEMPERATURE,celsius))%!+0.2d!     //%!3.2f! ?
%{else}- - -
%{end}
</String>
</FormattedText>
</Element>
 
Last edited:
Tom

Thank you, I learn in the hard way that extra brackets only triggers problems. Thank you for the clarification and for taking time to wrote the right code.
I was doubling the possibility of an error.

Best regards,
Sergio.
 
Hello phjvh

Thank you, I will try it as well! For some reason, I always have troubles working with "if" statements.
Sergio.
 
Last edited:
Hello

Perhaps we could avoid the plus sign:
Code:
<Element>
  <Position X="526" Y="870"/>
    <FormattedText X="150" Y="20" Font="Arial" FontSize="20" Color="#05DA23" Adjust="Center" VerticalAdjust="Center" Bright="Yes">
       <String>
           ((A:Circuit general panel on,bool) (L:Eng2Running,bool) (L:Eng3Running,bool) | and)
           %{if}%((A:ENG TRANSMISSION TEMPERATURE,celsius) abs)%!0.2d!     //%!3.2f! This temperature seems to have a maximun of 2 digits
           %{else}- - -
           %{end}
       </String>
    </FormattedText>
</Element>

By the way in the 4th line, what is this ( | ); what is supposed to do? Perhaps is a mistyped "or" logical operand?

Best regards,
Sergio.
 
Last edited:
Hello phjvh

Thank you very much; nevertheless I found very annoying to have more than one way to perform a single operation. At least for me, it leads to confusion! :confused:

This leads to a one and only conclusion: I need to learn XML in a structured way.
Ohh boy! I found another thing unknown for me, the difference between:

{else} and els{}

Best regards,
Sergio.
 
els{} - used for evaluation in regular gauge code
{else} - used for evaluation in formatted text strings
 
els{} - used for evaluation in regular gauge code
{else} - used for evaluation in formatted text strings

Thank you my friend, I was reading the SDK and I noticed that also. Somehow, I missed it.
I think I'm going to print it, scrolling the big "rollout style" website design makes me omit parts like this.

Kindest regards,
Sergio
 
Isn't the FS2004 SDK in .doc format?

I think I've uploaded most of the docs as .pdfs somewhere. Maybe they're here in the resources collection.
 
Good afternoon from my side of the moon

Isn't the FS2004 SDK in .doc format?

Yes it is, nevertheless I was talking about the FSX's SDK in the Microsoft website. Since I do not have FSX in my system therefore no SDK documentation; on the other hand, those PDF's seems to be yummy! Will take a look and see how lucky I am. :D:D:D

Thanks for the head up and take care my friend,
Sergio.
 
The documentation wasn't on the resources page here, so I've added an entry for it.

Until it gets approved by Arno, find the docs here.
 
Bjoern, I've downloaded TMECBK_B732_SDK_RC4.zip from your website. I think I will find hundreds of answers there. Following the crumbles... :D

Amazing!!! Thank you very much.
Guten morgen auf Deutschland
Sergio.
 
The 737 isn't much of a good tool to learn XML with since almost all of the gauges are in C++ format and can not be decompiled. So don't expect too much.



- E:

Looks like Arno has approved the resource entry.
 
Last edited:
Hello Björn

The 737 isn't much of a good tool to learn XML with since almost all of the gauges are in C++ format and can not be decompiled. So don't expect too much.

I was thinking on animations and I have a lot to learn. On the other hand, PDF files for some reason are a better reading for me; thanks again.

Cheers,
Sergio.
 
Last edited:
Back
Top