DRF30q / C152X

C152 Realism Mod for Flight Simulator 2020
288 stars 22 forks source link

Hide yoke doesn't work anymore after the latest MSFS update #25

Open ProfKenWord opened 3 years ago

ProfKenWord commented 3 years ago

Hide yoke doesn't work anymore after the latest MSFS update to Version 1.12.13.0

bl52002 commented 3 years ago

Open the Cessna152_Interior.xml file under the model folder with notepad. Search for yoke

Paste in the code below over what is currently there

    <UseTemplate Name="ASOBO_HANDLING_Yoke_Hideable_Template">
        <TOOLTIPID>TT:COCKPIT.TOOLTIPS.YOKE_VISIBILITY</TOOLTIPID>
        <NODE_ID>HANDLING_Yoke_1</NODE_ID>
        <YOKE_HIDER_NODE_ID>HANDLING_Yoke_Hider_1</YOKE_HIDER_NODE_ID>
        <YOKE_NODE_ID>HANDLING_Yoke_1</YOKE_NODE_ID>
        <ANIM_NAME_YOKE_X>HANDLING_Yoke_Lever_StickLR</ANIM_NAME_YOKE_X>
        <ANIM_NAME_YOKE_Y>HANDLING_Yoke_Lever_StickForeAft</ANIM_NAME_YOKE_Y>
        <AP_CAN_DRIVE_ANIMATION>True</AP_CAN_DRIVE_ANIMATION>
        <ID>1</ID>
    </UseTemplate>

    <UseTemplate Name="ASOBO_HANDLING_Yoke_Hideable_Template">
        <NODE_ID>HANDLING_Yoke_2</NODE_ID>
        <YOKE_HIDER_NODE_ID>HANDLING_Yoke_Hider_2</YOKE_HIDER_NODE_ID>
        <YOKE_NODE_ID>HANDLING_Yoke_2</YOKE_NODE_ID>
        <ID>2</ID>
        <ONLY_HIDEABLE/>
    </UseTemplate>

Save As to your desktop Make a backup of the original file somewhere then replace it with the file you just saved. (FYI: I did a similar fix for the rpm issue. See that issue for the fix)

ProfKenWord commented 3 years ago

I suggest this so that the cables of the yoke continue to disappear with it:

<Component ID="YOKES">
    <UseTemplate Name="ASOBO_HANDLING_Yoke_Hideable_Template">
        <TOOLTIPID>TT:COCKPIT.TOOLTIPS.YOKE_VISIBILITY</TOOLTIPID>
        <NODE_ID>HANDLING_Yoke_1</NODE_ID>
        <YOKE_HIDER_NODE_ID>HANDLING_Yoke_Hider_1</YOKE_HIDER_NODE_ID>
        <YOKE_NODE_ID>HANDLING_Yoke_1</YOKE_NODE_ID>
        <ANIM_NAME_YOKE_X>HANDLING_Yoke_Lever_StickLR</ANIM_NAME_YOKE_X>
        <ANIM_NAME_YOKE_Y>HANDLING_Yoke_Lever_StickForeAft</ANIM_NAME_YOKE_Y>
        <AP_CAN_DRIVE_ANIMATION>True</AP_CAN_DRIVE_ANIMATION>
        <ID>1</ID>
    </UseTemplate>
    <UseTemplate Name="ASOBO_HANDLING_Yoke_Hideable_Template">
        <NODE_ID>HANDLING_Yoke_2</NODE_ID>
        <YOKE_HIDER_NODE_ID>HANDLING_Yoke_Hider_2</YOKE_HIDER_NODE_ID>
        <YOKE_NODE_ID>HANDLING_Yoke_2</YOKE_NODE_ID>
        <ID>2</ID>
        <ONLY_HIDEABLE/>
    </UseTemplate>
    <UseTemplate Name="ASOBO_HANDLING_Yoke_Hideable_Template">
        <NODE_ID>HANDLING_Yoke_1_Cable</NODE_ID>
        <ID>1</ID>
        <ONLY_DECORATIVE/>
    </UseTemplate>
    <UseTemplate Name="ASOBO_HANDLING_Yoke_Hideable_Template">
        <NODE_ID>HANDLING_Yoke_2_Cable</NODE_ID>
        <ID>2</ID>
        <ONLY_DECORATIVE/>
    </UseTemplate>      
</Component>
Diskantus commented 3 years ago

Second version is easier for beginner. Thank's lot, it works.

damienstanton commented 3 years ago

Hi all! I've opened a PR that fixes this issue. If it can be reviewed and merged, we can close this one out.