Board index FlightGear Support Multiplayer

Setup a multiple aircrafts arena

Trouble getting online, setting up a server?
Forum rules
In order to help you, we need to know a lot of information. Make sure to include answers to at least the following questions in your initial post.

- what OS (Windows Xp/Vista, Mac etc.) are you running?
- what FlightGear version do you use?
- copy&paste your commandline.

Please, also see Requesting Technical Help.

Note: If you did not get a reponse, even after 7 days, you may want to check out the FlightGear mailing lists to ask your question there.

Setup a multiple aircrafts arena

Postby Droogie » Sun Feb 17, 2019 3:01 pm

Hi,
I would like to send flight data (position...) over socket of multiple aircrafts (without running FlightGear if possible), and to collect and display all these data in one instance of FlightGear,
How can I do this ?
Thanks
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Setup a multiple aircrafts arena

Postby wkitty42 » Sun Feb 17, 2019 9:17 pm

if flightgear is not running, where do you expect to send the data?
maybe you can be more clear about what you are attempting to do?
"You get more air close to the ground," said Angalo. "I read that in a book. You get lots of air low down, and not much when you go up."
"Why not?" said Gurder.
"Dunno. It's frightened of heights, I guess."
User avatar
wkitty42
 
Posts: 9146
Joined: Fri Feb 20, 2015 4:46 pm
Location: central NC, USA
Callsign: wk42
Version: git next
OS: Kubuntu 20.04

Re: Setup a multiple aircrafts arena

Postby vanosten » Mon Feb 18, 2019 7:06 am

I guess you want to somehow calculate flightdata for other planes outside of FlightGear and then just transmit the data to your single FG instance. There are IMO 2 possibilities: use e.g Telnet to manipulate AI objects - that will only be visible for your FG instance. Or use multiplayer to make it visible for everyone (or only yourself if you use a privte MP server). You do not have to use an FG indtance to send data to MP. E.g. OpenRadar uses a Java implementation to talk to MP.

In case you intend to do something in Python with MP, then please let me know.
Maintaining osm2city. Contributing with ground attack stuff to the OPRF FlightGear military-simulation community.
vanosten
 
Posts: 540
Joined: Sat Sep 25, 2010 6:38 pm
Location: Denmark - but I am Swiss
Pronouns: he/his
Callsign: HB-VANO
Version: latest
OS: Win 10 and Ubuntu

Re: Setup a multiple aircrafts arena

Postby Droogie » Wed Feb 20, 2019 10:40 pm

As vanosten mentioned, I have my own engine, and other aircrafts behavior are calculated in this application, and all I have to do is send their positions to flightgear over udp connection so it can be rendered.
But the problem is that I don’t know the protocol to send data of multiple aircrafts.
Droogie
 
Posts: 11
Joined: Mon Apr 09, 2018 3:55 pm

Re: Setup a multiple aircrafts arena

Postby drR0ckso » Wed Apr 10, 2019 1:35 pm

Your best resource is the wiki for this question. The multiplayer protocol is documented there and it's behavior explained. Alternatively, you could use python and telnet to the status port of a MP server (5001), and feed that information into your engine through other means.
I speak only for myself.
drR0ckso
 
Posts: 37
Joined: Fri May 12, 2017 4:14 am

Re: Setup a multiple aircrafts arena

Postby ORZMUD » Wed Apr 24, 2019 5:51 am

This is something I was also toying around a few months ago (almost a year!), but didn't had the time to complete.
I was using ADSB data captured from a FM antenna feed to a raspberry pi with an rtl-sdr decoder and was trying to display the traffic in FGFS.

Let me know if this is something similar to what you're trying to achieve, I'm interested.

Regards,
ORZMUD
 
Posts: 36
Joined: Tue Mar 19, 2019 10:59 am
Location: Carlsbad, CA
Callsign: ORZMUD
Version: 2019.2.0
OS: Linux

Re: Setup a multiple aircrafts arena

Postby Hooray » Sat May 04, 2019 1:35 pm

there is a dedicated interfacing mechanism called "external fdm" for exactly this sort of thing
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Setup a multiple aircrafts arena

Postby ORZMUD » Mon May 06, 2019 5:44 am

Thanks @Hooray for the tip.
I'll start the search.

Regards,
ORZMUD
 
Posts: 36
Joined: Tue Mar 19, 2019 10:59 am
Location: Carlsbad, CA
Callsign: ORZMUD
Version: 2019.2.0
OS: Linux


Return to Multiplayer

Who is online

Users browsing this forum: No registered users and 3 guests