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

I am being an idiot I am sure

Messages
7
Country
southafrica
Hi Guys

So for my first project I wanted to convert the miniPanel's altimeter into a gauge that would real Millibars instead if Inches of Mercury. :eek:

Where I live we use Millibars, I could find a gauge that would show both, but not a gauge that would only do the one.

Everything is working great, all good readouts are relatively corretc for this stage of teh gauge design.

No I dont now anything about C++ and very little of XML, Now here is my problem.

In order for fuel calcs to be easy, I have set the international setting f FS9 to be Metrc with teh altimeter to show as feet. Best emulating RW here in South Africa.

No tooltips are whats getting me down at this stage.

What I would like to do is as follows.

Mouse over the gauge to show altimeter reading in Feet
Mouse over the Kohlman Knob to show the QNH readinng

Is this at all possible? :idea:

Here is teh code that I am using so far:

Code:
<Gauge Name="Altimeter" Version="1.0">
   <Image Name="Altimeter_Background.bmp"/>
   <Element>
      <Position X="111" Y="67"/>
      <MaskImage Name="Altimeter_Mask.bmp">
         <Axis X="0" Y="11"/>
      </MaskImage>
      <Image Name="Altimeter_Strip.bmp">
         <Nonlinearity>
            <Item Value="953" X="0" Y="12"/>
            <Item Value="1062" X="0" Y="419"/>
         </Nonlinearity>
      </Image>
      <Shift>
         <Value Minimum="953" Maximum="1062">(A:Kohlsman setting mb,mBar)</Value>
      </Shift>
   </Element>
   <Element>
      <Position X="81" Y="77"/>
      <Image Name="Altimeter_Needle_10000.bmp">
         <Axis X="31" Y="31" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) } els{ (A:Indicated Altitude, feet) } 10000 /</Value>
         <Failures>
            <GAUGE_ALTIMETER Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="81" Y="15"/>
            <Item Value="5" X="81" Y="138"/>
         </Nonlinearity>
      </Rotate>
   </Element>
   <Element>
      <Position X="81" Y="77"/>
      <Image Name="Altimeter_Needle_1000.bmp">
         <Axis X="5" Y="5" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) } els{ (A:Indicated Altitude, feet) } 1000 /</Value>
         <Failures>
            <GAUGE_ALTIMETER Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="81" Y="15"/>
            <Item Value="5" X="81" Y="138"/>
         </Nonlinearity>
      </Rotate>
   </Element>
   <Element>
      <Position X="81" Y="77"/>
      <Image Name="Altimeter_Needle_100.bmp">
         <Axis X="5" Y="5" PointsTo="East"/>
      </Image>
      <Rotate>
         <Value>(P:Units of measure, enum) 2 == if{ (A:Indicated Altitude, meters) } els{ (A:Indicated Altitude, feet) } 100 /</Value>
         <Failures>
            <GAUGE_ALTIMETER Action="Freeze"/>
            <SYSTEM_PITOT_STATIC Action="Freeze"/>
         </Failures>
         <Nonlinearity>
            <Item Value="0" X="81" Y="15"/>
            <Item Value="5" X="81" Y="138"/>
         </Nonlinearity>
      </Rotate>
   </Element>
   <Element>
      <Position X="26" Y="136"/>
      <Image Name="Altimeter_Knob.bmp">
         <Axis X="13" Y="13"/>
      </Image>
      <Rotate>
         <Value Minimum="953" Maximum="1062">(A:Kohlsman setting hg,inHg)</Value>
         <Nonlinearity>
            <Item Value="953" Degrees="0"/>
            <Item Value="1062" Degrees="720"/>
         </Nonlinearity>
      </Rotate>
   </Element>
   <Mouse>
      <Help ID="HELPID_GAUGE_ALTIMETER"/>
      <Tooltip ID="TOOLTIPTEXT_ALTIMETER_FEET" EnglishID="TOOLTIPTEXT_ALTIMETER_FEET" MetricID="TOOLTIPTEXT_ALTIMETER_METERS"/>
      <Area Left="13" Right="39" Top="124" Bottom="150">
         <Help ID="HELPID_GAUGE_KOHLSMAN_KNOB"/>
         <Tooltip ID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_MBAR" MetricID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_MBAR"/>
         <Area Right="13">
            <Cursor Type="DownArrow"/>
            <Click Event="KOHLSMAN_DEC" Repeat="Yes"/>
         </Area>
         <Area Left="13">
            <Cursor Type="UpArrow"/>
            <Click Event="KOHLSMAN_INC" Repeat="Yes"/>
         </Area>
      </Area>
   </Mouse>
</Gauge>

I have been adjusting, staring myself into oblivion. Each time I use a different tooltip spec either teh gauge then disapears in FS or something else completely wierd happens

All help really welcome :D
 
Try:

Code:
   <Mouse>
      <Tooltip ID="TOOLTIPTEXT_ALTIMETER_FEET"/>
      <Area Left="13" Right="39" Top="124" Bottom="150">
         <Tooltip ID="TOOLTIPTEXT_ALTIMETER_KOHLSMAN_MBAR"/>
         <Area Right="13">
            <Cursor Type="DownArrow"/>
            <Click Event="KOHLSMAN_DEC" Repeat="Yes"/>
         </Area>
         <Area Left="13">
            <Cursor Type="UpArrow"/>
            <Click Event="KOHLSMAN_INC" Repeat="Yes"/>
         </Area>
      </Area>
   </Mouse>
 
Hi Bill

Thanks that helped to change the reading of the altimeter to feet instead of meters :)

Now would you mind if I :stirthepo

Is it possible to change the mouse over tip for just the Kohlman knob itself, seperate from the rest of the altimeter? :eek:

Also, besides the obvious (working gauge) what is the benefit of removing the help id lines?

If I put them in the entire gauge disapears in FS

Thanks again
 
It already does just that! I've tested this script in another gauge I'm working on at the moment... ;)

HelpIDs are mostly present for backwards compatibility purposes and are -in fact- depecrated. All they ever did was identify a gauge anyway! Gee, I know that's an altimeter, do I really need a tooptip to tell me that? :eek:

ToolTips on the other hand are very flexible as you've seen since they can display dynamic data, such as airspeed, inHg, mBar, et cetera.
 
HelpIDs are mostly present for backwards compatibility purposes and are -in fact- depecrated. All they ever did was identify a gauge anyway! Gee, I know that's an altimeter, do I really need a tooptip to tell me that? :eek:


You overestimate the intellgence of some flightsimmers (I plead the 5th...)
 
It already does just that! I've tested this script in another gauge I'm working on at the moment... ;)

HelpIDs are mostly present for backwards compatibility purposes and are -in fact- depecrated. All they ever did was identify a gauge anyway! Gee, I know that's an altimeter, do I really need a tooptip to tell me that? :eek:

ToolTips on the other hand are very flexible as you've seen since they can display dynamic data, such as airspeed, inHg, mBar, et cetera.

Hi Bill

Thanksm but then I am really doing something wrong here. Tootip definatley does show up, but only show the altitude currently at (i.e 4770ft teh airfield I am testing at)

I am going to recheck all my settings in te gauge as well as FS and check back soon


You overestimate the intellgence of some flightsimmers (I plead the 5th...)

he he he too true

Cheers Guys, tahnks for all the help, Ill check back later the weekend to reveal any mistakes I had made.
 
Back
Top