September 6, 200619 yr Wonder if you can also query multi-player aircraft via Simconnect when in a MP session?Would make it easy to write a module that padlocks cockpit camera to nearest MP aircraft for formation flying.
September 6, 200619 yr Moderator >Have you found anyway to query the FSX database for airport>and navaid info?>>I think all the info that can be displayed in the default FSX>GPS should be made accessible via SimConnect.>>Maybe there's some otherway to do it?It's available to C gauges via the gpsinfo.h file (and others)...It's not a trivial exercise, but the methods are in the gauges.h file... Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
September 6, 200619 yr >Wonder if you can also query multi-player aircraft via>Simconnect when in a MP session?>>Would make it easy to write a module that padlocks cockpit>camera to nearest MP aircraft for formation flying.I can't imagine why not. I don't have the API reference right next to me, but there's a command to call a reference to a specific object or all objects of a type within a range. Create a list of mp airplanes and when you click on one, it creates a vector using the position of your plane and the other plane and adjusts your camera angle to point along that vector.
September 6, 200619 yr I looked at Simconnect and it doesn't mention Multi Player much, which in itself is interesting because the FS2004 NetPipes SDK is being deprecated according to the SDK Overview. Maybe there will be additional Multi Player functionality in the final release of the SDK.Regarding Cameras, the CameraSetRelative6DOF only works on the user aircraft as it controls the eyepoint and the direction you look in.SimConnect does allow you to connect to multiple instances of FSX, so if you know the IP address of the other players you can connect to them and get information about their aircraft. But so far it looks like the multi player functionality is part of FSX itself and can not be controlled much via SimConnect.And the GetSimobjectData functions don't seem to have a way of getting at Multi Player aircraft either (unless they show up as AI Aircraft).But maybe the Multi Player info is available via other parts of the SDK that we havent't looked at yet (just like Bill mentioned that the GPS info such as airports and waypoints can be accessed via the gauges SDK).
September 6, 200619 yr >I looked at Simconnect and it doesn't mention Multi Player>much, which in itself is interesting because the FS2004>NetPipes SDK is being deprecated according to the SDK>Overview. Maybe there will be additional Multi Player>functionality in the final release of the SDK.>I'm pretty sure that there won't be, as the multiplayer is handled through Gamespy, which is a proprietary software.>Regarding Cameras, the CameraSetRelative6DOF only works on the>user aircraft as it controls the eyepoint and the direction>you look in.>What else do you need from the function than to set the direction you are looking at?>SimConnect does allow you to connect to multiple instances of>FSX, so if you know the IP address of the other players you>can connect to them and get information about their aircraft.>But so far it looks like the multi player functionality is>part of FSX itself and can not be controlled much via>SimConnect.>Same as one, but as I'll mention in the next section, technically I think there are still ways.>And the GetSimobjectData functions don't seem to have a way of>getting at Multi Player aircraft either (unless they show up>as AI Aircraft).>I'm looking at the documentation, and I'm not sure you're correct. The definition says "SimConnect_RequestDataOnSimObjectThe SimConnect_RequestDataOnSimObject function is used to request when the SimConnect client is to receive data values for a specific object."SimObjects refer to everything from planes to rhinos, so I don't know why mp aircraft would be any different. I haven't tested it though, have you?>But maybe the Multi Player info is available via other parts>of the SDK that we havent't looked at yet (just like Bill>mentioned that the GPS info such as airports and waypoints can>be accessed via the gauges SDK).Not that I've found. Oh well, I'll keep looking.
September 7, 200619 yr >What else do you need from the function than to set the>direction you are looking at?I agree. My response was aimed at JuiceRabbit's question of creating a camera that follows a multi player. I don't think that is possible with simconnect.>SimObjects refer to everything from planes to rhinos, so I>don't know why mp aircraft would be any different. I haven't>tested it though, have you?>I tried RequestDataOnSimObjectType first, but had no luck with that. All I get is data for the user aircraft, even when I ask for AI traffic. I then tried RequestDataOnSimObject and that works. I get details on AI aircraft, boats, fuel trucks, ground power units, etc ...
September 7, 200619 yr >>What else do you need from the function than to set the>>direction you are looking at?>>I agree. My response was aimed at JuiceRabbit's question of>creating a camera that follows a multi player. I don't think>that is possible with simconnect.>>>SimObjects refer to everything from planes to rhinos, so I>>don't know why mp aircraft would be any different. I>haven't>>tested it though, have you?>>>>I tried RequestDataOnSimObjectType first, but had no luck with>that. All I get is data for the user aircraft, even when I ask>for AI traffic. I then tried RequestDataOnSimObject and that>works. I get details on AI aircraft, boats, fuel trucks,>ground power units, etc ...I guess I was wondering if anyone had tested it during a multiplayer flight.
September 7, 200619 yr Heh. And there's all those people saying that nothing's changed. SimConnect is going to open the sim right up, there's not much that you can't tinker with.I've had AI doing formation flying going for a while among other things to enhance the mission system. There's a (very) few notable omissions, but there's talk of post-release SimConnect updates so hopefully they'll get fixed before too long.Certainly plenty to keep people busy until then, and a long time after.Cheers,Jim
September 7, 200619 yr Hi,If you want a list of AI, you've got to specify a range (and change the type to SIMCONNECT_SIMOBJECT_TYPE_AIRCRAFT of course). The docs say that a range of 0 returns everything but it doesn't seem to work for me, at least the last time I tried. I specify a huge distance; that gives an error but then returns the list of all the AI anyway.You can query the LLA of the user and any AI you choose, and then do some maths on the values to get the camera point and target.I've not tried it with MP but I imagine the principles are the same.HTHJim
September 7, 200619 yr Moderator >I'm pretty sure that there won't be, as the multiplayer is>handled through Gamespy, which is a proprietary software.Actually, Gamespy is like a Dating Service - it only allows "Host" sessions to be "advertised" in the Lobby. Once a connection is made, Gamespy's "job" is done.In fact, quite often I'll receive notice that my "...Connection with Gamespy..." is broken, but I remain connected to the current Host and can continue in the multiplayer session as long as I want and/or the Host remains active! ;) Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment