AnMaster

> Sent: 08 December 2007 11:55
> To: FlightGear developers discussions
> Subject: Re: [Flightgear-devel] multiplayer generic properties
> 
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> Yes, I already made a patch (see "[Flightgear-devel] Patch 
> for Harrier: making it's thrust vector work over mp") for the 
> harrier that makes use of this :)
> 
> And I can think of several other aircrafts that could make 
> use of this. For example position lights/anti-collision 
> lights of some aircrafts. Would make formation flying in the 
> dark over mp simpler.
> 
> Regards,
> 
> Arvid Norlander
> 
> Melchior FRANZ wrote:
> > After Maik has clued me up about multiplayer properties -- 
> that only 
> > those are transmitted, which actually exist at init time 
> (which is why 
> > they need to be defined in the *-set.xml file), it was time to add 
> > some generic properties for "internal communication". That is: 
> > properties which aren't dedicated to a particular function, 
> but can be 
> > used by an aircraft to send data to its mirror instances over MP.
> > 
> > There are for now:
> >   /sim/multiplay/generic/string[0-9]
> >   /sim/multiplay/generic/float[0-9]
> >   /sim/multiplay/generic/int[0-9]
> > 
> > Of course, this should be used sparingly. If you need to transmit a 
> > path, don't transmit the full path, but only the parts that 
> are really 
> > necessary. For example, the bo105 will only transmit "foo", when it 
> > actually means "Aircraft/bo105/Models/Variants/foo.xml".
> > The prefix and the ".xml" postfix will be stripped. There's 
> still the 
> > possibility to transmit "../../foo" if for some reason I 
> want to refer 
> > to a file elsewhere. (I didn't add double/long/bool, as 
> they would be 
> > transmitted as float/int/int, anyway.)
> > 
> > In one of the next protocol revisions, we won't have to 
> transmit these 
> > "single-shot" properties in every package (, I hope :-).
> > 
> > m.

Anders has a really neat bit-mask utility which allows the transmission of
up to 32 bools in one int property - much neater for light switches and the
like.

Vivian

P.S. - by tradition we bottom-post on the devel list



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to