• 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 Again... number strips:(

Messages
37
Country
us-florida
So I looked at some examples on how to create the number strips. I am trying to do a display for HSI Distance using number strips.
But for some magical reason my number strip refuses to move.:( I am not concerned about positioning of the strip or image masks right now, I just want the strip to move. I tried using both Scale and nonlinearity without success.
Here's my code that I've been trying to fix for a while. I can't spot what is wrong with it, so if anyone can help that would be great!

Code:
<Gauge Name="HSI Top" Version="1.0">
   <Image Name="hsi_top.bmp"/>     
   <Element id="HSI Distance 100ths">
   <FloatPosition>0.000,0.000</FloatPosition>
           <Image id="number_strip.bmp" Name="number_strip.bmp">
		<Axis X="0" Y="0"/>
	   </Image>
           <Shift id="Shift">
                <Scale>0.000,30.000</Scale>
                <Expression id="Expression">
                    <Minimum>0.000</Minimum>
                    <Maximum>9.000</Maximum>
                    <Script>(A:HSI DISTANCE, Nautical Miles) 100 * flr</Script>
                </Expression>
                <NonlinearityTable id="NonlinearityTable">
                    <NonlinearityEntry id="NonlinearityEntry">
                        <ExpressionResult>0.000</ExpressionResult>
                        <FloatPosition>0.000,0.000</FloatPosition>
                    </NonlinearityEntry>
                    <NonlinearityEntry id="NonlinearityEntry">
                        <ExpressionResult>9.000</ExpressionResult>
                        <FloatPosition>0.000,270.000</FloatPosition>
                    </NonlinearityEntry>
                </NonlinearityTable>
            </Shift>
    </Element> 
     <Mouse>
          <Tooltip ID="HSI Distance Nautical Miles"/>
     </Mouse>
    </Gauge>
 
Why are you multiplying instead of dividing???

<Script>(A:HSI DISTANCE, Nautical Miles) 100 * flr</Script>

Try this:

<Script>(A:HSI DISTANCE, Nautical Miles) 100 / flr</Script>
 
I have tried both=P
I was multiplying in the hope of seeing the strip move. Nautical Miles hundred digits don't exactly move fast, I would have to observe the strip for a good 10min or so of flight to see any change. Multiplication should give me the second decimal digit, which should move fairly faster.
 
Ok this is REALLY REALLY puzzling me now:confused::banghead::banghead::banghead: . I inserted a simple gauge in the panel to display the HSI distance 'as is' coming into my number strip gauge. I changed the input both in my number strip and in my display gauge and the results were:

1- When I told FSX to obtain:
Code:
((A:HSI DISTANCE, nautical miles) 10 * flr )
I got numbers like 230, 238 on the display (NOT a single digit number) which would explain why the strip is not moving, since I set the maximum value to 9. Which brings me to ask, once again, the question: How do I make FSX recognize only the 'ones' digit?
2- When I told FSX to obtain
Code:
((A:HSI DISTANCE, nautical miles) 10 / flr )
I got numbers between 0 and 9 on the display but once again the strip was static. If the input is within the limits I set then it brings me to deduce something is wrong is my code. What is it?
3- In both occasions I sometimes randomly got a display value of -1 and FSX ran really slowly. Yes, -1:confused:. Then all I had to do was restart FSX and it was functional again.:confused:

Any help would be EXTREMELY appreciated!
 
Code:
<Axis X="0" Y="0"/>

I think this may be formatted wrong.

Here is a snippet from one of my tapes. I use the ace editor, and you can see the format of the Axis tag is way different. Not sure if this is an FS9 vs FSX thing or not.
Code:
    <Element id="Airspeed Tape">
        <FloatPosition>38.000,120.000</FloatPosition>
        <Image id="pfd_asi_tape.bmp" Name="pfd_asi_tape.bmp">
            <Transparent>True</Transparent>
            <Axis>0.000,-0.000</Axis>
            <Bright>True</Bright>
            <Luminous>True</Luminous>
        </Image>
        <MaskImage id="pfd_asi_tape_mask.bmp" Name="pfd_asi_tape_mask.bmp">
        </MaskImage>
        <Shift id="Shift">
            <Scale>0.000,-1.000</Scale>
            <Expression id="Expression">
                <Script>@IAS</Script>
            </Expression>
            <NonlinearityTable id="NonlinearityTable">
                <NonlinearityEntry id="NonlinearityEntry">
                    <ExpressionResult>450.000</ExpressionResult>
                    <FloatPosition>0.000,-16.000</FloatPosition>
                </NonlinearityEntry>
                <NonlinearityEntry id="NonlinearityEntry">
                    <ExpressionResult>20.000</ExpressionResult>
                    <FloatPosition>0.000,1704.000</FloatPosition>
                </NonlinearityEntry>
            </NonlinearityTable>
        </Shift>
    </Element>
 
The FS9 XML Schema and the FSX XML Schema are totally incompatible!

You must use one or the other...

The only reason for them changing Schemas was to allow them to implement the ACES wysiwyg tool.
 
I am not familiar with the FS9 schema, but appears the the rest of the OPs code is consistent with FSX. That is except for the Axis tag.
 
I am not familiar with the FS9 schema, but appears the the rest of the OPs code is consistent with FSX. That is except for the Axis tag.

You are correct. The OP's script seems to be a mish-mash of FS9 and FSX schemas.

If one is not going to use the ACE tool, one should avoid the rather verbose format of the FSX schema.

Why type out sixteen lines for what can be done with only five lines? :D
 
thanks again guys! works fine now:D I guess I got confused and mixed up the schema...:o
 
Back
Top