Search the archive:
YaBB - Yet another Bulletin Board
 
   
 
Page Index Toggle Pages: 1
Send Topic Print
There are engine fire flags in the FS2004 sim! (Read 1504 times)
Apr 11th, 2005 at 9:45pm

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
In reading the SDK from Peter Dowson's FSUIPC, I noticed that at offset hex 3366 there is a one byte value that indicates fires in engine 1 through 4 through the values of the bits at 2^0 thru 2^3.

This is VERY interesting news to me.  It makes the creation of a truly functional fire detection and suppression panel for up to a 4 engine a simpit more of a reality.  (wish the APU was simulated too!)

You would write code to monitor those values.  When one or more of them goes "true", you have them drive engine "fire" annunciator lights (and maybe a horn sound).

Then you write more code into the routine that activates the "suppression" mode when you close a switch for the engine in question.  That action would affect all the typical systems that the real system would affect on the aircraft...... shutting off stuff like bleed air, fuel valves,  generator, hydraulic pump, shutting down the engine, and so on.  This would be accomplished simply by writing values to the appropriate offsets in FSUIPC to accomplish these tasks.

Now if only there were a way to also key this to an effect file for each engine  Wink.

Has anyone reading this done any work with these values?

best,

........................john
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #1 - Apr 11th, 2005 at 11:01pm

SilverFox441   Offline
Colonel
Now What?
Mississauga, Ontario, Canada

Gender: male
Posts: 1467
*****
 
It can be written to an effect file. Smiley

There are a number of "Lights" available that are used for effects...

1 – Beacon
2 – Strobe
3 – Navigation or Position
4 – Cockpit
5 – Landing
6 – Taxi
7 – Recognition
8 – Wing
9 – Logo
10 – Cabin

Logo lights are very popular for afterburners...but you could use any of these as a trigger. A 4 engine plane would need 4 triggers...but it is possible.

Engine Fire in #1 would then turn on the Recognition Lights...suppresion would turn them off.

#2= Wing Lights
#3=Logo Lights
#4=Cabin Lights

Think you could live with those restrictions? If so...then it is possible.
 

Steve (Silver Fox) Daly
&&
IP Logged
 
Reply #2 - Apr 11th, 2005 at 11:28pm

SilverFox441   Offline
Colonel
Now What?
Mississauga, Ontario, Canada

Gender: male
Posts: 1467
*****
 
Just had a thought...

Can FSUIPC accesss specific lights?

What I mean is can it be used to turn on say, Light #12?

You could then set up a lights section like so:

[LIGHTS]       
//Types: 1=beacon, 2=strobe, 3=navigation, 4=cockpit, 5=landing
light.0=3, -52.22,-103.52, 11.38, fx_navredh ,
light.1=3, -52.22, 103.52, 11.38, fx_navgreh ,
light.2=3, -54.34,-103.64, 11.38, fx_navwhih ,
light.3=3, -54.34, 103.64, 11.38, fx_navwhih ,
light.4=3,-139.00,   0.00,  8.42, fx_navwhih ,
light.5=2, -51.00,-103.40, 11.38, fx_strobeh ,
light.6=2, -51.00, 103.40, 11.38, fx_strobeh ,
light.7=1,  -5.00,   0.00, -6.25, fx_beaconb ,
light.8=1,  22.00,   0.00, 18.30, fx_beaconh ,
light.9=4,  93.21,   0.00,  8.75, fx_vclighth ,
light.10=9 0.00, 0.00 0.00 fx_engine fire
light.11=9 0.00, 0.00 0.00 fx_engine fire
light.12=9 0.00, 0.00 0.00 fx_engine fire
light.13=9 0.00, 0.00 0.00 fx_engine fire


The last 4 lights are all Logo Lights... but if FSUIPC can turn on specific lights then you can specify each engine fire effect individually. The co-ordinates would have to be set up properly for each engine...but that is no big problem.
 

Steve (Silver Fox) Daly
&&
IP Logged
 
Reply #3 - Apr 12th, 2005 at 12:36am

JBaymore   Offline
Global Moderator
Under the curse of the
hombuilt cockpit!

Gender: male
Posts: 10261
*****
 
SilverFox,

We are beating around on something interesting here.   Wink

FSUIPC can directly access a certain number of lights... I'll have to research it to be sure how many and how.  More on that later.

The real question here is what engine conditions will cause those engine fire offset values to "trip" to a "true" state?  That would be in the coding that Microsoft put into what controls those flags.  That they exist is already documented.  When and IF they change state is another whole question.

Do combinations of things have to happen to create a "fire"?  Or is it a single vairiable that is "monitored"......... say maybe EGT or ITT.  Or maybe RPMs.  Who knows.  That is stuff that really needs to be explored.

I already have a good engine fire fx that I set up to trigger on the "smoke" key.  makes a mess....... but slowly developing + getting worse with time.  As you said............ it'd just be a matter of relocating the effect in X,Y,Z coordinate space to put it on each engine.

best,

..................john
 

... ...Intel i7 960 quad 3.2G LGA 1366, Asus P6X58D Premium, 750W Corsair, 6 gig 1600 DDR3, Spinpoint 1TB 7200 HD, Caviar 500G 7200 HD, GTX275 1280M,  Logitec Z640, Win7 Pro 64b, CH Products yoke, pedals + throttle quad, simpit
IP Logged
 
Reply #4 - Apr 12th, 2005 at 12:46am

SilverFox441   Offline
Colonel
Now What?
Mississauga, Ontario, Canada

Gender: male
Posts: 1467
*****
 
hmmmm....

It might be possible right now to make a guage that would monitor the engine failure states and turn on the appropriate light.

This could lead in a very interesting direction. Smiley
 

Steve (Silver Fox) Daly
&&
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print