Jump to content
The simFlight Network Forums

Luke Kolin

Members
  • Posts

    380
  • Joined

  • Last visited

Everything posted by Luke Kolin

  1. Sorry I wasn't more clear. I am not using Lua, I'm using offsets 0x0D6C and 0x0D70. To give the sequence of operations, I read the LVARs FSDT_GSX_BOARDING_STATE and FSDT_GSX_STATE to detect whether FSDT's GSX package is installed and operational. When called, I get the value of 1 back for the former, and 3 for the latter. I then ready FSDT_GSX_NUMPASSENGERS to see if a passenger count has been set by GSX. It also returns 3 What's interesting is that when I then fire up a LUA macro that selectively dumps LVARs to the SimConnect message window, FSDT_GSX_NUMPASSENGERS does not exist. It is curious and suspicious to me that the value returns is the same from the last LVAR successfully read. I'll try and make a test case where I manually set an LVAR, read it, then read an LVAR I know does not exist via the 0xD6C/0xD70 method. Cheers
  2. This is helpful context. If an LVAR has not been created when I request to read it, then get_named_variable_value would return an undefined result? I think this matches what I'm seeing. I guess there's no way for FSUIPC to check if it has been initialized prior to the read? Cheers
  3. Thanks, appreciate it! Cheers
  4. I am reading LVARs using FSUIPC (6 and 7). John, do you know the expected behavior if we attempt to read an uninitialized LVAR? We have been getting some random results and curious if there is an expectation of a zero value or just random memory contents. Cheers
  5. 30C0 and 30C8 should give you what you need. Cheers
  6. I may be confused here, but from your AVSIM thread wasn't this being triggered on a flight save, with the PMDG aircraft? Cheers
  7. Yes, that was my error. I'm debating whether I want to roll that back or if an FSUIPC release will be soon.
  8. Sorry for the delay - the changes appear to be working correctly. Thank you! Cheers
  9. Thanks! I'll give this a whirl. Cheers!
  10. Thanks John! Looking forward to testing this. Cheers
  11. That's actually the reason for my question - what is the difference between "Pause Set" and "Pause On"? I have users reporting that the sim is not paused when pause set is toggled. Cheers Luke
  12. Sorry to bump an old thread, but has anything changed in this area? I am trying to detect MSFS, and it feels like 0x264 is a bitmap, but I am unsure what the bits mean. Cheers!
  13. Search the Windows start menu, or select Run and then "eventvwr"
  14. Where does one download that version? It doesn't appear to be available on prepar3d.com. Cheers Luke
  15. I would also enumerate what add-ons you are using. Any REX products? Cheers!
  16. It's been way too long since I did this regularly, but if the data element increased in size from 8 to 16 bits, wouldn't the offset stay the same and just the following three increment by one? I was reading 16-bits from 6C8D before and not getting a good answer. If AircraftModel is the only element in the SimConnect structure that changed, why did its offset change? Cheers!
  17. PMDG has apparently changed their SimConnect API a little (AircraftModel is now 16-bit, not 8-bit) and this has cased some cascading issues downstream. I'm getting zeroes for all offsets above 6c64 (that's as far upstream as I have checked) and I am certainly not getting the Aircraft model. I am enclosing the latest header file. When you get back John, can you check if FSUIPC 7.3.12 still works with the newest PMDG 737 for MSFS? I have 3.0.54 and am happy to validate test builds. Cheers pmdg_ng3_sdk.h
  18. SimConnect appears horribly broken. Not surprising that neither GSX nor FSUIPC are working. Cheers
  19. This has been a problem with PMDG for ages. They freeze the sim for a while when the sim saves the flight. I would report it as a bug, just to see how quickly they reject it 🙂 Cheers!
  20. Taking MobiFlight out of the equation, is the offset returning the correct value? From your earlier thread I feel like you have a MobiFlight problem, not FSUIPC. Cheers!
  21. Is this the same as here- https://www.avsim.com/forums/topic/613556-fsuipc-offsett-auto-pilot-captain-course-reading/ Does offset 0x0C4E return the correct value? Cheers!
  22. Look in the header file that is provided with the SDK; it should list the control number. You will also want to look at the MOUSE_FLAG constants to see what value to pass to the control. Cheers!
  23. You can't just use 1 and 0, the SDK has constants for simulating left and right clicks. Cheers!
  24. John, you may want to change the links to be HTTPS, if they aren't already. That seems to be the issue. Cheers!
  25. I tried searching but I'm obviously using the wrong terms. Is there an offset in FSUIPC7 that can tell me if it is connected to the simulator? Cheers!
×
×
  • 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.