Hobbs Meter INOP

B747F
Posts: 54
Joined: Mon Jul 29, 2013 2:33 am
Re: Hobbs Meter INOP

Post by B747F » Mon Jan 27, 2020 1:31 am

N4GIX wrote:
Sun Jan 26, 2020 4:32 pm
The code for Hobbs was added to the Clock.xml file some weeks ago.

Here is the file. Drop it into the ..\panel\B350i folder and overwrite the one there already. Since the sim itself keeps track of engine hours, once this new file is added the next time you load the KA the total time will automatically be displayed!

Clock.zip
replaced file, hobbs stuck at 0's I am at cruise

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: Hobbs Meter INOP

Post by N4GIX » Mon Jan 27, 2020 4:08 pm

tamsini wrote:
Sun Jan 26, 2020 7:59 pm
Not sure if I'm reading this right. After copying the file into the above folder, I still have 0000.
It has been working here ever since I scripted this function. It is about as simple as it gets, using only default sim variables being summed and written to a custom (L:KA300_Hobbs,enum) variable.

Code: Select all

 (A:GENERAL ENG ELAPSED TIME:1,hours) (A:GENERAL ENG ELAPSED TIME:2,hours) + (>L:KA300_Hobbs,enum) 
This script is in a section of the clock.xml that will continuously run as long as the aircraft is loaded in the sim. Within the compiled model itself there are five drum definitions that will parse the (L:KA300_Hobbs,enum) return and extract the digits individually for the display.
Prepar3D_SLjUj7O3gb.png
Prepar3D_SLjUj7O3gb.png (182.4 KiB) Viewed 7154 times

B747F
Posts: 54
Joined: Mon Jul 29, 2013 2:33 am
Re: Hobbs Meter INOP

Post by B747F » Mon Jan 27, 2020 5:01 pm

N4GIX wrote:
Mon Jan 27, 2020 4:08 pm
tamsini wrote:
Sun Jan 26, 2020 7:59 pm
Not sure if I'm reading this right. After copying the file into the above folder, I still have 0000.
It has been working here ever since I scripted this function. It is about as simple as it gets, using only default sim variables being summed and written to a custom (L:KA300_Hobbs,enum) variable.

Code: Select all

 (A:GENERAL ENG ELAPSED TIME:1,hours) (A:GENERAL ENG ELAPSED TIME:2,hours) + (>L:KA300_Hobbs,enum) 
This script is in a section of the clock.xml that will continuously run as long as the aircraft is loaded in the sim. Within the compiled model itself there are five drum definitions that will parse the (L:KA300_Hobbs,enum) return and extract the digits individually for the display.

Prepar3D_SLjUj7O3gb.png
https://i.imgur.com/v9KIwdt.png

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: Hobbs Meter INOP

Post by N4GIX » Tue Jan 28, 2020 1:43 am

Check your panel.cfg file and see if B350i!B50i_logic gauge is installed. If so, please delete it. We found that a duplicate of the script was in that 'gauge' that is overwriting my identical script... :oops:

I removed that 'logic' gauge a long time ago which is why it is working here just fine.

tamsini
Posts: 22
Joined: Thu Apr 09, 2015 10:14 pm
Re: Hobbs Meter INOP

Post by tamsini » Tue Jan 28, 2020 1:59 am

N4GIX wrote:
Tue Jan 28, 2020 1:43 am
Check your panel.cfg file and see if B350i!B50i_logic gauge is installed. If so, please delete it. We found that a duplicate of the script was in that 'gauge' that is overwriting my identical script... :oops:

I removed that 'logic' gauge a long time ago which is why it is working here just fine.
Unfortunately, nothing in my panel.cfg lists any reference to B350i!B50i_logic gauge. Is there anywhere else we should look?

Mario

B747F
Posts: 54
Joined: Mon Jul 29, 2013 2:33 am
Re: Hobbs Meter INOP

Post by B747F » Tue Jan 28, 2020 7:57 am

