Priyasloka Arya Posted October 13, 2012 Report Share Posted October 13, 2012 Hi I want to simulate multiplayer condition in my desktop for FS2004. I want to emulate traffic server via my own program and want to control the aircrafts (speed, position...) Is there any way I could inject traffic data via tcp/udp socket? Is there a format/data structure for multiplayer traffic and where I could find this information? As Pete said in other occasions, FSUIPC is not intended to create multiplayer conditions. Regards Arya Link to comment Share on other sites More sharing options...
Priyasloka Arya Posted October 14, 2012 Author Report Share Posted October 14, 2012 i was wondering how guys used to write multiplayer server program before FSX/Simconnect. Is there any open source multiplayer server/traffic program? Do anyone has source code for AIbridge? Link to comment Share on other sites More sharing options...
Priyasloka Arya Posted October 16, 2012 Author Report Share Posted October 16, 2012 i found multiplayer sdk for FS2004 which is nothing but a poorly captured word document. If anyone has working multiplayer code where we could inject a AI aircraft in multiplayer environment, please do share Link to comment Share on other sites More sharing options...
Michael Gaut Posted January 23, 2013 Report Share Posted January 23, 2013 Hi Arya, I have a piece of software that can do exactly this. I set it up many many years ago as "FSVPI", which stands for FS Virtual Pilot Interface but have long since taken it down and moved on. I've written many little apps as samples in order to try and win a contract with publishers and so on, but nobody ever signed on the dotted line! I'm quite happy to share this code now with the community. I must point out that in order to use it you need to be a proficient programmer. I have versions for Borland C++, Visual C++ and VB, although as I'm a Borland C++ user I would prefer if people used that one. :smile: What the software does is generate packets as if the software was a user in a multiplayer session. One piece of software can simulate multiple aircraft/users. What I've done (which took me a year!) is to figure out all the necessary calculations such that your application software can simply say "set this aircraft to fly at heading 123 degrees, 500 knots at altitude 10000ft". My software then fills in all the gaps and figures out for each packet that is sent exactly how far the aircraft will have moved and what it's new location is. When this is connected to your FS session, the aircraft appears and you can fly alongside it and it is totally smooth. I have a whole range of software functions to perform different activities. Unfortunately this has to be built from the ground up, so literally I have functions for performing turns, climbing and descending, landing and taking off and so on. The software is able to correctly manipulate all animations that are visible via the multiplayer interface, and it looks pretty good! This can also be used to provide ground vehicles that interact with any other aircraft in the session. These require different application software to control them, but basically they operate in the same way. If you have an aircraft "model" that actually appears as a fuel truck, then your software can control that fuel truck. Although this is all a bit tricky and requires programming knowledge, the beauty is that it is all real time so the aircraft / ground traffic that it controls can react to the position of other aircraft within the multiplayer session. There are no predefined "routes". Let me know if you're interested (or anyone else for that matter) and I'll arrange to get it ready for you to download. Best Regards Michael Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now