Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16

Thread: Suppress the users flight from AI

  1. #1

    Default Suppress the users flight from AI

    Dear Microsoft developers,

    I know I'm very late on this one, but eventually this small change can still make it into FSX.

    In FS9, when someone has real world or Virtual Airline AI traffic schedules installed and flies one of the schedules, the AI plane of the same flight is still generated, resulting in 2 aircraft with the same callsign. Please add to the AI logic to suppress or remove an AI aircraft if its atc_airline and flight number are identical to the current user aircraft setting.


    Thank you
    Jan
    Anyone who trades liberty for security deserves neither
    liberty nor security. -- Benjamin Franklin

  2. #2
    Join Date
    Jan 1999
    Location
    Warren, Michigan, USA
    Posts
    9,977

    Default RE: Suppress the users flight from AI

    Hi,

    So this would mean:

    FS would have to recongnize that you are flying the same flight BEFORE you start FS. Why? Because all traffic bgls are loaded during the start of FS.

    Then the traffic file would need to be decompiled.

    Then the one plan would need to be suppressed.

    Then the traffic file would need to be recompiled.

    How about when the flight was finished? Do this all again to re-activate the flight?

    Wouldn't be easier to change the callsign of your plane from the aircraft screen?

    Hope this helps,
    Jim
    http://www.hifisim.com

    http://sales.hifisim.com/pub-downloa...evelopment.jpg http://sales.hifisim.com/pub-downloa...nner-proud.jpg [hr][link:www.jdtllc.com|http://www.jdtllc.com/images/rcv4bannersupporter.jpg]

  3. #3
    monkeybdg Guest

    Default RE: Suppress the users flight from AI

    I must agree with Jimbo here.
    ---
    Flight time: 2 hours in a Cessna 172, registration ZK-ETU at Nelson Aero Club in New Zealand

  4. #4

    Default RE: Suppress the users flight from AI

    How come that I can open the traffic toolbox and "zap" an AI aircraft I don't like without decompiling, editing and recompiling the traffic.bgl? I can do this only while FS9 is running. Why? Because the traffic toolbox is communicating with the running simulation.

    Since I can do this interactively by looking at the ttbox aircraf list, finding my airline and flight number (which are also known to the simulation), one could write an add-on that does this, interacting with the simulator via the same API the ttbox does, doing some string comparision and calling the delete-aircraft method. I am sure this functionality could easily be integrated into add-ons like AISmooth or AI-Separation. Existing utilities which would be entirely impossible if tampering with AI would require the hoops you want to jump. Downside of this implementation is that the AI would first be generated by the simulation, then a second later or so deleted by the add-on. So doing it by suppression inside the simulation would be the preferred way.

    Don't make it more complicated than it is.


    Jan
    Anyone who trades liberty for security deserves neither
    liberty nor security. -- Benjamin Franklin

  5. #5

    Default RE: Suppress the users flight from AI

    Indeed, it would certainly be possible to do precisely what you suggest, if there were such an API... :P
    Bill Leaming
    Gauge Programming - 3d Modeling Eaglesoft & Military Visualizations
    Flightsim.com Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - GeForce GTX550Ti 1GB - Win7 64bit Home Premium
    Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
    Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
    NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

  6. #6

    Default RE: Suppress the users flight from AI

    >Indeed, it would certainly be possible to do precisely what
    >you suggest, if there were such an API... :P

    If an external program or dynamically linked add-on (like AISmooth, AI-Separation or the traffic toolbox) can produce a list of existing AI aircraft, delete an AI aircraft or modify its behaviour, then there is an existing API to do that.

    I must be really missing something here. Are you telling me no such API exists, despite the fact that existing applications use it?

    And even if ... lets assume for a moment that said API does not exist. The traffic toolbox does display a list of AI aircraft including their atc_airline and flight number. This data is coming from somewhere inside the simulation. A simple string matching algorithm can find a conflicting AI aircraft since the users atc_airline and flight number are known to the simulation too. You don't think that the simulation itself could at this point invoke the code, that is called by the traffic toolbox's delete functionality? Which gets us back to the non-existent API, the traffic toolbox is apparently using.

    Want to continue maintaining there is no such API? I didn't ask for a documented API. I asked to implement the functionality right inside the simulation. You come across like someone who knows about interfacing with FS. I have a Masters in CS and earn my living by coding database core engine crap in C, so you can take the high road explaining to me why you think my wish is so difficult to implement.


    Jan
    Anyone who trades liberty for security deserves neither
    liberty nor security. -- Benjamin Franklin

  7. #7
    Join Date
    Mar 2005
    Location
    Ilford, Essex, UK
    Posts
    1,244

    Default RE: Suppress the users flight from AI

    He's right about TrafficToolbox, you can see the list of planes and delete one, I've done it before with annoying little Cessna's that get in my way when I'm trying to land.

    Nothing worse than an AI Cessna doing bump'n'goes given permission to be in front of you going so slow he's behind you when you're in a Jet at 120+ KIAS.

  8. Default RE: Suppress the users flight from AI

    Hi Jan,

    Yes, this would be very doable in FSX I'm sure. However, having an AI plane "wink out" when you load a certain plane (or change your flight number) might generate some support calls to MS, something I assume they avoid.

    I like the idea, though. I fly using real timetables, so I often have to delete the same flight in the AI traffic.

    Take care,

  9. #9

    Default RE: Suppress the users flight from AI

    >Want to continue maintaining there is no such API? I didn't
    >ask for a documented API. I asked to implement the
    >functionality right inside the simulation. You come across
    >like someone who knows about interfacing with FS. I have a
    >Masters in CS and earn my living by coding database core
    >engine crap in C, so you can take the high road explaining to
    >me why you think my wish is so difficult to implement.

    Jan, you are working under several false assumptions.

    First, since you mention 'bona fides,' I'll add here that I too have an MS in CompSci from the University of Florida, Gainesville. In fact, I taught undergraduate courses there during my post-grad years. Now that I am retired, I earn my living doing 3d modeling and gauges/systems programming for FS (see my signature block). I daresay that it's indeed possible that I know a thing or two about "interfacing with FS."

    Secondly, the feature set for FSX is already closed. Your suggestion is an excellent one, and I for one am with you 100% on this issue. I'll use all of what little influence I may have to make sure that it is added to the next iteration.

    Finally, the add-on utilities you mention (such as AI-Smooth) only work because the author took the time to ascertain through hours of patient trial-and-error the specific pointers being used. This is precisely what Pete Dawson has done with FSUIPC. Each iteration of FS has required going back to the drawing board to spend yet more hours determining the new pointers.

    There may well be some form of "API" that is used by the MS/FS "Traffic Toolbox," but if so it is strictly for use by the folks at ACES. However, I sincerely doubt that they would invest time to create an API for internal use only. That would be silly, since they already know the pointers required! ;) In fact, the "Traffic Toolbox" was originally created as a "tool" for their own development efforts, and was only released to the public as an afterthought.

    The question should be, would I like to see AI included in the SDK? Of course! I'd like to see a lot more exposed in the SDK. At the moment, several crucial things are missing (or simply don't work!) from the GPS interface. For example, it is impossible to load a flightplan programmatically from within a gauge. Between myself and two of my fellow programmers, we've managed to almost fully exploit the sim's gps.dll in C++/GDI+, but are having to spend an inordinate amount of time implementing the last few features necessary to have a fully functional FMS/FMC/GPS that uses the internal FS database, instead of relying on a 'custom,' external database.

    When I visited ACES some months ago, I learned that much of the stuff in the fs9gauges.h file was left in place more by accident than design. They added it only because it was needed for them to program the gps.dll, trafficinfo.dll and a handful of other modules that were needed to support the default, XML-based GPS. They never envisioned anyone using the "leftbehind functions" to build a C++ GPS! ;)

    After long discussions between myself and the Lead Panel Programmer at ACES (Susan A.*), I sincerely hope that the forthcoming SDKs will feature a more robust, richly-featured interface, but also am pragmatic enough to realize that it isn't likely to happen this time around... :-(

    *Bless Susan's heart for showing me how I could use ConvertStringToProperty to obtain the pointer(s) needed, since they will definitely be changing in FSX.
    Bill Leaming
    Gauge Programming - 3d Modeling Eaglesoft & Military Visualizations
    Flightsim.com Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - GeForce GTX550Ti 1GB - Win7 64bit Home Premium
    Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
    Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
    NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

  10. #10

    Default RE: Suppress the users flight from AI

    Bill,

    I didn't mean to be rude.

    I was wondering if the documented FSUIPC functionality to delete AI aircraft by writing the TCAS_DATA with an empty atc id actually would do the trick or if that is only meant for traffic info from external sources, formerly created that way. I don't have a full FSUIPC license and buying one just to find out that it eventually doesn't work is not what I intend to do.

    Unfortunately the trafficinfo.dll only provides methods to query the traffic. It would be cool to write a gauge that silently slaughters the AI clones. I played around with gauge programming in C (nothing fancy, just enought to know how these widgets are done). And I would be able to get it that far that I have the FS internal AI aircraft ID ... and there I'm stuck. If only I could figure out how the ttbox actually does the delete ;-)


    Jan
    Anyone who trades liberty for security deserves neither
    liberty nor security. -- Benjamin Franklin

Similar Threads

  1. Suppress annoying messages
    By Relax in forum FSX
    Replies: 6
    Last Post: 10-24-2006, 04:52 PM
  2. How do you suppress your own flight from AI?
    By JanniCash in forum Virtual Airlines
    Replies: 0
    Last Post: 04-11-2006, 06:51 PM
  3. Suppress a specific AI plane/flight
    By JanniCash in forum FS2004
    Replies: 5
    Last Post: 03-08-2005, 01:24 PM
  4. Question for Flight Deck III users
    By oldbill in forum FS2002
    Replies: 0
    Last Post: 05-28-2003, 01:16 PM
  5. Question for Abacus Flight Deck III users
    By oldbill in forum FS2002
    Replies: 1
    Last Post: 05-26-2003, 11:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •