1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

simconnect airport list

Discussion in 'SimConnect' started by Weps, 27/12/07.

  1. Weps

    Weps

    Joined:
    27/12/07
    Messages:
    5
    Hello guys,

    I'm using simconnect to get some data from FSX. Which works fine.

    I'm trying to make a function that gives me the closest airport, which also works fine. (I'm asking an initial list and then updates, no problem).

    HOWEVER, (up to now) two airports are never returned by simconnect: EHAM and EGLL. Even when I'm sitting or flying over the runway. (I checked and doublechecked, even by moving all over the place with my plane, but I never get these two back, all surrounding airports work just fine.)

    Is there a known bug in the SimConnect_RequestFacilitesList function? Or some kind of 'need to know?'
  2. jcboliveira

    jcboliveira

    Joined:
    8/6/04
    Messages:
    150
    Country:
    portugal
    Just guessing. Are the airport afcad the default ones?

    José
  3. Weps

    Weps

    Joined:
    27/12/07
    Messages:
    5
    afcad ones? I don't know what you mean.. (I don't have any addons in my fsx)

    Simconnect manual:
    I've found out that clearing the cache (World->Scenery Library->Check Clear->Ok) does give me EHAM and EGLL. But only after being spawned...

    I'm wondering what genius thought of not caching EHAM when you're on EHAM. And why would it be cached after I clear the cache, but not when I start FSX @ EHAM? I could understand EHBK not being cached when spawning at EHAM, but EHAM itself? Sjees...

    If anyone knows the email address so I can forward this to the FSX team, please, feel free to inform me.
  4. jcboliveira

    jcboliveira

    Joined:
    8/6/04
    Messages:
    150
    Country:
    portugal
    In another words. Do you have any addon that could change EHAM or EGLL airports.
  5. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,304
    Country:
    netherlands
    Did you make a small tool with SimConnect to show the list? In that case maybe you can share it with other so that we can test if the same problem also occurs at other systems. If that is the case it might be that you have found a bug. But as Jose suggested, I would also test first if there is not some addon scenery or any other modification involved.
  6. Weps

    Weps

    Joined:
    27/12/07
    Messages:
    5
    My installation has no modifications to airports / scenery.

    (Even if I did have modifications, it still would be very strange not to report EHAM as being close to my plane when I'm at EHAM)

    I already had some of my friends test it as well. All of them report the same. And all of them report getting EHAM/EGLL (there are more!) after manually clearing the cache as I described in my previous post.

    Reproduce:
    start fsx, pick an airplane, pick airport (EHAM), go. No EHAM.
    Do World->scenery library->(check clear)->ok. EHAM appears.
    Move to say new york. and then back. No EHAM.
    Do World->scenery library->(check clear)->ok. EHAM appears.
    Or Take off, fly south. Once you reach the border of belgium and france, EHAM appears.

    Since I obviously can't wait for this problem to resolve, I removed this "get facilities stuff" and added nearly 10.000 airports to the source code.

    I would have to fetch my 'old' code and recompile to give you an example. I'll post a link tomorrow.
  7. Weps

    Weps

    Joined:
    27/12/07
    Messages:
    5
    OK ,that went faster than I expected.

    http://www.simfly.eu/downloads/bug.zip

    Just extract the executable in it. And start it. Then start FSX (or vice versa, it don't matter)


    Spawning at EHAM:

    Code:
    >> SimAirportList 
    Size:721 Version:4 dwID: 18 RequestID:102 ArraySize:20 Entry:0 OutOf:1   
    (new) 1 EHKD 52,92 4,78
    (new) 2 EHTX 53,12 4,83
    (new) 3 EHDR 53,12 6,13
    (new) 4 EHLW 53,23 5,75
    (new) 5 EHVB 52,17 4,42
    (new) 6 EHDL 52,06 5,87
    (new) 7 EHTE 52,24 6,05
    (new) 8 EHHO 52,73 6,52
    (new) 9 EHNP 52,73 5,75
    (new) 10 EHSE 51,55 4,55
    (new) 11 EHWO 51,45 4,34
    (new) 12 EHRD 51,96 4,44
    (new) 13 EBBT 51,34 4,50
    (new) 14 EBWE 51,39 4,96
    (new) 15 EHGR 51,57 4,93
    (new) 16 EHEH 51,45 5,37
    (new) 17 EHVK 51,66 5,71
    (new) 18 EDLF 51,33 6,36
    (new) 19 EDLV 51,60 6,14
    (new) 20 EDLC 51,53 6,54
    << OnAirportReceived 102
    
    
    >> SimAirportSubscribe 
    Size:721 Version:4 dwID: 18 RequestID:103 ArraySize:20 Entry:0 OutOf:1   
          20 EHKD 52,92 4,78
          20 EHTX 53,12 4,83
          20 EHDR 53,12 6,13
          20 EHLW 53,23 5,75
          20 EHVB 52,17 4,42
          20 EHDL 52,06 5,87
          20 EHTE 52,24 6,05
          20 EHHO 52,73 6,52
          20 EHNP 52,73 5,75
          20 EHSE 51,55 4,55
          20 EHWO 51,45 4,34
          20 EHRD 51,96 4,44
          20 EBBT 51,34 4,50
          20 EBWE 51,39 4,96
          20 EHGR 51,57 4,93
          20 EHEH 51,45 5,37
          20 EHVK 51,66 5,71
          20 EDLF 51,33 6,36
          20 EDLV 51,60 6,14
          20 EDLC 51,53 6,54
    << OnAirportReceived 103
    
    
    Last edited: 29/12/07
  8. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    21,304
    Country:
    netherlands
    Hi,

    I can reproduce it here as well indeed, so it looks like a bug to me. I will try to use my contact with the ACES team to see if they can comment on/confirm this.

    Also when you go to Rotterdam btw, Amsterdam Schiphol is not in the list. So it seems some airports are simply missing.
  9. Weps

    Weps

    Joined:
    27/12/07
    Messages:
    5
    Ok, thanks for your effort.

    Happy newyear all.


    En zoals we hier zeggen, "goede roetsj !"

    Weps.
  10. jcboliveira

    jcboliveira

    Joined:
    8/6/04
    Messages:
    150
    Country:
    portugal
    Never detected the bug because I'm using a dB with all airports. Tell me if you want the code. It's C#

Share This Page