Re: [Flightgear-devel] How to drive multiplanes using external d ata

2006-12-13 Thread Stuart Buchanan
--- tangyong wrote:
 My project need to drive multiplanes using external data saved in a
 file.Does I have to study the multiplayer protocol?How to abuse that
 system to introduce additional aircraft into the scene. 

Hi Tangyong,

As with all these things, there is more than one way to do it...

Like everything else in FG, Multiplayer and AI aircraft are all held in
the property tree. In this case, under a /ai node.

One option would be to populate that tree using the generic I/O protocol.
See Docs\README.IO for details. As a first step, I suggest you look at the
property browser when in a multiplayer session and see how the nodes are
put together. Then write a protocol definition file to define the data you
wish to replay. You'd probably have to put then under the AI aircraft
sub-tree rather than multiplay to avoid confusing the MP system, but it
should work.

An alternative is to use the AI sub-system to define the flights you want
the aircraft to take. Have a look at the ai-demo.xml file for details.

Hope this helps.

-Stuart



___ 
Try the all-new Yahoo! Mail. The New Version is radically easier to use – The 
Wall Street Journal 
http://uk.docs.yahoo.com/nowyoucan.html

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] How to drive multiplanes using external d ata

2006-12-12 Thread tangyong
 
My project need to drive multiplanes using external data saved in a file.Does I 
have to study the multiplayer protocol?How to abuse that system to introduce 
additional aircraft into the scene. 

 
 -
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT  business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel