XML and gauge design

FSSC, Airport 2.*, CfgEdit, etc. Get to grips with designing Scenery & Panels here!

XML and gauge design

Postby microlight » Fri Mar 07, 2003 11:25 pm

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!
:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK

Re: XML and gauge design

Postby BFMF » Sat Mar 08, 2003 2:00 am

You should download the Panel & gauges SDK from the FS insider @ http://zone.msn.com/flightsim/FS02DevDeskSDK15.asp
BFMF
Colonel
Colonel
 
Posts: 16266
Joined: Mon Feb 25, 2002 6:06 pm
Location: Pacific Northwest

Re: XML and gauge design

Postby microlight » Sat Mar 08, 2003 8:48 am

Andrew,
Many thanks - I've downloaded the SDK, and will post how I get on.
:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK

Re: XML and gauge design

Postby BFMF » Sat Mar 08, 2003 12:38 pm

Good luck :)
BFMF
Colonel
Colonel
 
Posts: 16266
Joined: Mon Feb 25, 2002 6:06 pm
Location: Pacific Northwest

Re: XML and gauge design

Postby microlight » Sat Mar 08, 2003 5:38 pm

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!
:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK

Re: XML and gauge design

Postby BFMF » Sat Mar 08, 2003 8:23 pm

That's great!

btw, where did you download this XML gauge editor?
BFMF
Colonel
Colonel
 
Posts: 16266
Joined: Mon Feb 25, 2002 6:06 pm
Location: Pacific Northwest

Re: XML and gauge design

Postby microlight » Sat Mar 08, 2003 10:13 pm

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!
:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK

Re: XML and gauge design

Postby BFMF » Sun Mar 09, 2003 12:13 am

Thanks for the link
BFMF
Colonel
Colonel
 
Posts: 16266
Joined: Mon Feb 25, 2002 6:06 pm
Location: Pacific Northwest

Re: XML and gauge design

Postby BMan1113VR » Sun Mar 09, 2003 1:50 am

that looks usefull, must look in to that one
Sincerely,
Me

SimV NFL 2006-2007 Season Pool Co-Champion (157-99; 9-2)
SimV NFL 2005-2006 Season Pool Co-Champion (163-93)
SimV NFL 2004-2005 Season Pool Champion (1
User avatar
BMan1113VR
Lieutenant Colonel
Lieutenant Colonel
 
Posts: 8661
Joined: Fri Feb 01, 2002 12:37 pm
Location: Los Angeles, California

Re: XML and gauge design

Postby inbetween » Mon Mar 10, 2003 8:40 pm

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
inbetween
Ground hog
Ground hog
 
Posts: 19
Joined: Sat Mar 08, 2003 2:57 pm
Location: USA

Re: XML and gauge design

Postby microlight » Wed Mar 12, 2003 2:31 pm

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.
:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK

Re: XML and gauge design

Postby inbetween » Wed Mar 12, 2003 5:48 pm

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
inbetween
Ground hog
Ground hog
 
Posts: 19
Joined: Sat Mar 08, 2003 2:57 pm
Location: USA

Re: XML and gauge design

Postby microlight » Wed Mar 12, 2003 10:53 pm

Thanks, JR - more fun stuff to try!
:)
User avatar
microlight
Major
Major
 
Posts: 2076
Joined: Mon Aug 19, 2002 6:24 pm
Location: Southern UK


Return to Scenery & Panel Design

Who is online

Users browsing this forum: No registered users and 260 guests