Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi John,

I'm running FSUIPC v6.2.1 in P3Dv5.3HF2. I have a Lear 25 which loads with a pre-set amount of fuel and rather than go into the P3D menu to enter 0 for each of the tanks to get them to zero is it possible to set them to zero via FSUIPC?

I looked at the docs and 0AF8 with 1 selected for all tanks is the closest I've found. But entering that value into Custom Control is just rejected.

Is there an easier way please?

Posted

Hi Ray,

18 hours ago, Ray Proudfoot said:

I looked at the docs and 0AF8 with 1 selected for all tanks is the closest I've found. But entering that value into Custom Control is just rejected.

That offset is just for the 'Fuel Tank Selector', and it is not a custom control. To set this, you would use the Offset Word Set control.

To empty the tanks, try writing 0 to the tank level offsets (using Offset Dword Set😞

Quote

0B74 4 Fuel: centre tank level, % * 128 * 65536 Ok-SimC Ok-SimC

0B7C 4 Fuel: left main tank level, % * 128 * 65536 Ok-SimC Ok-SimC

0B84 4 Fuel: left aux tank level, % * 128 * 65536 Ok-SimC Ok-SimC

0B8C 4 Fuel: left tip tank level, % * 128 * 65536 Ok-SimC Ok-SimC

0B94 4 Fuel: right main tank level, % * 128 * 65536 Ok-SimC Ok-SimC

0B9C 4 Fuel: right aux tank level, % * 128 * 65536 Ok-SimC Ok-SimC

0BA4 4 Fuel: right tip tank level, % * 128 * 65536 Ok-SimC Ok-SimC

John

  • Like 1
Posted
1 minute ago, Ray Proudfoot said:

But having entered the first value for 0B74 how do I add the remaining values? No option to enter multiple values.

There are two ways to send mu;tiple controls on a button or key press:

1. Use macros.

2. Overload the controls. e.g. make the first assignment, then comment this out in your ini, then reload the assignments and make the second assignment. Repeat until you have all the assignments, then uncomment the ones you commented out and reload the assignments again.

4 minutes ago, Ray Proudfoot said:

Thanks for that. I had to google Offset DWORD Set to get some info on how it works. This site helped.

These are documented in the User guide, page 27:

Quote

Offset controls, which allow values to be written to FSUIPC’s offsets, for all sorts of actions and effects. There are controls for byte (8 bit), word (16-bit), double word (32-bit) and both 32-bit and 64-bit floating point values, and facilities for bit setting, clearing, toggling, incrementing and decrementing (the latter two only for byte and word values). When using these, another input field appears on screen for the entry of the specific offset, which is best entered in hexadecimal (precede the value with the letter ‘x’). The value is provided as a parameter and this too can be entered in hexadecimal, preceded by ‘x’. For full information on these please refer to the Advanced User’s documentation.

John

Posted
2 minutes ago, John Dowson said:

One way, but why not just define a macro...

I've never worked with macros. A few years ago I used a tutorial on this site to program GoFlight buttons for the PMDG 737. It involved editing the ini file to add multiple commands to a single button.

I've just done that for the fuel tanks and I'm pleased to report it works great! Don't know why I didn't think of this years ago instead of manually editing the P3D fuel fields!

Regarding DWORD etc. I've always struggled with number of bits and bytes in WORDs. 😉

Thanks John!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.