MarkStallen Posted January 19, 2023 Report Posted January 19, 2023 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
John Dowson Posted January 19, 2023 Report Posted January 19, 2023 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
MarkStallen Posted January 19, 2023 Author Report Posted January 19, 2023 Yes stupid, just found it myself. Thanks a lot
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now