This is before the 11am MSFS update, on my cesnna audrino mega panel, only 2 of 7 Roatary encoders work.
I tested them using Lua directly in AM, and they work, so the problem may be simconnect/msfs...
Any advice?
I already cleared cache, persistence, rebooted, flashed over....
Rotary Encoders stopped working
Re: Rotary Encoders stopped working
Make sure that you are using the latest plugin. It can also be a network issue.
Re: Rotary Encoders stopped working
I am, latest plug-in and latest version
Re: Rotary Encoders stopped working
Did you check software dials, like an altimeter?
Re: Rotary Encoders stopped working
After a few hours of.... I want to say debuging, but more like bludgeoned investigation, the error is hw_dial_add("item", x, function)
The x is causing a legacy code issue...
I leave it to you. Without the x integer, no issues. Has to be a legacy to new code matter.
I could be wrong
Default Cessna panel... 9 encoders.
The x is causing a legacy code issue...
I leave it to you. Without the x integer, no issues. Has to be a legacy to new code matter.
I could be wrong
Default Cessna panel... 9 encoders.
Re: Rotary Encoders stopped working
X can be various things. This is the API for the rotary encoder: http://siminnovations.com/wiki/index.ph ... w_dial_add
Re: Rotary Encoders stopped working
Yes, I read the API 1000 times. Humbly I say that noting brought the 9 encoders back to life other than completely disregarding the optional variables.
I think somehow when many rotary encoders are present, the Lua script fails. (That is a panel full of encoders)
Community Panel Cessna Instruments, non modified Lua Script:
One or two fine. 7 fail.
Community Panel Cessna Instruments, with modified Lua
Remove the optional API variable, present at all hw_dial_add.... all 9 work.
I think somehow when many rotary encoders are present, the Lua script fails. (That is a panel full of encoders)
Community Panel Cessna Instruments, non modified Lua Script:
One or two fine. 7 fail.
Community Panel Cessna Instruments, with modified Lua
Remove the optional API variable, present at all hw_dial_add.... all 9 work.
- Keith Baxter
- Posts: 4685
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Rotary Encoders stopped working
Hi,
Post your instrument here so that members can have a look give some help.
Keith
Post your instrument here so that members can have a look give some help.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card
Re: Rotary Encoders stopped working
I'm not sure if you're talking about script in the instruments that come with Air Manager or your own script.
- Keith Baxter
- Posts: 4685
- Joined: Wed Dec 20, 2017 11:00 am
- Location: Botswana
Re: Rotary Encoders stopped working
Ralph,
Correct it is very unclear, The OP needs to give us the code else we are looking for UFO's in the Kimberly hole.
Keith
AMD RYZEN 9 5950X CPU, Corsair H80I cooler, ASUS TUF GAMING B550-PLUS AMD Ryzen Mother Board, 32Gb ram Corsair Vengeance 3000Mh, MSI GTX960 4G graphics card