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

DA40CGDFQ avatar image
DA40CGDFQ asked DA40CGDFQ edited

[SU12 Beta] Tooltips missing from locPak

The template Lighting_subTemplate.xml has ASOBO_LIGHTING_Light_Template template. It contains

<TOOLTIP_TITLE>@TT_Package.LIGHTING_SWITCH_LIGHT_#LIGHT_TYPE#_TITLE</TOOLTIP_TITLE>

<TT_DESCRIPTION_ID>@TT_Package.LIGHTING_#TT_INTERACTION_TYPE#_LIGHT_#LIGHT_TYPE#_ACTION</TT_DESCRIPTION_ID>



when using Cabin or Pedestal light types with knobs there are no localization in locPak files.


LIGHTING_KNOB_LIGHT_PEDESTRAL_ACTION

LIGHTING_KNOB_LIGHT_CABIN_ACTION

TOOLtip tile defaults to switch - not knob

change to

<TOOLTIP_TITLE>@TT_Package.LIGHTING_#TT_INTERACTION_TYPE# _LIGHT_#LIGHT_TYPE#_TITLE</TOOLTIP_TITLE>


This causes erros to show in the behaviors Error tab with Tolltips checked.

aircraft
10 |10000

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

Boris_ avatar image
Boris_ answered

Hello @DA40CGDFQ ,

It's by design and since they are in a <Parameters Type="Default"> element, you can override them with the proper tooltip.


Regards,
Boris

10 |10000

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

DA40CGDFQ avatar image
DA40CGDFQ answered Boris_ converted comment to answer

I have to disagree with your design desicion. At least for the hard coded switch one. I am having trouble overriding the default tooltips. why not have default tool tips on the locpac files fron these default tooltips. after all you put defaults in for oher defaults tooltips

Suggestions would be helpful.
thefollowing does not work for me


<Component ID="LIGHTING_Panel_Knobs">
<UseTemplate Name="ASOBO_LIGHTING_Knob_Panel_Template">
<POTENTIOMETER>5</POTENTIOMETER>
<NODE_ID>LIGHTING_Knob_Panel</NODE_ID>
<ANIM_NAME>LIGHTING_Knob_Panel</ANIM_NAME>
<ANIMTIP_1>INSTRUMENT LIGHTS INCREASE</ANIMTIP_1 -->
<TT_DESCRIPTION_IS_DYNAMIC>True</TT_DESCRIPTION_IS_DYNAMIC>
<TT_DESCRIPTION RPN="True">"Instrument Lights" (F:Format)</TT_DESCRIPTION>
<USE_INTEGRATED_POWER_SETTING>True</USE_INTEGRATED_POWER_SETTING>
<FAILURE_CIRCUIT>8</FAILURE_CIRCUIT>
</UseTemplate>
</Component>

<UseTemplate Name="ASOBO_LIGHTING_Knob_Pedestal_Template">
<POTENTIOMETER>4</POTENTIOMETER>
<NODE_ID>LIGHTING_Knob_Pedestal</NODE_ID>
<ANIM_NAME>LIGHTING_Knob_Pedestal</ANIM_NAME>
<TT_DESCRIPTION_IS_DYNAMIC>True</TT_DESCRIPTION_IS_DYNAMIC>
<TT_DESCRIPTION RPN="True">"Panel Lights" (F:Format)</TT_DESCRIPTION>
<USE_INTEGRATED_POWER_SETTING>True</USE_INTEGRATED_POWER_SETTING>
</UseTemplate>

<UseTemplate Name="ASOBO_LIGHTING_Knob_Cabin_Template">
<POTENTIOMETER>3</POTENTIOMETER>
<ID>0</ID>
<NODE_ID>LIGHTING_Knob_Cabin_1</NODE_ID>
<ANIM_NAME>LIGHTING_Knob_Cabin_1</ANIM_NAME>
<TT_DESCRIPTION_IS_DYNAMIC>True</TT_DESCRIPTION_IS_DYNAMIC>
<TT_DESCRIPTION_ID RPN="True">'Adjust Cabin Lights' (F:Format)</TT_DESCRIPTION_ID>
<TT_DESCRIPTION RPN="True">'Adjust Cabin Lights' (F:Format)</TT_DESCRIPTION>
<TT_TITLE_IS_DYNAMIC>True</TT_TITLE_IS_DYNAMIC>
<TOOLTIP_TITLE RPN="True">'Cabin Lights' (F:Format)</TOOLTIP_TITLE>
<TOOLTIP_TITLE_ID RPN="True">'Cabin Lights' (F:Format)</TOOLTIP_TITLE_ID>
<USE_INTEGRATED_POWER_SETTING>True</USE_INTEGRATED_POWER_SETTING>
</UseTemplate>



result in simknob-title.png



knob-title-desc.png


