Page 2 of 2

Re: Hobbs Meter INOP

Posted: Mon Jan 27, 2020 1:31 am
by B747F
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

Re: Hobbs Meter INOP

Posted: Mon Jan 27, 2020 4:08 pm
by N4GIX
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 4334 times

Re: Hobbs Meter INOP

Posted: Mon Jan 27, 2020 5:01 pm
by B747F
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

Re: Hobbs Meter INOP

Posted: Tue Jan 28, 2020 1:43 am
by N4GIX
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.

Re: Hobbs Meter INOP

Posted: Tue Jan 28, 2020 1:59 am
by tamsini
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

Re: Hobbs Meter INOP

Posted: Tue Jan 28, 2020 7:57 am
by B747F
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?

Re: Hobbs Meter INOP

Posted: Tue Jan 28, 2020 2:58 pm
by N4GIX
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.

Re: Hobbs Meter INOP

Posted: Thu Jan 21, 2021 11:09 pm
by CS-TMT
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?

Re: Hobbs Meter INOP

Posted: Fri Jan 22, 2021 1:12 am
by Taguilo
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 72 times
Thanks!

Tomas

Re: Hobbs Meter INOP

Posted: Fri Jan 22, 2021 1:57 am
by CS-TMT
Thanks a lot! :D

Re: Hobbs Meter INOP

Posted: Fri Jan 22, 2021 11:02 pm
by Slayer
I'm going to sticky this. If I do a new installer build for the KA in the future it should be added in.

Re: Hobbs Meter INOP

Posted: Sun Jun 06, 2021 5:52 pm
by CS-TMT
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!