Jump to content
The simFlight Network Forums

Fsuipc Lua Script Free for general use


Recommended Posts

I am really struggling making a led fire an offset Output. I want a Led to turn on when The following LVAR is fired: (L=embApFlchClick). I created this Lua file:

function EmbApFlchClick (var, value)
ipc.writeUB(0x
7C40, value)
end
event.Lvar("L=EmbApFlchClick", 500, "EmbApFlchClick")

 

 

Now I know that there are Free offsets for general use (66C0 to 7C40), but I'm not sure how I know which ones could use and where I can get that info. I have tried several offsets but cant make it work.

If anybody could help.

thank you

FSUIPC6.ini

Link to comment
Share on other sites

11 hours ago, Jose Siqueira said:

want a Led to turn on when The following LVAR is fired: (L=embApFlchClick). I created this Lua file:

function EmbApFlchClick (var, value)
ipc.writeUB(0x
7C40, value)
end
event.Lvar("L=EmbApFlchClick", 500, "EmbApFlchClick")

It should be "L:EmbApFlchClick" and not "L=EmbApFlchClick" - i.e. a colon after the L.

11 hours ago, Jose Siqueira said:

Now I know that there are Free offsets for general use (66C0 to 7C40), but I'm not sure how I know which ones could use and where I can get that info.

You can use any offset that is free for general use - that is the whole point of them...

What is this section in your FSUIPC6.ini for:

Quote

[LvarOffsets]
1=L=EmbApFlchClick

There is no such section in FSUIPC6 (and the format is wrong for FSUIPC7). Please remove that.

Your version of FSUIPC6 is also out-of-date - you are still using 6.0.9 and the latest version is 6.1.8 - please update as only the latest version is supported.

John

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.