knob-title.png (59.7 KiB)
knob-title-desc.png (65.0 KiB)
10 |10000

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

Boris_ avatar image
Boris_ answered

Hello @DA40CGDFQ ,
Thanks for the examples, it gives us a better idea of the problem ;)

I will only use your first component as an example, but I think it will apply to the others as well

You are using ASOBO_LIGHTING_Knob_Panel_Template
This tempate, uses ASOBO_LIGHTING_Light_Template and requires that <TT_DESCRIPTION_ID> is not empty.

You can bypass this by adding <TT_DESCRIPTION_ID></TT_DESCRIPTION_ID>.

Your template should look like this:

<Component ID="LIGHTING_Panel_Knobs">
  <UseTemplate Name="ASOBO_LIGHTING_Knob_Panel_Template">
    <POTENTIOMETER>5</POTENTIOMETER>
    <NODE_ID>LIGHTING_Knob_Panel</NODE_ID>
    <ANIM_NAME>LIGHTING_Knob_Panel</ANIM_NAME>
    <ANIMTIP_1>INSTRUMENT LIGHTS INCREASE</ANIMTIP_1>
    <TT_DESCRIPTION_IS_DYNAMIC>True</TT_DESCRIPTION_IS_DYNAMIC>
    <TT_DESCRIPTION RPN="True">"Instrument Lights" (F:Format)</TT_DESCRIPTION>
    <TT_DESCRIPTION_ID></TT_DESCRIPTION_ID>
    <USE_INTEGRATED_POWER_SETTING>True</USE_INTEGRATED_POWER_SETTING>
    <FAILURE_CIRCUIT>8</FAILURE_CIRCUIT>
  </UseTemplate>
</Component>


The result:
1678960552524.png


Regards,
Boris


1678960552524.png (65.9 KiB)
10 |10000

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

DA40CGDFQ avatar image
DA40CGDFQ answered DA40CGDFQ edited

Your suggestion does not work - still blank Tooltips, even with

<TT_DESCRIPTION_ID RPN="True">'Adjust Instrument Lights' (F:Format)</TT_DESCRIPTION_ID>


or


<TT_DESCRIPTION_ID></TT_DESCRIPTION_ID>


Behavior erroras tab shows this


da40cgdfq-20230316-13h46m04s-45.png

since there is no default localization with the default name, how do I make a localization for these light knobs?


10 |10000

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

DA40CGDFQ avatar image
DA40CGDFQ answered DA40CGDFQ edited

OK i figured out the problem. The problem is with the default Tooltip element.

the en-US.locPak file has the following tooltips

"COCKPIT.TOOLTIPSV2.LIGHTING_KNOB_CABIN_ACTION": "Adjust cabin's %s lighting",

"COCKPIT.TOOLTIPSV2.LIGHTING_KNOB_CABIN_TITLE": "Cabin lighting",


"COCKPIT.TOOLTIPSV2.LIGHTING_KNOB_PEDESTAL_ACTION_SET": "Adjust pedestal lighting",

"COCKPIT.TOOLTIPSV2.LIGHTING_KNOB_PEDESTAL_TITLE": "Pedestal lighting",

"COCKPIT.TOOLTIPSV2.LIGHTING_KNOB_PANEL_ACTION": "Adjust panel lighting brightness",

"COCKPIT.TOOLTIPSV2.LIGHTING_KNOB_PANEL_TITLE": "Panel lighting brightness",

Note however that the template to create the tooltip Title and Description_ID is

<TOOLTIP_TITLE>@TT_Package.LIGHTING_SWITCH_LIGHT_#LIGHT_TYPE#_TITLE</TOOLTIP_TITLE>

<TT_DESCRIPTION_ID>@TT_Package.LIGHTING_#TT_INTERACTION_TYPE#_LIGHT_#LIGHT_TYPE#_ACTION</TT_DESCRIPTION_ID>

The title will default to only Switch (interaction type)
The DescriptionID will have the extra _LIGHT_ in the name forming
LIGHTING_KNOB_LIGHT_CABIN_ACTION

LIGHTING_KNOB_LIGHT_PEDESTAL_ACTION

LIGHTING_KNOB_LIGHT_PANEL_ACTION

The Lighting_subTemplate.xml file with ASOBO_LIGHTING_Light_Template template needs to be fixed by removing the _LIGHT_ part.

And don't forget PEDESTRAL and PEDESTAL issue.


edit: and there is no SWITCH_LIGHT_CABIN


edit2: Also <TOOLTIP_TITLE_ID> doesn't even show up in the ASOBO_LIGHTING_Light_Template, or in the LIGHTING_Inpts.xml so setting it does not allow the title to show - you must use <TOOLTIP_TITLE> - so the interaction using input events tutorial says it's an important element - could you explain what I am not understanding.

10 |10000

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 19.1 MiB each and 23.8 MiB total.