Jump to content
Sign in to follow this  
DC-3 Hack

Four Tank Fuel Gauge

Recommended Posts

Can one of you kind souls tell an old dumb guy why the tooltips won't read on this? Tanks are; LeftMainRightMainLeftAuxRightAuxThis message box sure scatters the code around huh!!!Thanks John

Share this post


Link to post
Share on other sites

>Can one of you kind souls tell an old dumb guy why the>tooltips won't read on this? Tanks are;> >LeftMain>RightMain>LeftAux>RightAux>>> > > -SNIP- removed for brevity...> >>This message box sure scatters the code around huh!!!>>Thanks John You might try something like this, John. Although a bit "wordier", I know that it does work. Replace your "" with this: Left Main Tank (%((A:Fuel tank left main quantity, gallons) 6.7 * flr)%!d! lbs) Paul


Wide-5.jpg

Share this post


Link to post
Share on other sites

Paul thanks very much. That string works like a champ. Uhhh,, what part of the brackets would I have to remove to read in gallons. Some of the folks in DC3 Airways like gallons readout, for myself I had rather have lbs so I will use it as is. I made this four tank gauge maybe a year ago after one of our pilots took a pic of it in a DC3. I made it from the pic.John

Share this post


Link to post
Share on other sites

Left Main Tank (%((A:Fuel tank left main quantity, gallons))%!d! gals)


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

>Paul thanks very much. That string works like a champ. Uhhh,,>what part of the brackets would I have to remove to read in>gallons. Some of the folks in DC3 Airways like gallons>readout, for myself I had rather have lbs so I will use it as>is. I made this four tank gauge maybe a year ago after one of>our pilots took a pic of it in a DC3. I made it from the pic.>>John Lets see if I can do this without screwing it up :) Left Main Tank (%(A:Fuel tank left main quantity, gallons) %!d! Gal)I think that will do it...the "6.7 * flr" part converts the gallonsreturned by the "(A:Fuel tank left main quantity, gallons)" partof the statement to pounds ( multiples gallaons by 6.7 )The "!d! lbs" part defines the numeriacl string conversion andadds the text "lbs", so the becomes "!d! Gal" for your use."Gal" can be "Gallons" if you wish.Here's a statement that will display the fuel state in percent:Right Tank (%((A:FUEL RIGHT QUANTITY, gallons) (A:FUEL RIGHT CAPACITY, gallons) / 100 * near)%!d!%%)By looking at various structures in the XML code you can begin tounderstand what does what :) Paul


Wide-5.jpg

Share this post


Link to post
Share on other sites

Thanks Bill and Paul. After a bit I think I could replace the 6.7 with 1.0 and it would prob work. And Paul your right, by looking at the string it comes to make sense even to me. LOL I wish there was a better tutorial on this than the MS sdk.John

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...