Jump to content
The simFlight Network Forums

Recommended Posts

Posted

I've in my FSUIPC.ini :

6=A32NX_ECAM_SD_CURRENT_PAGE_INDEX=UB66C8

and in my LUA :

LastECAM = ipc.readSB("66C8")
LastECAM = LastECAM + 1
if LastECAM == 12 then    
    LastECAM = -1
end
ipc.writeSB("66C8",LastECAM)

Everything works and the LVAR is set in MSFS 2020 except for the moment I write -1 to the variable, then the variable doesn't change.

 

If I look in the aircraft behaviour in MSFS , it's possible to set the variable to -1 

Posted
5 minutes ago, MarkStallen said:

If I look in the aircraft behaviour in MSFS , it's possible to set the variable to -1 

It should be...

6 minutes ago, MarkStallen said:

6=A32NX_ECAM_SD_CURRENT_PAGE_INDEX=UB66C8

You are holding it as an unsigned byte (UB) - try changing that to SB.

If it still doesn't work, let me know and I will check using negative values here.

John

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.