Jump to content

Reach for the Oxynator


Recommended Posts

Posted

I was playing around with the Oxynator in A2A's C182 and it works really well, so well I'll be adding it to my other A2A aircraft (that don't have an Oxygen system).

A2A's Accu-sim measures the oxygen level of the pilot's blood and a few enterprising fellows have created some nice gauges that add Oxygen systems to A2A aircraft and thus it's now possible to fly higher than ever before.

Of the 2 gauges I've found Oxynator the easiest to install and use.

Note: It needs a registered version of FSUIPC.

A2A's Forum Post regarding Oxynator

Download from the AVSim file library

Here we're getting pretty high up and blood oxygen is reducing, unfortunately I neglected to refill the bottle after my last flight and once the aircraft is moving it cannot be refilled.

I did take the plane all the way up till I fell unconsous, then fell out of the sky... Once blood oxygen gets back into the green you can try to recover but usually by then it's too late.

spacer.png

 

  • Upvote 2

Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti

P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too.

Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D

Posted
42 minutes ago, MaDDogz said:

😁
hey, it’s Maddz , glad your useing / enjoying it. 

Your oxygen saturation gauge has a weird scale - you missed one notch, so each mark is a decrease of 11%, not 10%. 😉

Also, o2 saturations would almost always be reported using a digital percentage readout - haven’t ever seen a steam gauge version.

finally, if you want to go pro, report the oxygen partial pressure in the blood as well, reported in mmHg, derived from the o2 saturation using the oxygen dissociation curve.

don’t get me wrong, it looks really cool and is a great idea, just some feedback from someone who works in the area. Cheers!

  • Upvote 1

Oz

 xdQCeNi.jpg   puHyX98.jpg

Sim Rig: MSI RTX3090 Suprim, an old, partly-melted Intel 9900K @ 5GHz+, Honeycomb Alpha, Thrustmaster TPR Rudder, Warthog HOTAS, Reverb G2, Prosim 737 cockpit. 

Currently flying: MSFS: PMDG 737-700, Fenix A320, Leonardo MD-82, MIlviz C310, Flysimware C414AW, DC Concorde, Carenado C337. Prepar3d v5: PMDG 737/747/777.

"There are three simple rules for making a smooth landing. Unfortunately, no one knows what they are."

Posted

Hey  Rob.

this was something I knocked together in a few hours…then CC_aero from A2A’s forum made it what it is now. 
It wasn’t intended to be all that, just to stop you passing out at altitude. Of course all that is possible, but I’ve moved on to other things now.

Luke Pype

Posted (edited)

I see the OP is using Real Trim. There is a version here on the Avsim library but it is for FS2004. Is this version compatible with P3Dv5 or is there an updated version? Thx.

Also, which cloud add on are you using?

Edited by Samaritano
Posted
On 5/2/2022 at 11:18 PM, MaDDogz said:

😁
hey, it’s Maddz , glad your useing / enjoying it. 

Hey Maddz, yeah, it is something I'm enjoying 🙂

A2A have such depth in their aircraft and it's the flying with consequences and their on the number perfomance that makes it fun.

And it's good to be able to equip the aircraft with enhancements such as a functional oxygen supply.

Cheers

Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti

P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too.

Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D

Posted
22 hours ago, Samaritano said:

I see the OP is using Real Trim. There is a version here on the Avsim library but it is for FS2004. Is this version compatible with P3Dv5 or is there an updated version? Thx.

Also, which cloud add on are you using?

I'm using Real Trim Pro. Works well enough in P3D 4.5 (x64 support), I haven't installed / checked in v5 as yet because although I have v5, I'm happier with v4.5 atm, I don't see why it wouldn't work though seeing as v5 is x64 (as is v4.5).

https://www.blublu.at/BluBlu/en/realtrim-professional-unique-new-trim-system-for-fsx-and-p3d/

The clouds add on are based on Rex Textures and a custom cloud.fx shader which you can obtain and read more about at the below post.

Note the shader is very heavy on GPU, and you might find it's only usable where there is not full cloud cover, although certainly if you've a 3080+ it works well in almost all situations.

Cheers

I've been tuning the shader to suit my preferred look, just adjusting the shadow darkness and brightness atm.

The values in the shader I've changed are SetPSS1 & SetPS90

// static const float SetPSS1 = 0.98   ; // TBM default = 0.75 (Cloud Shadows darkness)
// static const float SetPS90 = 1.32   ; // TBM Default = 1.20*1.35 (calcs to 1.62). This value does have an overall effect on the general cloud brightness - lower value = darker clouds

?imw=5000&imh=5000&ima=fit&impolicy=Lett

In this pic I was trialling adding a tad of red to far clouds.

?imw=5000&imh=5000&ima=fit&impolicy=Lett

Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti

P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too.

Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D

  • 2 years later...
Posted
24 minutes ago, Doksas said:

Sorry for writing in old post, but my Oxynator gauge not work anymore in v5.4 . Any sugestion please ?

Did it previously function in v5.4 ?

When you say it doesn't work...

  • Do you mean the gauge doesn't open at all ?
  • Or it does open but doesn't fill the tank or actually provide oxygen ?

Remember the gauge has a dependancy on a registered FSUIPC and a LUA script where I have the lua script set to auto run.

There should be an oxynator.log in the folder where the lua script is located which will enable you to see what is happening.

Cheers

Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti

P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too.

Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D

Posted
1 hour ago, Rogen said:

Did it previously function in v5.4 ?

When you say it doesn't work...

  • Do you mean the gauge doesn't open at all ?
  • Or it does open but doesn't fill the tank or actually provide oxygen ?

Remember the gauge has a dependancy on a registered FSUIPC and a LUA script where I have the lua script set to auto run.

There should be an oxynator.log in the folder where the lua script is located which will enable you to see what is happening.

Cheers

Gauges open, no problem there, but when i click to refill oxygen or power on/off on gauge i have windows from fsuipc with info egg : unable with power OFF !

My battery is ON, so power is there but oxynator not see it.

I use registered version FSUIPC and before v5.4 in v5.3 work great for months.

I not changed nothing in fsuipc.ini etc, everything is per instruction...

 

Kind regards

Posted

So it used to work fine when P3D was version 5.3 but stopped working post update to P3D version 5.4 ?

Infact the only message regarding power in the script is,

  • ipc.display("OXYNATOR: Can not refill when power is off!",6)

the script does however reference an LVAR to determine if the battery is on.

  • event.Lvar("L:BatteryElecPower",100,"toogle_ready")

 

Sounds like something missed during the update, (either something missed and/or an introduced issue in v5.4), my general advice would be to go over everything step by step, as if you were completely reinstalling FSUIP6, the LUA script and the gauge.

The LUA script references an IPC value to determine if it is ready to start so be sure your FSUIP6 is the latest version.
 

In my FSUIP6.ini I have the following entries.

[LuaFiles]
1=001.icefun
2=002.oxynator
3=003.Oxy_Supply

[Auto]
1=Lua 001.icefun
2=Lua 002.oxynator

 

Also check the logging in FSUIP6, e.g. it should show things happening.

  1347125 H:\Addons_P3D\P3Dv5\06.Aircraft_P3Dv5\A2A\A2A\SimObjects\Airplanes\A2A_C182\C182.air
  1347125 ### Mode is NORMAL
  1347531 Lua threads being terminated:
  1347531       4 = "H:\Addons_P3D\03.Utility\FSUIPC6\002.oxynator.lua"
  1347687 LUA: "H:\Addons_P3D\03.Utility\FSUIPC6\002.oxynator.lua": killed
  1347703 Aircraft="A2A C182 VH-DLL"
  1348328 LUA.6: OXYNATOR: started
  1348422 LUA.6: OXYNATOR: NOT ready
  1350765 LUA.6: OXYNATOR: ready

 

Hope the above helps.

Cheers

 

 

Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti

P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too.

Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D

Posted (edited)

Hi all,

I'm the developer of "Oxynator" and I'm very proud of that my work is still in use and helps you to provide better simulation experience 🙂
Of course it was @MaDDogz idea to build a oxygen-supply-gauge. But I've picked up that idea an developed a complete new gauge from scratch, just using some images/assets from MaDDogz 😎

@OzWhitey I've had no idea how oxygen-supply works in real aircrafts or realworld. I created it the way I thought it could work 🙂 But If I have some time in future, mabye I come back to you to get info how it really works in real world an adapt it to make it more realitical.

I became aware of the thread, because @Doksas send me a private-message to gain help to get Oxynator work in P3D 5.4.
Sadly I have to say, that I'm still stick on P3D 4.5, so I can not reproduce or debug that issue by myself.

Because you changed nothing but the patch-level of P3D I do not believe, that an reinstall of everything bring "Oxynator" back to work. Possibly v5.4 has changed the way how lua-scripts are processed. Some Flytampa airport had issues with lua-scripts in v5.4 as well. But I wasn't able to figure out what exacly changed.

But like it look, the lua-script is executed, otherwise you won't get that error-message.

The lua-script is designed to catch the event of toggle the battery-switch and then toogle Oxynator-power as well. Maybe the way how event are handled are changed or the battery-Lvar itself. As a first try you can modify the lua-script to log more things, so we can figure out if the function to toogle Oxynator-Power will be called.

1) Please insert these two lines in the oxynator.lua directly below the line "function toogle_ready(var,val)"

