Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete.

I'm testing the new feature about having the nearest 6 airpots.

I create a new flight on active rwy at EGKK. I receive this information from fsuipc:

Icao1 "EGKB" Dist1 14.4212132

Icao2 "EGLC" Dist2 23.80487

Icao3 "EG58" Dist3 24.4566975

Icao4 "EGVO" Dist4 28.01681

Icao5 "EGTO" Dist5 29.5705547

Icao6 "EGHL" Dist6 30.9714489

As you can see, EGKK is missing, and for sure, that is the closest one.

Using the nearest facility included in the GPS in same position, I have:

Icao1 "EGKK" Dist1 0.8

Icao2 "EGKR" Dist2 4.9

Icao3 "EGTD" Dist3 12.3

Icao4 "EGKB" Dist4 14.4

Icao5 "EGTF" Dist5 17.8

Icao6 "EGKA" Dist6 18.9

I don't know the criteria you follow to obtain that information. I know it wasn't easy to obtain, and probably this is the best we can have.

Or maybe, it's me doing some strange thing :(

Regards

Javier

Posted

One more thing,

In one testing I realize this:

In one airport I recive all 6 set of data, then move to another airport and only recive 3 set of data . Number 4 and 5 where just empy, but number 6 had the previous information.

My question is:

Will it always be empty at least the next set of data when less then 6 nearest airports?

Sorry if this is confuse, but english is not my native language. :?

Regards

Javier.

Posted

I create a new flight on active rwy at EGKK. I receive this information from fsuipc:

Icao1 "EGKB" Dist1 14.4212132

Icao2 "EGLC" Dist2 23.80487

Icao3 "EG58" Dist3 24.4566975

Icao4 "EGVO" Dist4 28.01681

Icao5 "EGTO" Dist5 29.5705547

Icao6 "EGHL" Dist6 30.9714489

As you can see, EGKK is missing, and for sure, that is the closest one.

Strange.

Can you please add this to the [General] section of your FSUIPC4.INI file:

Debug=Please

LogExtras=32

(Replace that line if there already).

Then reproduce the problems you find and paste the resulting FSUIPC4.LOG contents here, please.

I don't know the criteria you follow to obtain that information. I know it wasn't easy to obtain, and probably this is the best we can have.

Well, it's a documented SimConnect facility, but possibly it's buggy. I would have thought it used the same mechanism as the GPS gauge.

I can check it here, but I'm really busy at present so specific examples, like that one, with Logs please, will help. Can I assume you are using a fully updated FSX, or ESP?

Regards

Pete

Posted

In one airport I recive all 6 set of data, then move to another airport and only recive 3 set of data . Number 4 and 5 where just empy, but number 6 had the previous information.

If there were only three within the "reality bubble", then the others should all be zero. I'll need to check that too -- can you include that in the test with the logging, please?

Would you have expected more than 3 within 80 nm (I think that's the range, but I'm not sure)?

Regards

Pete

Posted

Sorry for this.

I'm able to create the log, that includes the information of nearest airport. Log ok.

Then I change to another airport with only 3 nearest in the bubble, hoping the new information appears in the log, but it doesn't, so, how can I log that?

I run my program thinking that every access to fsuipc will be logged, but it wasn't.

This is what I get, putting plane in EGKK, then in SLVR.

