• 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 OIL TEMPERATURE XML

Messages
5
Country
turkey
Hi

I was working on my ilyushin panel whats the wrong my xml its not working truly ?

vzd8om.png


Code:
<Gauge Name="Outside Air Temperature" Version="1.0">
   <Image Name="caredrogba.bmp" ImageSizes="200,200" Luminous="Yes"/>
   <Element>
      <Position X="100" Y="100"/>
      <Image Name="ned1.bmp" Luminous="Yes" PointsTo="EAST" ImageSizes="34,7">
         <Axis X="65" Y="48"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="65">(A:GENERAL ENG1 OIL TEMPERATURE, celsius)</Value>
           <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
            </Failures>     
            <Nonlinearity>
            <Item Value="0" X="60" Y="150"/>
            <Item Value="5" X="71" Y="141"/>
            <Item Value="10" X="78" Y="133"/>
            <Item Value="15" X="46" Y="8"/>
            <Item Value="20" X="65" Y="21"/>
            <Item Value="25" X="71" Y="43"/>
            <Item Value="30" X="91" Y="115"/>
            <Item Value="35" X="94" Y="110"/>
            <Item Value="40" X="94" Y="105"/>
            <Item Value="45" X="93" Y="98"/>
            <Item Value="50" X="94" Y="94"/>
            <Item Value="55" X="94" Y="86"/>
            <Item Value="60" X="89" Y="77"/>
            <Item Value="65" X="65" Y="48"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="10"/>
      </Rotate>
   </Element>

<Element>
<Position X="100" Y="100"/>
      <Image Name="ned2.bmp" Luminous="Yes" PointsTo="WEST" ImageSize="34,7">
         <Axis X="-25" Y="5"/>
      </Image>
      <Rotate>
         <Value Minimum="0" Maximum="65">(A:GENERAL ENG4 OIL TEMPERATURE, celsius)</Value>
          <Failures>
            <SYSTEM_ELECTRICAL_PANELS Action="0"/>
            </Failures>
            <Nonlinearity>
            <Item Value="0" X="60" Y="150"/>
            <Item Value="5" X="71" Y="141"/>
            <Item Value="10" X="78" Y="133"/>
            <Item Value="15" X="46" Y="8"/>
            <Item Value="20" X="65" Y="21"/>
            <Item Value="25" X="71" Y="43"/>
            <Item Value="30" X="91" Y="115"/>
            <Item Value="35" X="94" Y="110"/>
            <Item Value="40" X="94" Y="105"/>
            <Item Value="45" X="93" Y="98"/>
            <Item Value="50" X="94" Y="94"/>
            <Item Value="55" X="94" Y="86"/>
            <Item Value="60" X="89" Y="77"/>
            <Item Value="65" X="65" Y="48"/>
         </Nonlinearity>
         <Delay DegreesPerSecond="10"/>
      </Rotate>
     </Element>    
</Gauge>
 
Hi
You have an image size of ImageSize="34,7" yet the axis is <Axis X="65" Y="48"/> in the first one, your using engine 4 tag in the 2nd one ?
 
Hi

Yes I know im write two xml for engines this is the first one im little confused so the problem is only axis whats the true axis numbers ?
 
Last edited:
Hi,

Sorry about the false starts at AVSIM but they have changed pic attachment procedures. Welcome to FSDeveloper.

I would first check that Axis and Position of your needles are correct, then make sure your X and Y Values are correct with respect to your gauge face. This pic may help as a guide:

upload_2014-4-4_23-29-5.png


You might want to take a look at this Fuel Quantity Gauge. Its construction is similar to yours.

