• There seems to be an uptick in Political comments in recent months. Those of us who are long time members of the site know that Political and Religious content has been banned for years. Nothing has changed. Please leave all political and religious comments out of the forums.

    If you recently joined the forums you were not presented with this restriction in the terms of service. This was due to a conversion error when we went from vBulletin to Xenforo. We have updated our terms of service to reflect these corrections.

    Please note any post refering to a politician will be considered political even if it is intended to be humor. Our experience is these topics have a way of dividing the forums and causing deep resentment among members. It is a poison to the community. We appreciate compliance with the rules.

    The Staff of SOH

  • Server side Maintenance is done. We still have an update to the forum software to run but that one will have to wait for a better time.

Is there an Oxygen gauge...

Cees Donker

Administrator
Staff member
...or can someone make one or explain to me how it's done? I'm making a gauge for the Fokker D.XVI. The gauge must stay full until the plane reaches 5000 ft. Then it must release oxygen untill it passes that height in the descend.

Cees
 
Cees, the only suggestion I can offer is to use the Pneumatic/hydraulic parameter within a .xml gauge that has a specific pressure leak above 5 k'. I cannot find an Oxygen parameter in the FS2004 SDK.
Now not being a .xml expert, it would take me a lot of trial & error ( my usual empirical way) to get one to work.
Good luck
Keith
 
Keith,

You're describing my level of knowledge (same as yours I guess) on this subject exactly.....

:icon_lol:

Cees
 
Cee’s,
I’m an idiot. I just caught your post as I don’t often check this forum. If it’s CFS2 I would be more than happy to make this gauge for you. I could put together some doc’s were you could take a crack at it but as this one is a little unusual it’s probably best if I just knock it out. I’ll send you a Pm with my e-mail shortly.


AC
 
I just had a bit more time to poke around and looks like your Fokker is not FS2000/CFS2. Will a FS2000 c gauge work in ’02 or ’04 – I don’t know.

I can tell you how I would get this one working in CFS2. Since O2 does not exist it would have to be faked in code. You basically have a timer running down instead of up (when over 5000). If a high scan time is needed use token variable "TICK18". It runs 18 times per second. If the needle only gradually winds down, as I’m guessing it does, then "ELAPSED_SECONDS" will do. You’ll also need a local variable whose value persists (doable in XML?). If above 5000 then begin decrementing this value from the O2 total time and use it to calculate the needle position.

If FS2000/CFS2 won’t work, I have one other idea but it’s a bit out there. I could go ahead and make the gauge for CFS2 and right before sending swap the gauges.h file for the correct version and hope for the best.
 
If it helps,
AC
 
Of all things DSL died at the house this weekend. No it would not be XML. I might could through it but as I only have CFS2 I would not be able to test it. Will respond with more at lunch break.



AC
 
Cee’s

I think my best chance of helping is the last alternative I posted above. That is make the gauge and debug her using CFS2. Once she’s working I would replace the gauges.h with target FS version, recompile and send that gauges file to you. I have, incidentally, looked at the FS2002 gauges.h file and it is very similar to 2000. This leads me to think it should work.

I should be back online in a few days to a week. I’ll give you a heads up when I am.

If you’re not interested in this round about approach just let me know – it’s no biggy. It will be very little work on my part so I’m game.

Moparmike – will this work? I can’t think of a reason why it would not.


AC
 
Cee’s

I think my best chance of helping is the last alternative I posted above. That is make the gauge and debug her using CFS2. Once she’s working I would replace the gauges.h with target FS version, recompile and send that gauges file to you. I have, incidentally, looked at the FS2002 gauges.h file and it is very similar to 2000. This leads me to think it should work.

I should be back online in a few days to a week. I’ll give you a heads up when I am.

If you’re not interested in this round about approach just let me know – it’s no biggy. It will be very little work on my part so I’m game.

Moparmike – will this work? I can’t think of a reason why it would not.


AC

Hey AC,

I'm interested! Can I change the dial and the needle? Then it would be great.

Cees
 
Cee’s

When I get back online I’ll request that you e-mail me the dial and needle bitmaps. A few tweaks and a compile and it will then use your artwork.

I got the gauge working last night using dummy artwork but I did eventually notice one quirk. If you, for example, exit free flight and then return to the same aircraft then the needle does not reset to 100% as it should – it starts from where it was at exit. This is how MS structured panels. To get a gauge to fully reset you must change to a different aircraft and then reload the original. I tried a few things but did not find a work around to this flaw. I’ll give it another try tonight as I have one more idea.


AC
 
Cee’s

When I get back online I’ll request that you e-mail me the dial and needle bitmaps. A few tweaks and a compile and it will then use your artwork.

I got the gauge working last night using dummy artwork but I did eventually notice one quirk. If you, for example, exit free flight and then return to the same aircraft then the needle does not reset to 100% as it should – it starts from where it was at exit. This is how MS structured panels. To get a gauge to fully reset you must change to a different aircraft and then reload the original. I tried a few things but did not find a work around to this flaw. I’ll give it another try tonight as I have one more idea.


AC

I'll send you the textures! You've got mail!

Cees
 
Back
Top