********* FSUIPC4, Version 4.588 by Pete Dowson *********
Reading options from "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini"
Trying to connect to SimConnect Acc/SP2 Oct07 ...
User Name="Javier Cuellar"
User Addr="javiercuellar@gmail.com"
FSUIPC4 Key is provided
WideFS7 Key is provided
Running inside FSX on Windows 7 (using SimConnect Acc/SP2 Oct07)
Module base=61000000
Wind smoothing fix is fully installed
DebugStatus=255
       46 System time = 17/02/2010 01:20:24
       46 FLT UNC path = "\\JAVIER-PC\Users\Javier\Documents\Flight Simulator X Files\"
       46 FS UNC path = "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\"
      374 LogOptions=00000000 00000211
      374 SimConnect_Open succeeded: waiting to check version okay
     2371 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0)
     2371 Initialising SimConnect data requests now
     2371 FSUIPC Menu entry added
     2402 Ready Flags: Ready-To-Fly=N, In Menu=Y, In Dlg=Y
     2402 C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT
     2402 C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.AIR
    63632 Ready Flags: Ready-To-Fly=N, In Menu=N, In Dlg=N
    63710 Ready Flags: Ready-To-Fly=N, In Menu=Y, In Dlg=Y
    76487 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
    76612 System time = 17/02/2010 01:21:40, Simulator time = 09:20:26 (09:20Z)
    76612 Aircraft="Aircreation582SL red"
    76799 ***** Nearest Airports *****
    76799 Airport1=EGKB, Lat=51.330833, Lon=0.032500, Alt=597.998721, Dist=14.421213
    76799 Airport2=EGTF, Lat=51.348055, Lon=-0.558889, Alt=80.000005, Dist=17.843886
    76799 Airport3=EGLL, Lat=51.477500, Lon=-0.461389, Alt=82.998691, Dist=22.030458
    76799 Airport4=EGLC, Lat=51.505278, Lon=0.055278, Alt=18.999346, Dist=23.804870
    76799 Airport5=EG58, Lat=51.270485, Lon=0.407720, Alt=301.840584, Dist=24.456697
    76799 Airport6=EGWU, Lat=51.553000, Lon=-0.418231, Alt=123.999354, Dist=25.664284
    76971 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
    78203 Exception 15 "WEATHER_UNABLE_TO_GET_OBSERVATION", Ref 2336, Index param -1 on Weather request type 5
    80403 Advanced Weather Interface Enabled
    82571 Exception 15 "WEATHER_UNABLE_TO_GET_OBSERVATION", Ref 2340, Index param -1 on Weather request type 5
    84599 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
    88499 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
    88530 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
    97469 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
    99201 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   110994 System time = 17/02/2010 01:22:15, Simulator time = 05:20:35 (09:20Z)
   110994 *** FSUIPC log file being closed
Average frame rate for running time of 9 secs = 52.0 fps
Memory managed: 6 Allocs, 6 Freed
********* FSUIPC Log file closed ***********

In FSUIPC4.ini I put:

[General]
Debug=Please
LogExtras=32

and after running FSX it is automatically changed to

[General]
Debug=Please
LogExtras=x20

is that normal?

Regards

Javier

Posted

I'm able to create the log, that includes the information of nearest airport. Log ok.

I too get odd results at EGKK. Not the same as you, but not correct. So I'll investigate that.

Then I change to another airport with only 3 nearest in the bubble, hoping the new information appears in the log, but it doesn't, so, how can I log that?

It should list those three. But something else is odd there too, because I checked. The offsets for all 6 slots are always cleared to zero before any are filled in. So I cannot see how there can be three then two zeroed then another. That looks impossible.

So, can you tell me where to "Go To" to reproduce the oddity with only 3 please? I need to reproduce it here.

I run my program thinking that every access to fsuipc will be logged, but it wasn't.

No, to log your accesses you use IPC read or write logging.

and after running FSX it is automatically changed to is that normal?

Yes. It is a bit-oriented set of 28 flags, so setting some gets hard in decimal, so it is normally used in hexadecimal (so you can set bit 27 for instance by x8000000). You must know hex 20 is the same as decimal 32?

Regards

Pete

Posted

I too get odd results at EGKK. Not the same as you, but not correct. So I'll investigate that.

