• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

simconnect airport list

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?'
 
afcad ones? I don't know what you mean.. (I don't have any addons in my fsx)

Simconnect manual:
Flight Simulator X keeps a facilities cache of all the airports, waypoints, NDB and VOR stations within a certain radius of the user aircraft. This radius varies depending on where the aircraft is in the world, but is at least large enough to encompass the whole of the reality bubble for airports and waypoints, and can be over 200 miles for VOR and NDB stations. As the user aircraft moves facilities will be added to, and removed from, the cache. However, in the interests of performance, hysteresis is built into the system.

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.
 
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.
 
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.
 
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:
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.
 
Ok, thanks for your effort.

Happy newyear all.


En zoals we hier zeggen, "goede roetsj !"

Weps.
 
Back
Top