plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!

question

lyonhaart001 avatar image
lyonhaart001 asked DA40CGDFQ answered

Panel Light Issue and Question

In my plane, I have a panel light 'switch' and a panel light 'potentiometer' dial.  I have found this to cause all interior lighting to 'turn off' when going to outside view mode, then back to inside view mode.  All lights inside the plane turn off.

When turning the potentiometer (dimmer) down, you see the light switch flip to off. Spin the dimmer the other way, it turns on the lights and they slowly brighten, as they should. But go to outside view and back in, they are all off.

I tried using the 'dimmer' name and animation on my panel light 'switch' and turned off (renamed) the dimmer switch, so that now the dimmer would be the only light function, and now it will not even do a mouse rect function. Dead.

Do you have any advice?

Node name; Panel_Light
Animation name; Panel_Light

<Component ID="LIGHTING_Knobs">
<!-- STBY IND : standby instruments-->
<UseTemplate Name="ASOBO_LIGHTING_Knob_Panel_Template">
<POTENTIOMETER>2</POTENTIOMETER>
<ANIMREF_ID>0</ANIMREF_ID>
<NODE_ID>Knob_Panel</NODE_ID>
<ANIM_NAME>Knob_Panel</ANIM_NAME>
<ANIMTIP_0>TT:COCKPIT.TOOLTIPS.LIGHTING_KNOB_STBY_IND_DECREASE</ANIMTIP_0>
<ANIMTIP_1>TT:COCKPIT.TOOLTIPS.LIGHTING_KNOB_STBY_IND_INCREASE</ANIMTIP_1>
<Count>20</Count>
</UseTemplate>
</Component>

The above template is from the Asobo Cessna Caravan for its dimmer light for aux lights, which is panel lights.  I added node ID and animation name.  This is the non functioning version.

THIS Dimmer works, but turns off all the interior lights;

<Component ID="Electrical Lighting Dimmer">
<!-- STBY IND : standby instruments-->
<UseTemplate Name="ASOBO_LIGHTING_Knob_Panel_Template">
<POTENTIOMETER>2</POTENTIOMETER>
<ANIMREF_ID>0</ANIMREF_ID>
<NODE_ID>LIGHTING_Knob_Panel</NODE_ID>
<ANIM_NAME>LIGHTING_Knob_Panel</ANIM_NAME>
<ANIMTIP_0>TT:COCKPIT.TOOLTIPS.LIGHTING_KNOB_STBY_IND_DECREASE</ANIMTIP_0>
<ANIMTIP_1>TT:COCKPIT.TOOLTIPS.LIGHTING_KNOB_STBY_IND_INCREASE</ANIMTIP_1>
<Count>20</Count>
</UseTemplate>
</Component>

Help....!  Help me Obi-Wan Kenobi...  Your my only hope...

Bill Ortis...  of the graying eyebrow, stressed developer people... 
LHC


aircraftlightanimation
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

lyonhaart001 avatar image
lyonhaart001 answered FlyingRaccoon commented

Solved... RonH did some model surgery on it, and redid some of the code, and it is now functioning well. I do not know what he did, but its working nicely now. (Does the Ren and Stimpy 'happy dance'..)

Bill Ortis... of the gray eyebrow people...
at the world famous Lionheart Creations hanger studios...

1 comment
10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Hello Bill,


Would you mind making a diff on your files and identifying where the problem was coming from?
It would be interesting for people facing the same kind of problem to know what the issue was.

Regards,
Sylvain

0 Likes 0 ·
DA40CGDFQ avatar image
DA40CGDFQ answered

The issue stems from the interior, exterior functionality of the sim, The more common parts you have in the interior and exterior gltf file and hence in the xml parts causes problems. Try to minimize any common parts as much as possible. The problem seemed to have been that the LIGHTS PANEL ON simvar kept getting set to false when you went from inside the cockpit to external view. The animation to turn on the lights remained "ON", so you had to turn the lights OFF then back ON again.

10 |10000 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.