Jump to content
The simFlight Network Forums


  • Posts

  • Joined

  • Last visited

Posts posted by YankeeFan

  1. Thanks again for the additional suggestions/tips. The strange thing is I've run my application in Debug mode where I can add breakpoint and check values at any line in my application, and I dont find any problems whats so ever. However, with over 100-200 users of my application their PC systems can be quite diff. including Flight Sim version 2000 to 2004, Windows OS 98/XP Home/XP Pro, FSUIPC versions from 2.9xxx to 3.202, even languages from English to Czech, so it has been a real challenge to say the least to try to troubleshoot. In my application whenever an error occurs it will write to an errlog.txt file, but when Windows jumps in and causes error messages it is a bit hard to trap those to include to the errlog.txt file.

    I am just waiting for the day where it will become obvious whats happing.

    Thanks again!

    John McCormack

  2. Thank you Pete for your suggestions. I've taken a close look and am following the guidelines set forth in the Programmers Guide for FSUIPC for those two offsets, so I guess I'm at a lost for moment. I will keep digging at and try some diff. things to see if I can isolete the possible cause further.

    Thanks again for your suggestions and a fast reply!

  3. Hi Pete,

    Does FSUIPC use ntdll.dll directly or indirectly when writing data to an offset or in any other way? The reason I ask is it appears ever since I started writing to offsets 32FA and 3380 to send informational messages from my program to FS so that it appears in the ATIS text box (white text on green background) on screen, alot of users of my application are experiencing an Windows error message at random times. Such as "Active AirSource has encountered a problem and needs to close. We are sorry for the inconvenience." It refers to module ntdll.dll at offset 0006112b. Which I am not using in my application, however FSUIPC is an intregal part of my application and was wondering if you are using it.

    Thanks for any assistance,

    John McCormack

  4. I am having a bit of a hard time figuiring out how to determine exactly which light switch is on by simply reading the [0D0C] offset. According to the SDK the light switches are defined as follows;

    0D0C 2 bytes Lights (FS2k/CFS2), a switch for each one:

    0 Navigation

    1 Beacon

    2 Landing

    3 Taxi

    4 Strobes

    5 Instruments

    6 Recognition

    7 Wing

    8 Logo

    If somebody has some sample code written in VB that would be great. Basically I am trying to determine each of the possible light switches if ON or OFF. When testing and had all lights off except for NAV the value in [0D0C] = 33, when I used the "L" key to switch everything on the value was 1023.

    Does the value of the offset just need a conversion like Decimal to Binary?



  5. Hi!

    I am trying to write my program access key 12 bytes to offset &H8001 so users of my application wont have to manually enter the key in to register the application. And it appears to be working because I am not getting the popup message in FS2002, but it appears to be an error in FSUIPC log. If it is just incorrect only and informational in the log, that's fine with me, I just wanted to make sure all users of my program will not experience any problems that I haven't seen.

    VISUAL BASIC 6.0 CODE ("123456789012" is where my access key is):

    If FSUIPC_WriteS(&H8001, 12, "123456789012", dwResult) = False Then

    MsgBox "FSUIPC Freeware Key was not successfully written"


    FSUIPC_Open = False

    Exit Function

    End If


    3864547 WRITE0 (failed, read-only!) 8F8001, 12 bytes: 4D 58 4B 56 49 4F 4C 32 4F 35 4C 53

    Thanks for reading post and any feedback is welcomed!

    John McCormack

    Active AirSource


    Application Developer

  6. Hi,

    I am wondering if there are any offsets that can be used in the latest UIPC version to obtain the same type information for ATC and GPS that the AutoSave module captures in the .FLT file? The following is an exerp from the .FLT file; The rows beginning with "*" are the ones that I am most concerned with trying to find offsets for, but the more info I can find the better.






    * NumberofWaypoints=0

    * NumTaxiRoute=0



    * WaypointNext=0

    * AltCleared=-1



    * LandingSequence=LANDING_NONE


    * ParkingRequest=PARKING_NAME_NONE

    * PatternLeg=PATTERN_LEG_NONE



    * FlightFollowing=FLIGHT_FOLLOWING_NO




    * TaxiRouteCurrent=-1

    * TakeoffSequence=TAKEOFF_SEQUENCE_NONE





    * Filename=FLIGHTS\MYFLTS\St Petersburg-Clearwater Intl to Orlando Intl

    position=N33* 38.81', W84* 24.37', +001039.20




    * CountWP=4

    * NextWP=1

    * PlaneStarted=True

    WpInfo0=127, 0, 1066, 0, 45450, 56948.9, 0.0, 0.0

    WpInfo1=536, 0, 1066, 0, 0, 0.0, 199.9, 0.0

    WpInfo2=534, 0, 1066, 0, 0, 0.0, 161.1, 0.0

    WpInfo3=535, 0, 1066, 0, 0, 0.0, 95.8, 0.0


    Many Thanks!

    Also any hint on availablity of the 16th SDK?

    John McCormack

  7. Hi Pete,

    Thanks for the very quick reply!

    I discovered I was using the wrong type variable, I changed to a Long Integer and the value returned showed 12978711. So the formula that I used to convert this to GS Knots is as follows;

    Long32Bit = 12978711 (this is the value returned from offset)

    GS = Long32Bit / 65536#

    GS = GS * 3600# / 1852#

    The above resulted in GS = 384.96 which appears to be correct according to the GPS window shown in the a/c. I've tried diff. speeds and it seems to be accurate.

    If you see anything incorrect with the above formulas, please let me know and thanks again!

    John McCormack

  8. Hi,

    I am trying to retrieve the Ground Speed shown in the GPS, and the only offset I found in the FSUIPC SDK was located at offset (02B4), 4 bytes, "GS: Ground Speed, as 65536*metres/sec. Not updated in Slew mode!" During a flight where I was showing 385GS in the GPS, the value returned at this offset location was 1297.9 I am not clear on how to convert the value to knots based on the description. If somebody could show me an example of what formula to use for the conversion, I would surely appreciate it.

    Thanks in Advance!

    John "YankeeFan" McCormack

  • 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.