Jump to content
The simFlight Network Forums

Luke Kolin

Members
  • Content Count

    265
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Luke Kolin

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  • Location
    Atlanta, GA

Recent Profile Visitors

1,869 profile views
  1. Luke Kolin

    Viewpoint 05B0

    Sounds good! Thanks!
  2. Luke Kolin

    Viewpoint 05B0

    I believe I'm looking for the SimConnnect variable "EYEPOINT POSITION" - not sure if that is equivalent to what it was in FS9. Cheers! Luke
  3. Luke Kolin

    Viewpoint 05B0

    Just a friendly bump so that we don't lose visibility of this. Is there anything else I can do to help with this? Cheers!
  4. Luke Kolin

    PMDG 744 CDU screen-data

    Do you have the right encoding? These are 16-bit unicode characters IIRC. Cheers!
  5. Luke Kolin

    Viewpoint 05B0

    Just for read, please - I believe the offset was used for this purpose before, it's just not available post-FS9. IIRC the data is available via SimConnect. Cheers! Luke
  6. An enhancement request - would it be possible to add offset 05B0 back into FSUIPC5? I believe there's a simconnect structure that allows one to read the position of the viewpoint, and it would be quite helpful to me. Cheers! Luke
  7. I've noticed it as well. In a shell the > character tells it to redirect output. I think you may find a file called "4000" in that directory. Cheers!
  8. Luke Kolin

    Cannot read LVAR correctly

    Here's an updated script to log subsets of LVARs. It allows you to filter LVARs based on the presence of one of several substrings, does periodic rescans of new/removed LVARs and is written in a bit more of a modular fashion. Right now it's set to log GSX and TFDi 717 FCP LVARs as an example, but you can do whatever you want with it. Cheers! LogLVars.lua
  9. Luke Kolin

    Cannot read LVAR correctly

    I did some hacking around and it looks like the issue is slightly different - the window can be created but I'm not logging to it (even though I am to the log and they should occur together). I like the scripts because they give me a window into the LVARs being used and how their state changes, but I always need to hack up the raw versions since there are usually a lot of LVARs and I only care if a subset of them change (usually related to the aircraft/add-on I am reverse engineering). I'll see if I can modularlize the script a little and add some enhancements (filtering, rescanning of LVARs, etc) and then submit it back to you. I haven't learned a new language in a while. I suppose my brain needs some exercise. 😕 Appreciate your help! Cheers!
  10. Luke Kolin

    Cannot read LVAR correctly

    It was already enabled. What's odd is that when I fire off this LUA script and it's supposed to be logging, I can't ALT-TAB easily out of the sim, it's like something is stealing back focus (maybe the errant window suppression code?) What's also interesting is that I can see all of the GSX menus without issue - would those be suppressed as well? Cheers!
  11. Luke Kolin

    Cannot read LVAR correctly

    Sorry, what is the option name? I don't have MessageText in my INI. Cheers!
  12. Luke Kolin

    Cannot read LVAR correctly

    Pete - is your log_lvars supposed to log to the sim window? I recall it doing so but the latest version I downloaded today with the installer does not appear to do so. I know it's being triggered correctly since it writes to the FSUIPC log. Is this expected? Here's the script and the log file. Cheers! Luke FSUIPC5.log log_lvars.lua
  13. Luke Kolin

    Cannot read LVAR correctly

    Sorry... been busy a few days and I needed to pay closer attention here. For clarification (and this may confuse things...) I'm just using your LUA script as a debugging tool; I'm reading the LVARs via offsets and this is the use case I'm primarily concerned about. I think my next steps are to hack up spokes' LUA script to monitor the specific GSX LVAR, and then compare to what I'm doing via the offsets. Cheers!
  14. Luke Kolin

    Cannot read LVAR correctly

    So if I am understanding you correctly (which is a big if, only on my second coffee), when I ask to read LVAR "foo", FSUIPC behind the scenes asks the simulator for the count of LVARs, then iterates through it until it finds the ID that matches "foo", then queries LVAR #{ID}. Each time? It never caches that mapping of names to IDs? (I mention only because that would match the behavior I see, and that iteration strikes me as rather slow and ripe for optimization). If so, if I read an LVAR that doesn't exist, I get a zero. If it subsequently gets created, then if there's no caching that's going on, I should be able to read it, but I cannot seem to for some reason. I just want to confirm what FSUIPC is doing, then I'll hack up your LUA scripts to filter down just the FSDT LVARs and see what's going on. (For some odd reason the script I have doesn't want to create an onscreen window in p3D v4.4). Cheers!
  15. Luke Kolin

    Cannot read LVAR correctly

    Thanks. Interestingly enough, the LVAR doesn't exist until I trigger the pushback. If I attempt to read an LVAR via an FSUIPC offset that doesn't exist, but is later created, is that nonexistence cached somewhere? Cheers!
×

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.