Jump to content
The simFlight Network Forums


  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About BenBaron

  • Rank
    Advanced Member
  • Birthday 01/01/1970

Contact Methods

  • Website URL

Profile Information

  • Gender
  • Location
  1. Cant read nearest icao in c#

    Awesome Paul! Thanks for the quick change.
  2. Cant read nearest icao in c#

    Paul, from what I could see all those ID numbers seem to be negative. Hope that helps. All the best, Benny
  3. Cant read nearest icao in c#

    Hi Paul, a happy new year to you. I did some tests regarding online traffic at IVAO: as I expected, the 3 static lists for AI traffic are filled and information like position, altitude, speed, identifier and such are visible. Of course, there is no information on departure, destination or gates available. So, maybe you can work from there? Greets, Benny
  4. Cant read nearest icao in c#

    Ok, I will test this when I get back home to my system where I am also flying online. I don't know how you are checking if the user plane is at a certain parking spot, but I thought that if the online planes appear in the AI Table (which I think they do as they are only AI objects which were released from the simulator control and are controlled by e.g. the IVAO pilot client software) with just their coordinates you could possibly take those and perform the same check like you do with the user plane. If it works, might definately be a neat feature ;). Benny
  5. Cant read nearest icao in c#

    Hi Paul, so here comes a new question :) : I simply wasn't able to test this out yet, but wanted to ask you beforehand: The facility to check, if a parking spot is occupied by AI, does it also take online traffic into account? Please correct me if I am wrong, but I guess no, as you might be using the internal AI table to query for the relevant information like departure airport, arrival airport etc, which, of course, cannot be filled in for online traffic. But as the online traffic is normally injected as AI and thus should be generally visible, maybe you could check them the same way like you do with the player? I guess, you are doing a check with a rectangle there to determine if the player is at a specific gate or not... . Thanks in advance. Greets, Benny
  6. Cant read nearest icao in c#

    Very nice, Paul. Thank you very much...this seems to have fixed it. No position shift occured during my last testing. Greets, Benny
  7. Cant read nearest icao in c#

    Hi Paul, so far, everything is working quite well, but I noticed one weird thing: Upon calling FSUIPCConnection.AirportsDatabase.SetReferencePosition() in a timer I get some sort of spontaneous horizontal aircraft shifts within the simulator where the plane suddenly seems to be relocated some meters left or right. If I don't call it, the shifts disappear and the shorter the timer intervall, the more shifts do occur. They also occur in slew mode. This is in P3Dv3. I am supposed to call this before every call to FSUIPCConnection.AirportsDatabase.Airports.InRangeOfNauticalMiles(), right? Maybe you got an idea what might be causing this as I don't know what SetReferencePosition() does in the background :-). Greets, Benny
  8. Cant read nearest icao in c#

    Hi Paul, I noticed one thing: once I call FSUIPCConnection.AirportsDatabase.Load(), my RAM usage jumps by around 120 MB. I guess, this is to be expected as there are a lot of strings involved which are loaded into memory. Apart from the fact that we have enough memory available nowadays, so this shouldn't be a huge problem, let me make one suggestion for improvement efficiency-wise: As, at least for my application, I am only going to use a fraction of all available airports, maybe you could add an overload for FSUIPCConnection.AirportsDatabase.Load(), which takes a list of strings as parameter containing all the ICAO codes you are interested in during this session and then only include those into the database? This way, the memory consumption could be reduced considerably, most probably. But I don't know your dlls architecture...so if this was too much of a hassle, no urgent need to bother with it ;-). Plus, I don't know if the airport database is supposed to be freed on FSUIPCConnection.Close(). If not, maybe you could add an explicit call to unload the database, so you are clearing all the internal references to the datatables making them eligible for garbage collection. Greets, Benny
  9. Cant read nearest icao in c#

    Hi Paul, awesome...thanks for your work. I will let you know, how it goes when I had time to work with it. You and Pete, have a nice first advent. All the best, Benny
  10. Cant read nearest icao in c#

    Yes..it depends on the used scenery. Normally, most good Addon sceneries have those gate assignments. But I guess the default ones don't. Very nice that you are going to implement my suggestions. Looking forward to it. Greets, Benny
  11. Cant read nearest icao in c#

    Hi Paul, did some quick tests with my demonstrator and works like a charm, so far. A huge thumbs up for such great work! I have got two "feature questions", if they are possible and not to hard to implement. The first one could be fairly easy to implement, for my understanding, given the already in-place files-to-database-algorithm for the makerunways files: In the g5.csv file, the last values can be the airlines those Gates are typically allocated for, looking like this, for example: LSZH,E,64,47.461383,8.551179,23.0,64.7,8,7G_,BAW,UAL,AAL,EZY,AWE,USA,QTR,SIA,AUI,ELY,CYP,AFL,MGX,DAL,PGT,RJA,ACA,UAE,SIA,SAA,THA,UAL I didn't find anything about it in an instance of the FSGates class, or maybe I overlooked it? If not, maybe you could add a list with an "FSAirlinesCollection" class for each FSGate and split the airline strings as class "FSAirline" into this list? The second one might be harder to implement and I don't know if it is doable at all: would it be possible to add a reference to the relevant AIPlaneInfo class object to the FSGate class, if a gate is occupied by AI-Traffic? Thanks in advance for your considerations and hard work. All the best, Benny
  12. Cant read nearest icao in c#

    Interested to see, if they do anything about it, at all. Did some further tests with P3Dv3 at my home computer. The result is definately different than what I am seeing in FSX:SE and also "somehow" more reliable. At least EDDC, EDDT and EGLL are now in the list that is returned by SimConnect when I am positioned at those airports. KJFK on the other hand, is still not :-/. Greets, Benny
  13. Cant read nearest icao in c#

    Well, I don't know for sure, but in this thread the last post describes that all of those lists seem to be unreliable at one point or another. He connects it with subscribing to more than 2 different types of facilities. Benny
  14. Cant read nearest icao in c#

    Hi Pete, at the instant, I don't have something quick to show, either, because I did all my testing for a certain project on one demonstrator which is full of crap, now ;). Would need to declutter it first. In the end, it is only a simple listbox which is showing the nearest airports on a button click. Hard to believe that quite a huge developer isn't capable of producing this theirself ;). But if you think something simple as this would prove useful, I could scramble the above together, again and send it to you. Although I didn't test it on P3D myself, as I only run FSX:SE on my development Notebook, this was the relevant part of the P3D SDK sample documentation I used to educate myself on the facility. Greets, Benny
  15. Cant read nearest icao in c#

    Hi Paul, sounds like a great facility. Does it only produce an "internal" database within your dll or does it create an external file each time the simulator is run? If you would be willing to share something more about the mechanics I might take a look at it :). Greets, Benny