Jump to content
The simFlight Network Forums

usafgadget

new Members
  • Posts

    3
  • Joined

  • Last visited

usafgadget's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Pete, Thanks for your help. I now have a working example to go forward from. Perhaps this small script would be useful in your lua examples .zip . Try to see it from my perspective. Without programming knowledge it's like trying to reverse engineer a jet fighter into a paper airplane. v/r, Chris
  2. True that isn't difficult and I figured that out already and wasn't my original point. Again, I am aware of available commands, keystrokes and the like. However my familiarity with FSUIPC is simply not on your level and understanding its nuances isn't going to happen overnight. Ok, now you're being just a bit condescending. I clicked on every imaginable drop down list, tab and button and know what's in front of me. It's putting it to use that I'm having a hard time with. As I've already stated, I am not a programmer and can't digest the example lua files you provided to have them make sense. I found the appropriate offset (or have I?) as 0BC8. I see that I have to define the function ahead of time (If I read the lua library file correct it's supposed to be function-name(offset, value). The value listed for set is 32768. The event.offset line lists offset (0BC8), type (SW for signed 16 bit word (from offset list showing S16) and the function name (set_brake). Finally the set light command for the GF RP-48) function set_brake(0BC8, 32768) event.offset(0BC8, SW, set_brake) gfd.SetLight (GFRP48, 0, 6) Obviously this does not work and I'm unable to proceed further without help. A correctly written set on instructions for my original task would go a long way in bettering my understanding of the program and it's uses. I look forward to your response. v/r Chris
  3. I've trolled the forum for some time now and can't quite seem to find or recognize the answer I'm looking for. My issue is getting the GoFlight modules to fully function; that is the LEDs working with the appropriate switch (GF-T8). My research suggests LUA over GFKeys but I'm not a programmer and I'm a bit overwhelmed at the documentation. I can program the toggle switch through FSUIPC to generate the keystroke for the parking brake, and separately I made a simple lua script to light up an LED but I can't seem to understand how I can combine these two steps into one. I am also not proficient at writing or interpreting code for LUA so I guess I'm asking for someone to through me a little bone showing me the code in LUA to accomplish this. I hope once I can get past that part I can better understand the mechanics enough to figure out other actions. Thanks in advance for your help.
×
×
  • 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.