Jump to content
The simFlight Network Forums

Updating/injecting AI traffic


Recommended Posts

The FSUIPC SDK docs state that the AI traffic information in FS2002 is read-only. Does anyone know if the AI traffic will be writable in FS2004?

And if it is writable will it be possible to also specify the AI aircraft's attitude (pitch, bank, heading) in addition to it's lat/lon/altitude?

If not am I missing some other mechanism that is available that allows a programmer to inject 1 or more additional aircraft into the sim and be able to specify their attitude as well as their 3D position?

I guess maybe I should look at the multi-player SDK, maybe that will allow me to inject another plane programatically?

Thanks

Link to comment
Share on other sites

The FSUIPC SDK docs state that the AI traffic information in FS2002 is read-only. Does anyone know if the AI traffic will be writable in FS2004?

No it isn't.

If not am I missing some other mechanism that is available that allows a programmer to inject 1 or more additional aircraft into the sim and be able to specify their attitude as well as their 3D position?

Only the muiltiplayer interface can do that. AI traffic are just one step up from the older dynamic aircraft, as exploited so well by Lago's original FSTraffic package.

I guess maybe I should look at the multi-player SDK, maybe that will allow me to inject another plane programatically?

Yes, that is part of its function. Unfortunately you can't have both AI traffic and MP traffic in the sim together. Don't ask me why. At least, it was that way in FS2002 and I don't think it has changed. Maybe someone will prove me wrong? Let's hope so.

Regards,

Pete

Link to comment
Share on other sites

I have this stupid idea for some time:

2 FS one with multiplayer and injecting multplayer application. Another with AI and a program that get's the AI information.

The FS1 program will read own plane position and commands a simillar plane if FS2. FS2 program will read AI position, change it's beahviour and injects the modified data as multiplayer in FS1.

Strange but could work 8)

José

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.