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

General eng elapsed time

Messages
106
Country
germany
gives it the possibility to reset the "A:GENERAL ENG ELAPSED TIME:1, hours" with a xml gauge?

if not, how can I realize this?


Mijo
 
The following is a cumulative engine time code that I use .

Cheers
Karol
HTML:
<Gauge Name="F111ENGTIME" Version="1.0">
//By Karol Chlebowski @ 2009 **

<Element>
<Image Name="ENGTIME_bg.bmp"/>
</Element>

<!--**************** Print Accumulated Time ****************-->
<Element>
<Visible>(A:Electrical Master Battery, bool) 1 == </Visible>
<Position X="2" Y="9"/>
<Text X="35" Y="14" Length="5" Font="Arial" FontSize="10" Color="#00FF00"
BackgroundColor="Black" Adjust="Center" VerticalAdjust="Center">
<String>%((A:General Eng Elapsed Time:1, seconds) 3600 /)%!4.2f!</String>
</Text>
</Element>
</Gauge>
 
I'm not aware of a key event for it so I don't think it can be done in XML.

The SDK states "A:GENERAL ENG ELAPSED TIME:1, hours" is not settable which suggests it can't be done with SimConnect either.
 
The elapsed engine times are stored in your user profile.
(IIRC it is in the application data or local settings folder)
There is a folder containing subfolders with the names of the aircrafttypes used in flightsim.
These folders contain textfiles in which the enginetimes are stored.
You can edit these to reset the enginetimes.
But doing it with xml would need some 'helper' gauge to edit the file.
 
also no way.

i will build a gauge with 10 lights.
0 lights in the first hour
1 light in the second hour
... and so on.

tho only way is than over a time, when the enigines started.
how i cab build this?
 
The elapsed engine times are stored in your user profile.
(IIRC it is in the application data or local settings folder)
There is a folder containing subfolders with the names of the aircrafttypes used in flightsim.
These folders contain textfiles in which the enginetimes are stored.
You can edit these to reset the enginetimes.
But doing it with xml would need some 'helper' gauge to edit the file.

i`ve tried this.
the value in the aircraft is the same as before i edited the cfg-file :confused::confused:


my issue. i must load another aircraft and than execute my batch-file
 
Last edited:
i`ve realized this with a batch-file.
my problem is that the second light comes not after one hour.
that comes after 33 minutes.

my code is

Code:
   <Select>
      <Value>(A:GENERAL ENG ELAPSED TIME:1, hours) !05.1f!</Value>
	          <Case Value="0">
            <Image Name="ibf_fdc_balk_le_0.bmp"/>
        </Case>
        <Case Value="1">
            <Image Name="ibf_fdc_balk_le_1.bmp"/>
        </Case>
    </Select>

what i do wrong?

Mijo
 
i`ve tried this.
the value in the aircraft is the same as before i edited the cfg-file :confused::confused:


my issue. i must load another aircraft and than execute my batch-file
What sort of batch file did you make?

Anyway, the files with engine files are in C:\Users\username\AppData\Roaming\Microsoft\FS9\AIRCRAFT\aircraftname
 
int means "integer value" of the variable

BTW, the format code !5.1f! is meaningless outside of a <Text> or <FormattedText> operation.
 
At the time of resetting , copy the " A:GENERAL ENG ELAPSED TIME:1, hours " value and negate it into a uniquely named Lvar , store that Lvar .
Following resetting the instrument only displays :
A:GENERAL ENG ELAPSED TIME:1, hours PLUS Lvar .
( the Lvar being the negated A:GENERAL ENG ELAPSED TIME:1, hours value
that was current at time of resetting. )

Cheers
Karol

ADDED NOTE: both (A) Reset state and (B) Lvar , need to be stored to enable them to be used/retrieved in future sim sessions .
 
Last edited:
Back
Top