ipc.log("OXYNATOR: toogling readystate")
ipc.log(val)

the function should than look eaxtly like this:

function toogle_ready(var,val)
    ipc.log("OXYNATOR: toogling readystate")
    ipc.log(val)
    if val == 0 then
        oxygen_rdy=0
        ipc.writeLvar("L:oxynator_readylamp",0)
        ipc.writeLvar("L:oxynator_level",0)
        ipc.writeLvar("L:oxynator_blood",0)
        if oxygen_on == 1 then
            toogle_oxygen()
        end
        ipc.log("OXYNATOR: NOT ready")
    else
        oxygen_rdy=1
        ipc.writeLvar("L:oxynator_readylamp",1)
        ipc.writeLvar("L:oxynator_level",math.floor(oxy_ckap))
        ipc.writeLvar("L:oxynator_blood",math.floor(ipc.readLvar("L:OxyBloodLevel")))
        
        ipc.log("OXYNATOR: ready")
    end
    toogle_refill_lamp()
end

2) start P3D, load a flight with your A2A plane, switch on the battery, wait some seconds and switch of the battery.

3) post the contents of "FSUIPC6.log" here.

 

 

Edited by cc_aero
Posted

Thanks for your time Rogen and cc_aero,

very, strange, i just add that two lines in oxynator.lua and gauge now work in A2A Comanche.

I also trying to add oxygen in Alabeo DA42 but in taht plane gauge not work, when i turn battery ON i got this message : OXYNATOR: Can not refill when power is off!

Posted

Very strange, this line does nothing other then write debuging-infos to the logfile. But If it's working now, then all is okay 🙂

Oxynator was original only designed for the A2A C182 and also was tested with the A2A Comanche.
Oxynator will never work with non A2A aircraft, because the gauge used A2A internal functions/variable that other aircrafts don't have.
I also can not gurantee that the gauge will work with every A2A aircraft.

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
  • 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...