N4GIX wrote:
Tue Jan 28, 2020 1:43 am
Check your panel.cfg file and see if B350i!B50i_logic gauge is installed. If so, please delete it. We found that a duplicate of the script was in that 'gauge' that is overwriting my identical script... :oops:

I removed that 'logic' gauge a long time ago which is why it is working here just fine.
No Logic line
I replaced clock.xml and there is a clock2.xml file and line in vcockpit 02
Do i need updated clock2.xml?

N4GIX
Posts: 1023
Joined: Mon Sep 06, 2010 3:47 pm
Re: Hobbs Meter INOP

Post by N4GIX » Tue Jan 28, 2020 2:58 pm

B747F wrote:
Tue Jan 28, 2020 7:57 am
No Logic line
I replaced clock.xml and there is a clock2.xml file and line in vcockpit 02
Do i need updated clock2.xml?
No. Clock2.xml is the copilot's independent clock/timer gauge. We'll get this sorted out soon.

CS-TMT
Posts: 43
Joined: Sun Jan 10, 2021 7:00 pm
Re: Hobbs Meter INOP

Post by CS-TMT » Thu Jan 21, 2021 11:09 pm

N4GIX wrote:
Sun Jan 26, 2020 4:32 pm
The code for Hobbs was added to the Clock.xml file some weeks ago.

Here is the file. Drop it into the ..\panel\B350i folder and overwrite the one there already. Since the sim itself keeps track of engine hours, once this new file is added the next time you load the KA the total time will automatically be displayed!

Clock.zip
I downloaded this mod, however I cannot cycle between clock modes (UT, LT, ET) and the clock appears turned on as soon as I select the aircraft and won't turn off. And it keeps in a 12h time format instead of 24h time format.
Would anyone be so kind to send me the original Clock.xml file, because I didn't back the original up and wouldn't like to reinstall the whole aircraft only to recover the original gauge?

Taguilo
Posts: 658
Joined: Sun May 11, 2014 11:49 am
Re: Hobbs Meter INOP

Post by Taguilo » Fri Jan 22, 2021 1:12 am

CS-TMT wrote:
Thu Jan 21, 2021 11:09 pm
I downloaded this mod, however I cannot cycle between clock modes (UT, LT, ET) and the clock appears turned on as soon as I select the aircraft and won't turn off. And it keeps in a 12h time format instead of 24h time format.
Would anyone be so kind to send me the original Clock.xml file, because I didn't back the original up and wouldn't like to reinstall the whole aircraft only to recover the original gauge?
Hi,

That zip file is not valid since long ago. I asked Bill to remove the link. Sorry for this.

Please download this zip and extract both files in ...\Panel\B350i
Clocks.zip
(1.98 KiB) Downloaded 106 times
Thanks!

Tomas

CS-TMT
Posts: 43
Joined: Sun Jan 10, 2021 7:00 pm
Re: Hobbs Meter INOP

Post by CS-TMT » Fri Jan 22, 2021 1:57 am

Thanks a lot! :D

User avatar
Slayer
Posts: 1517
Joined: Sat Mar 08, 2014 3:26 am
Contact:
Re: Hobbs Meter INOP

Post by Slayer » Fri Jan 22, 2021 11:02 pm

I'm going to sticky this. If I do a new installer build for the KA in the future it should be added in.

CS-TMT
Posts: 43
Joined: Sun Jan 10, 2021 7:00 pm
Re: Hobbs Meter INOP

Post by CS-TMT » Sun Jun 06, 2021 5:52 pm

For those still wondering about how the Hobbs Meter works/where it takes data from, in the particular case of this King Air it has nothing to do with the previous mentioned state.cfg in the following folder:

C:\Users\YourUserName\AppData\Roaming\Lockheed Martin\Prepar3D v4\SimObjects\MV_King_Air_350i

The file which records the flight time is here:

C:\Users\YourUserName\AppData\Local\MVAMS\Configurations\KingAir350i\flight_time.cfg

Cheers!


Locked

Return to “K.A.350 Support Forum”