While working on a model’s interior.xml I noticed that a potentiometer would
be stuck at 55% no matter what I would change in my code. In the end I found
out that two separate entities had the same potentiometer defined. Only one
entity had a potentiometer knob in it though and the splitting was done on
purpose to keep my code more organised.
3
....................
3
.....................
Can anyone explain why an A:var parameter will not work correctly if it is
shared across two components?
Hello @SWS-AlexVletsas , To help us understand this behavior, can you send us
the xml file of your interior xml as well as the custom template files if you
are using some? [See 3) Provide private content
](https://devsupport.flightsimulator.com/articles/5483/how-to-report-a-bug-or-
crash.html) Thanks, Regards, Boris
Which package are you referring to when you say ‘interior.xml’? As we never
keep previously sent packages, can you send us yours please ? [See 3) Provide
private content](https://devsupport.flightsimulator.com/articles/5483/how-to-
report-a-bug-or-crash.html) Regards, Boris
It seems the file didn’t make it through. Here is the offending code,
isolated. You see that under I have two separate components, one called
Pilot_Panel and the other one Lighting_Pilot. Both have a Default Parameter
that specifies potentiometer 3 as its default. The bug is that all the meshes
that use potentiometer 3 will be stuck at 55% brightness. If I remove 3 from
the Default Parameters of one component, then it will work correctly.
@SWS-AlexVletsas , I wasn’t able to reproduce this behavior using your code.
Could it be the “code,code,code” part that triggers the problem? Did you test
it without this part? What’s in it? Regards, Boris