Code:
<Gauge Name="FUEL QTY" Version="1.0">
<Image Name="C421FuelQuantity.bmp" ImageSizes="320,320,320,320"/>
    <Element Name="LEFT TANK">
        <Position X="71" Y="161"/>
        <Image Name="FUEL QTY NEEDLE2.bmp" Bright="Yes" PointsTo="East" ImageSizes="87,20,87,20">
            <Axis X="10" Y="10"/>
        </Image>
        <Rotate>
            <Value Minimum="0" Maximum="121"> (A:FUEL LEFT QUANTITY, gallons) </Value>
            <Nonlinearity>
                <Item Value="100" X="87" Y="84"/>
                <Item Value="0"   X="70" Y="237"/>
            </Nonlinearity>
            <Delay DegreesPerSecond="20"/>
        </Rotate>
    </Element>

    <Element Name="RIGHT TANK">
        <Position X="248" Y="161"/>
        <Image Name="FUEL QTY NEEDLE2.bmp" Bright="Yes" PointsTo="East" ImageSizes="87,20,87,20">
            <Axis X="10" Y="10"/>
        </Image>
        <Rotate>
            <Value Minimum="0" Maximum="121"> (A:FUEL RIGHT QUANTITY, gallons) </Value>
            <Nonlinearity>
                <Item Value="0"   X="250" Y="237"/>
                <Item Value="100" X="233" Y="83"/>
            </Nonlinearity>
            <Delay DegreesPerSecond="20"/>
        </Rotate>
    </Element>
</Gauge>

With images C421FuelQuantity.bmp (320 x 320):

upload_2014-4-4_7-34-32.png


and FUEL QTY NEEDLE2.bmp (87 x 20):

upload_2014-4-4_7-34-50.png


You can get the idea from the attached fuel gauge example. Hopefully, the gauge background and needle pics download at the correct sizes (320 x 320) and (87 x 20).

Bob
________
XML edited to remove Failures and focus only on needle placement and movement
 
Last edited:
I dont know why avsim change their pic attc system anyway Bob thanks for everything now its very clearly tomorrow i will check and rewrite my two xml file.

Its not completly my panel but i redesign it and working on it.

 
Last edited:
To answer your question about AVSIM's policy change regarding image attachments, it is simply because they were consuming far too much space on the server. Also, since the lifetime of attached images was set for only 90 days, posts that depended on the images to make sense would quickly become useless!

There are many, many free image hosts such as ImageShack that may be used, where all that's required is a link in the AVSIM post. This takes up no space on the AVSIM server, and means that images will remain available to everyone to view as long as the link(s) remain valid.
 
we just could not get Google Drive to work yesterday so bounced the thread over here instead
 
I'm not even sure if "Google Drive" will allow direct linking to images stored there. Every time I've tried such, it even requires me to "sign in..." :tapedshut
 
I'm not even sure if "Google Drive" will allow direct linking to images stored there. Every time I've tried such, it even requires me to "sign in..." :tapedshut

ahhh, maybe that was the problem ... next time, I'll try ImageShack but AVSIM's Image Posting Rules suggest GoogleDrive - perhaps it shouldn't.
 
Hi

Yes I know im write two xml for engines this is the first one im little confused so the problem is only axis whats the true axis numbers ?
Soz my bad miss read the code (should never do a drive by post :D ) disregard my previous reply :)
I wondering if the (A:GENERAL ENG1 OIL TEMPERATURE, celsius) is exceeding your <Item Value= .....65 C is not a lot of temp for oil

What I do is first find out what the sim is outputting, I make up a number of test gauges
Code:
<Gauge Name="Digital_readout"
Version="1.0">
  <Element>
          <Text X="64" Y="64"
Bright="Yes" Length="15"
Font="Arial" Color="%('#FF0000' '#00FFFF')"
Adjust="Center" VerticalAdjust="Center"
Multiline="No" Fixed="No">
            <String>%((A:GENERAL ENG1 OIL TEMPERATURE, celsius))%!4.1f!</String>
          </Text>
         </Element>
   <Mouse>
    <Tooltip>Test Gauge1</Tooltip>
   </Mouse>
</Gauge>
name the gauge something like test.xml ect and place it into the radio panel ect in the panel.cfg
[Window00]
size_mm=300,300
window_size_ratio=1.000
position=2
visible=0
ident=RADIO_STACK_PANEL
window_size= 0.450, 0.600
window_pos= 0.550, 0.400

gauge00=air!test, 4,13,287,75
gauge01=air!test2, 4,103,288,75
gauge02=air!test3, 4,203,288,75
then fire up the sim select the radio panel and you have a readout of what the sim is actually putting out

 
Last edited:
Back
Top