Page 1 of 1

XML and gauge design

PostPosted: Fri Mar 07, 2003 11:25 pm
by microlight
I'd like to learn about .xml, what it is and what it does.
What I want to do is to design a 'phantom' gauge which activates the smokesystem at appropriate engine N1 on e.g. take-off, without having to manually press the 'I' key to get the smoke. There are downloads out there that claim to do this kind of thing, but I haven't got any to work yet, so I'm thinking about designing my own.

Can anybody help?
Thanks!
:)

Re: XML and gauge design

PostPosted: Sat Mar 08, 2003 2:00 am
by BFMF
You should download the Panel & gauges SDK from the FS insider @ http://zone.msn.com/flightsim/FS02DevDeskSDK15.asp

Re: XML and gauge design

PostPosted: Sat Mar 08, 2003 8:48 am
by microlight
Andrew,
Many thanks - I've downloaded the SDK, and will post how I get on.
:)

Re: XML and gauge design

PostPosted: Sat Mar 08, 2003 12:38 pm
by BFMF
Good luck :)

Re: XML and gauge design

PostPosted: Sat Mar 08, 2003 5:38 pm
by microlight
Andrew,
Well, I found a freeware XML editor on the web, and now I've got a working XML switch that turns the engine smoke on and off at 60%N1!! I'm going to run it for a few days to make sure that it's OK (should be - it's very simple), but do you think that it's the kind of thing that might be useful in the Downloads section? Certainly seems to add even more realism than having the smoke appear when you push 'I'.

Thanks!
:)

Re: XML and gauge design

PostPosted: Sat Mar 08, 2003 8:23 pm
by BFMF
That's great!

btw, where did you download this XML gauge editor?

Re: XML and gauge design

PostPosted: Sat Mar 08, 2003 10:13 pm
by microlight
It's called Peter's XML Editor, at www.iol.ie/~pxe/ (I found it using Google, entering 'xml editor'), and it seems to be pretty well designed; quite intuitive.

I feel more gauges on the way!
:)

Re: XML and gauge design

PostPosted: Sun Mar 09, 2003 12:13 am
by BFMF
Thanks for the link

Re: XML and gauge design

PostPosted: Sun Mar 09, 2003 1:50 am
by BMan1113VR
that looks usefull, must look in to that one

Re: XML and gauge design

PostPosted: Mon Mar 10, 2003 8:40 pm
by inbetween
Greetings,

XML gauge effects control is a good idea, and fun to do..

I did the afterburner for FSD's T-38 this way, and
effects for various CFS2 air craft imported to FS2002....these downloads have been available for several months at two other major sim sites....one can
search for "ICFX*" to d/l examples of XML gauge use with effects...the gauges in the d/l are not "cabbed" and are thus easy to edit and reuse...

One problem with using smoke effects is in the smoke
system itself: the coordinates used are bugged...
The values entered in the smokesystem section are, in
order:  vertical, fore/aft, and port/starboard, then effect
filename... the vertical coords  will do nothing in the SIM.

The fix for this is to adjust the vertical position of the effect from within the effect file itself, using the "Y Offset" parameter..

The effects SDK explains this offset method, but the bug
in the smokesystem is not noted....

JR

Re: XML and gauge design

PostPosted: Wed Mar 12, 2003 2:31 pm
by microlight
Many thanks for this information! I was wondering about the vertical parameter, since some of my smoke effects sit behind the engine as they should (by accident, I assume, now) whereas others, like on my favourite 727, sit about 6 feet below the engine exhausts.

You're right about XML gauges being fun to do. Is there any way of getting the smokesystem to do two different things, like engine smoke and wingtip contrails at the same time, but with different trigger parameters? I'm not sure it is, but would value help.
:)

Re: XML and gauge design

PostPosted: Wed Mar 12, 2003 5:48 pm
by inbetween
Greeetings,

Can the smoke effects do more than one thing at a time?
Only if you trick the SIM into doing so :)

I have used lights for effect location and activation, as there are 9 "types" available...

Strobes can be afterburners, wing vortex; taxi or logo lights can be flap vortex, etc..

Some smoke effects cannot be used with lights because of a MS bug: if the effect uses "type=19" sprites, no luck....if you use sprite "type=21", as in wing vortex, it will work ok...

Back to "smokesystem" effects:  the smoke system has only one "type"(unlike "lights" with 9 "types") and is either on or off...

I have tricked the SIM with some engine start-up effects I have done...the "smokesystem" has several entries:

engine start-up smoke, etc (lasts a short time)
orange flames (lasts a short time)
continuous blue flames (stops at shut-down)
trailing exhaust smoke in flight (stops at shut-down)

Each effect has an adjustable time delay in beginning and adjustable lifetime...so even though the "smokesystem" is "on" some effects are not seen as their time has run out until the "smokesystem" is turned on again...

The effects included in the AN-2 Colt by xomer are done this way...

Regards,

JR

Re: XML and gauge design

PostPosted: Wed Mar 12, 2003 10:53 pm
by microlight
Thanks, JR - more fun stuff to try!
:)