Jump to content
The simFlight Network Forums

Help with PMDG JS 41, Goflight T8, Lua via FSUIPC - How to get LEDs to light up?


Recommended Posts

Can someone please help me figure out how to get the LEDS working on my go flight t8 using FSUIPC, LUA and PMDG js41?

I’m a total noob and have been trying to understand how lua works, but not very successful. I obtained a couple of scripts that others made that allows me to map functions from the PMDG JS41 to my (2) T8 moduless however although the functions work, the leds don’t light up.

Below is a script I’m using to turn on the flood light as an example. It is mapped to the third toggle switch from the left on my T8 module. Again, the function works, but no light.

I’ve tried adding the command gfd.SetLights(GFT8,0,3) under the third line but it did nothing. Also tried (GFT8,1 (for second t8 module),3)

-- Panel flood light on

elseif ipcPARAM == 100 then

ipc.writeLvar("L:PanelFloodSW", 1)

ipc.control(66587, 8029)

-- Panel flood light off

elseif ipcPARAM == 101 then

ipc.writeLvar("L:PanelFloodSW", 0)

ipc.control(66587, 8029)

Link to comment
Share on other sites

Nevermind, I figured it out. I am a genius

Can someone please help me figure out how to get the LEDS working on my go flight t8 using FSUIPC, LUA and PMDG js41?

I’m a total noob and have been trying to understand how lua works, but not very successful. I obtained a couple of scripts that others made that allows me to map functions from the PMDG JS41 to my (2) T8 moduless however although the functions work, the leds don’t light up.

Below is a script I’m using to turn on the flood light as an example. It is mapped to the third toggle switch from the left on my T8 module. Again, the function works, but no light.

I’ve tried adding the command gfd.SetLights(GFT8,0,3) under the third line but it did nothing. Also tried (GFT8,1 (for second t8 module),3)

-- Panel flood light on

elseif ipcPARAM == 100 then

ipc.writeLvar("L:PanelFloodSW", 1)

ipc.control(66587, 8029)

-- Panel flood light off

elseif ipcPARAM == 101 then

ipc.writeLvar("L:PanelFloodSW", 0)

ipc.control(66587, 8029)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.