Sorry, I think it's a bug in SimConnect. I've debugged it all the way through. I've tried flying away for and back to and over EGKK, but it is never listed as an airport in what SimConnect supplies. I get details of airports up to 120 nm away, with over 90 airports being listed, but NEVER "EGKK". Weird. For example, with extra debugging I've put in, here's the full list of airports I get from simConnect when at EGKK:

    81437 ***** All Airports *****
    81437 Airport001=EGBO, Lat=52.517500, Lon=-02.259445, Dist=112.832023
    81453 Airport002=EGWC, Lat=52.640000, Lon=-02.305500, Dist=119.336083
    81453 Airport003=EGBW, Lat=52.192222, Lon=-01.614444, Dist=82.439545
    81453 Airport004=EGBE, Lat=52.369722, Lon=-01.479722, Dist=87.845247
    81453 Airport005=EG74, Lat=52.486944, Lon=-01.130667, Dist=87.733954
    81453 Airport006=EGBB, Lat=52.453855, Lon=-01.748028, Dist=97.692262
    81453 Airport007=EGBG, Lat=52.607778, Lon=-01.031945, Dist=93.067142
    81453 Airport008=EGBT, Lat=52.040834, Lon=-01.095555, Dist=63.586215
    81453 Airport009=UK03, Lat=51.930000, Lon=-01.430000, Dist=66.328483
    81453 Airport010=EGLJ, Lat=51.674444, Lon=-01.085278, Dist=46.501770
    81468 Airport011=EGVA, Lat=51.682167, Lon=-01.790028, Dist=68.527038
    81468 Airport012=EGVN, Lat=51.749964, Lon=-01.583617, Dist=63.953379
    81468 Airport013=EGTK, Lat=51.836944, Lon=-01.320000, Dist=59.522661
    81468 Airport014=EGUB, Lat=51.616389, Lon=-01.095833, Dist=44.548564
    81468 Airport015=EGTB, Lat=51.611667, Lon=-00.808333, Dist=36.568936
    81468 Airport016=EGGW, Lat=51.874722, Lon=-00.368333, Dist=44.051823
    81468 Airport017=EGWU, Lat=51.553000, Lon=-00.418231, Dist=25.862171
    81468 Airport018=EGTF, Lat=51.348055, Lon=-00.558889, Dist=18.823578
    81468 Airport019=EGLM, Lat=51.500833, Lon=-00.774444, Dist=30.920015
    81468 Airport020=EGTH, Lat=51.765549, Lon=-00.252949, Dist=37.000437
    81484 Airport021=EGTI, Lat=51.691868, Lon=-00.416197, Dist=33.740563
    81484 Airport022=EGWN, Lat=51.792500, Lon=-00.736833, Dist=43.952029
    81484 Airport023=EGTR, Lat=51.655833, Lon=-00.325833, Dist=30.848821
    81484 Airport024=EGLG, Lat=51.802500, Lon=-00.158055, Dist=39.085359
    81484 Airport025=EGWE, Lat=52.017778, Lon=-00.302222, Dist=52.237888
    81484 Airport026=EGLD, Lat=51.588333, Lon=-00.513056, Dist=29.232277
    81484 Airport027=EGLL, Lat=51.477500, Lon=-00.461389, Dist=22.449036
    81484 Airport028=EGSL, Lat=51.895000, Lon=000.449167, Dist=50.242072
    81484 Airport029=EGSG, Lat=51.652500, Lon=000.155833, Dist=32.443759
    81500 Airport030=EGKB, Lat=51.330833, Lon=000.032500, Dist=13.168604
    81500 Airport031=EGSR, Lat=51.914444, Lon=000.682500, Dist=55.741472
    81500 Airport032=EGSS, Lat=51.885000, Lon=000.235000, Dist=46.542111
    81500 Airport033=EGLC, Lat=51.505278, Lon=000.055278, Dist=22.849283
    81500 Airport034=EGTO, Lat=51.351944, Lon=000.503334, Dist=27.967897
    81500 Airport035=EGMC, Lat=51.571389, Lon=000.695555, Dist=41.040969
    81500 Airport036=EGSX, Lat=51.721667, Lon=000.154167, Dist=36.301267
    81500 Airport037=EGHN, Lat=50.653056, Lon=-01.182222, Dist=48.618229
    81500 Airport038=EGDM, Lat=51.152189, Lon=-01.747414, Dist=59.415488
    81500 Airport039=EGDN, Lat=51.247178, Lon=-01.754250, Dist=59.889319
    81515 Airport040=EGHF, Lat=50.815278, Lon=-01.206944, Dist=44.090497
    81515 Airport041=EGVP, Lat=51.142805, Lon=-01.567556, Dist=52.653857
    81515 Airport042=EGHP, Lat=51.195795, Lon=-01.238013, Dist=40.313509
    81515 Airport043=EGHH, Lat=50.780000, Lon=-01.842500, Dist=67.053301
    81515 Airport044=EGHI, Lat=50.950573, Lon=-01.356126, Dist=46.374453
    81515 Airport045=EGLS, Lat=51.098889, Lon=-01.784167, Dist=60.914474
    81515 Airport046=EGHO, Lat=51.210556, Lon=-01.600000, Dist=53.951172
    81515 Airport047=EGVO, Lat=51.234139, Lon=-00.942825, Dist=29.530866
    81515 Airport048=EGHL, Lat=51.186667, Lon=-01.031945, Dist=32.545504
    81531 Airport049=EGHJ, Lat=50.678056, Lon=-01.109444, Dist=45.519343
    81531 Airport050=EGKH, Lat=51.156944, Lon=000.641667, Dist=30.500480

