Jump to content
The simFlight Network Forums

xettera

Members
  • Posts

    5
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Australia

xettera's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Whilst that solves my problem, using specific values is perhaps not as elegant as it could be. Is there any way at the LUA level to determine the source (process or thread) of the write request?
  2. Works perfectly. Thanks again. function interceptStabTrim(offset, value) if value == 16000 then -- do nothing else ipc.writeSW(0x0BC0, value) end end event.intercept(0x0BC0, "SW", "interceptStabTrim") It's not a single problem I was trying to solve. I work on multiple simulator setups, each with an array of external applications (over which i have no control) mostly using fsuipc. One example of what I can now fix, is a hardware interface constantly setting elevator trim in the game to match the physical trim wheel position - blissfully unaware of another application trying to control the games trim for autopilot. I can trick the hardware into thinking it is trimmed to a certain point eg 16,000. I know that an autopilot won't trim to that extent and can therefore distinguish between the conflicting writes to 0BC0 and ignore the hardware value, but allow the autopilot writes to occur.
  3. Yes I meant trim. Ok it looks like the LUA event.intercept is exactly what I'm after. Many thanks!
  4. Thanks for the reply. It didn't make a whole lot of sense to me (yet) but I'm sure it will after I do some more digging. By stabtrim I meant offset 0BC0 for elevator input control. I will try again with the info you've given me and let you know how I get on. Thanks again, you're a legend!
  5. Hi Peter, I have multiple pieces of software all using fsuipc (fs9) to do various things. I'm have trouble with overlapping and conflicting functionality, in particular autopilot functions like stab trim, repositioning and weather. Long story short, I want to be able to intercept writes to certain offsets and either redirect them to other offsets or discard them depending on the value they are trying to write. I tried writing a wrapper dll for fsuipc.dll but have only managed to crash fs9.exe with my attempts. I know you have ceased fs9 fsuipc development, but is there any chance I could send you a simple little block of code you could compile into your dll for me. Or can you suggest any other way of achieving the desired effect - which is something like: if (pOffset == STABTRIM && pValue == 16000) { // ignore } else { doWhatFSUIPCDoes (); }
×
×
  • 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.