I've checked everything thoroughly. I'm afraid the facility I'm using for this is just plain unreliable.

I'd still like to try that place where you only got three, because I can't see how that can happen. But meanwhile I think I should either withdraw the facilty altogether, or just relabel is as "6 nearby airports, possibly not including the nearest".

Ugh! :-(

Regards

Pete

Posted

Thanks Pete for your time.

I've done this:

- Gone to SLVR (airport with 3 in balloon of nearest)

Another strange thing. Today no nearest!! :shock: Yesterday, I was able to see 3 nearest. And, as you can see in the log, nothing logged for it.

- After SLVR, jump to EGKK. Same as yesterday. Nearest is EGKB.

- So I jump to EGKB to see if I can see EGKK, but not. :(

- Jump again to SLVR and still no nearest.

or just relabel is as "6 nearby airports, possibly not including the nearest".

May not be exactly that. The results varies a lot. You can see that my nearest are not the same as yours, and standing in same airport.

Ugh!

Double Ugh! :( :(

Log file

********* FSUIPC4, Version 4.588 by Pete Dowson *********
Reading options from "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\Modules\FSUIPC4.ini"
Trying to connect to SimConnect Acc/SP2 Oct07 ...
User Name="Javier Cuellar"
User Addr="javiercuellar@gmail.com"
FSUIPC4 Key is provided
WideFS7 Key is provided
Running inside FSX on Windows 7 (using SimConnect Acc/SP2 Oct07)
Module base=61000000
Wind smoothing fix is fully installed
DebugStatus=255
      500 System time = 17/02/2010 17:44:22
      531 FLT UNC path = "\\JAVIER-PC\Users\Javier\Documents\Flight Simulator X Files\"
      531 FS UNC path = "C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\"
      858 LogOptions=00000000 00000211
      858 SimConnect_Open succeeded: waiting to check version okay
    14586 Running in "Microsoft Flight Simulator X", Version: 10.0.61472.0 (SimConnect: 10.0.61259.0)
    14586 Initialising SimConnect data requests now
    14586 FSUIPC Menu entry added
    14633 Ready Flags: Ready-To-Fly=N, In Menu=Y, In Dlg=Y
    14633 C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\FLIGHTS\OTHER\FLTSIM.FLT
    14633 C:\Program Files (x86)\Microsoft Games\Microsoft Flight Simulator X\SimObjects\Airplanes\Aircreation_582SL\Aircreation_582SL.AIR
    46535 Ready Flags: Ready-To-Fly=N, In Menu=N, In Dlg=N
    46988 Aircraft="Aircreation582SL red"
    46988 System time = 17/02/2010 17:45:08, Simulator time = 21:44:35 (01:44Z)
    46988 Ready Flags: Ready-To-Fly=N, In Menu=Y, In Dlg=Y
    71667 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
    72385 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
    73680 Exception 15 "WEATHER_UNABLE_TO_GET_OBSERVATION", Ref 2329, Index param -1 on Weather request type 5
    75864 Advanced Weather Interface Enabled
    78188 Exception 15 "WEATHER_UNABLE_TO_GET_OBSERVATION", Ref 2333, Index param -1 on Weather request type 5
   168279 Adding menu entry:'Interactive Cockpit' for hotkey entry #0
   168325 Adding submenu entry:'Interactive Cockpit: Pre Start' for hotkey entry #0
   168325 Adding submenu entry:'Interactive Cockpit: Before Pushback' for hotkey entry #0
   168325 Adding submenu entry:'Interactive Cockpit: Before Start' for hotkey entry #0
   168341 Adding submenu entry:'Interactive Cockpit: After Start' for hotkey entry #0
   168341 Adding submenu entry:'Interactive Cockpit: Taxi' for hotkey entry #0
   168357 Adding submenu entry:'Interactive Cockpit: Before Takeoff' for hotkey entry #0
   168357 Adding submenu entry:'Interactive Cockpit: After Takeoff ' for hotkey entry #0
   168357 Adding submenu entry:'Interactive Cockpit: Climb' for hotkey entry #0
   168357 Adding submenu entry:'Interactive Cockpit: Descend' for hotkey entry #0
   168357 Adding submenu entry:'Interactive Cockpit: Approach' for hotkey entry #0
   168388 Adding submenu entry:'Interactive Cockpit: After Landing' for hotkey entry #0
   168388 Adding submenu entry:'Interactive Cockpit: Parking Brakes' for hotkey entry #0
   184238 Removing user menu entry:'Interactive Cockpit' for hotkey entry #0
   213488 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   213488 Sim stopped: average frame rate for last 141 secs = 26.6 fps
   221756 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   230944 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   236810 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   237075 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   254032 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   269040 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   270740 ***** Nearest Airports *****
   270740 Airport1=EGKB, Lat=51.330833, Lon=0.032500, Alt=597.998721, Dist=14.421213
   270740 Airport2=EGTF, Lat=51.348055, Lon=-0.558889, Alt=80.000005, Dist=17.843886
   270740 Airport3=EGLL, Lat=51.477500, Lon=-0.461389, Alt=82.998691, Dist=22.030458
   270740 Airport4=EGLC, Lat=51.505278, Lon=0.055278, Alt=18.999346, Dist=23.804870
   270740 Airport5=EG58, Lat=51.270485, Lon=0.407720, Alt=301.840584, Dist=24.456697
   270740 Airport6=EGWU, Lat=51.553000, Lon=-0.418231, Alt=123.999354, Dist=25.664284
   270818 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   274235 Exception 15 "WEATHER_UNABLE_TO_GET_OBSERVATION", Ref 2516, Index param -1 on Weather request type 5
   278571 Exception 15 "WEATHER_UNABLE_TO_GET_OBSERVATION", Ref 2520, Index param -1 on Weather request type 5
   298773 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   298773 Sim stopped: average frame rate for last 28 secs = 58.0 fps
   302471 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   303407 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   316823 ***** Nearest Airports *****
   316823 Airport1=EGKB, Lat=51.330833, Lon=0.032500, Alt=597.998721, Dist=0.442956
   316823 Airport2=EGLC, Lat=51.505278, Lon=0.055278, Alt=18.999346, Dist=10.914200
   316823 Airport3=EG58, Lat=51.270485, Lon=0.407720, Alt=301.840584, Dist=14.633063
   316823 Airport4=EGTO, Lat=51.351944, Lon=0.503334, Alt=435.997434, Dist=17.922172
   316823 Airport5=EGSG, Lat=51.652500, Lon=0.155833, Alt=185.000020, Dist=20.274326
   316823 Airport6=EGLL, Lat=51.477500, Lon=-0.461389, Alt=82.998691, Dist=20.473310
   316916 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   347851 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   347851 Sim stopped: average frame rate for last 31 secs = 39.1 fps
   353935 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   353967 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   361923 Ready Flags: Ready-To-Fly=Y, In Menu=N, In Dlg=N
   397507 Ready Flags: Ready-To-Fly=Y, In Menu=Y, In Dlg=Y
   397507 Sim stopped: average frame rate for last 35 secs = 77.6 fps
   409363 System time = 17/02/2010 17:51:10, Simulator time = 12:27:57 (16:27Z)
   409363 *** FSUIPC log file being closed
Average frame rate for running time of 260 secs = 45.7 fps
Memory managed: 117 Allocs, 117 Freed
********* FSUIPC Log file closed ***********

Posted
If you go to EGKK and then to SLCB, you will see 3 in ballon and the 6th nearest with previous information.

Okay. Actually I only got two, both about 60+ miles away! But I found why the last one wasn't cleared. I was thinking the size of each entry was 16 bytes, but of course it is 20, so the last 24 bytes weren't being zapped.

Sorry about that.

But I can't see any way at present to make SimConnect return all the airport list. I've extended the logging to show the complete list I get, before I select the nearest 6, and it is never really complete. According to the documentation it is supposed to split the data packets into more than one if there are a lot, but there's only ever one packet supplied, varying in size from the 2 I got for SLCB to about 92 I got somewhere East of Gatwick.

In my younger days I might have taken up the challenge and started hacking into FSX code to see what was going wrong, but I'm too old and impatient to do that sort of thing these days. It was bad enough for FS9, made be ill the lack of sleep i got over that one!

If I have any bright ideas I'll let you know. The next interim update will have the invalid entries cleared, but not the problems fixed. Sorry.

Regards

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.