Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
Collapse
Just Flight Community Forum
  1. Home
  2. Just Flight
  3. MSFS Products
  4. Black Square Add-Ons
  5. Caravan Professional
  6. Generator Switch and Inertial Separator Animations

Generator Switch and Inertial Separator Animations

Scheduled Pinned Locked Moved Caravan Professional
8 Posts 3 Posters 85 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    miller39687
    wrote last edited by
    #1

    After days of reading, studying, trial and error, I have successfully mapped the Caravan's electrical switch panel and Inertial Separator to a couple of peripherals using the Hangar Control App. All functions are working properly, confirmed by the tablet, annunciator panel and the multi meter, however, I get no visual confirmation of the Generator Switch, nor the Inertial Separator. I have seen another post about the generator switch, but I didn't see where there was an actual solution found and @Black-Square didn't chime in on that topic.
    I understand that in certain cases there are animations that are activated outside of the Lvars that are being used to control an in-game switch and such, but I have no knowledge of how make them happen. All other animations for the other switches are functioning normally. I'm less concerned about the generator switch animation, as it's only out of it's center position momentarily, and I can easily confirm it's status on the annunciator/meter. The inertial separator is more of a concern as I primarily fly in VR, and if the lever is not visually out, I have no way to confirm it's status without looking at the tablet or feeling for my switch position.
    Does anyone have any possible solutions for someone who is not adept at modifying XMLs and the like? Any help is appreciated

    Black SquareB 1 Reply Last reply
    0
    • Black SquareB Offline
      Black SquareB Offline
      Black Square
      Black Square Developer
      wrote last edited by
      #2

      The generator switch situation is as you describe, but I should be able to add the animation pretty easily with the next update. I've already done that for a few other switches too. For the inertial separator, it shouldn't be too difficult to add either. I thought it would already work, but I guess I didn't test it. In the meantime, if you have access to B:Vars in your binding software, then you can try B:HANDLING_InertSep_Toggle. I'll see what I can do, and if the changes are easy blocks of code, then I will post them here for you to make the modification so you don't have to wait for an update. Let me know if you have any more questions!

      M 1 Reply Last reply
      0
      • Black SquareB Black Square

        The generator switch situation is as you describe, but I should be able to add the animation pretty easily with the next update. I've already done that for a few other switches too. For the inertial separator, it shouldn't be too difficult to add either. I thought it would already work, but I guess I didn't test it. In the meantime, if you have access to B:Vars in your binding software, then you can try B:HANDLING_InertSep_Toggle. I'll see what I can do, and if the changes are easy blocks of code, then I will post them here for you to make the modification so you don't have to wait for an update. Let me know if you have any more questions!

        M Offline
        M Offline
        miller39687
        wrote last edited by
        #3

        @Black-Square Thank you so very much! Hoping it's a simple fix for you!

        1 Reply Last reply
        0
        • hangar_101H Offline
          hangar_101H Offline
          hangar_101
          wrote last edited by
          #4

          @miller39687
          Inertial Separator
          B:HANDLING_INERTSEP (1 - ON / 0 - OFF) - Animation works just fine.

          Hangar 101

          M 1 Reply Last reply
          0
          • hangar_101H hangar_101

            @miller39687
            Inertial Separator
            B:HANDLING_INERTSEP (1 - ON / 0 - OFF) - Animation works just fine.

            M Offline
            M Offline
            miller39687
            wrote last edited by
            #5

            @hangar_101 Thank you! I will try that when I get a chance to sit down at the simulator again! I had used the L:XMLVAR_InterSep listed in the manual. It worked, but without the handle animation.

            1 Reply Last reply
            0
            • M miller39687

              After days of reading, studying, trial and error, I have successfully mapped the Caravan's electrical switch panel and Inertial Separator to a couple of peripherals using the Hangar Control App. All functions are working properly, confirmed by the tablet, annunciator panel and the multi meter, however, I get no visual confirmation of the Generator Switch, nor the Inertial Separator. I have seen another post about the generator switch, but I didn't see where there was an actual solution found and @Black-Square didn't chime in on that topic.
              I understand that in certain cases there are animations that are activated outside of the Lvars that are being used to control an in-game switch and such, but I have no knowledge of how make them happen. All other animations for the other switches are functioning normally. I'm less concerned about the generator switch animation, as it's only out of it's center position momentarily, and I can easily confirm it's status on the annunciator/meter. The inertial separator is more of a concern as I primarily fly in VR, and if the lever is not visually out, I have no way to confirm it's status without looking at the tablet or feeling for my switch position.
              Does anyone have any possible solutions for someone who is not adept at modifying XMLs and the like? Any help is appreciated

              Black SquareB Offline
              Black SquareB Offline
              Black Square
              Black Square Developer
              wrote last edited by
              #6

              @miller39687 For the generator switch, in CaravanProfessional_INT.XML (there will be two such files in your community folder if you have the bundle), search for the line...

              <CODE_POS_2> 2 (&gt;L:var_GeneratorSwitch, number) </CODE_POS_2>
              

              Immediately afterwards, add:

              <OVERRIDE_ANIM_CODE>
              	(L:var_GeneratorSwitch, number) 1 == if{
              		0
              	}
              	els{
              		(L:var_GeneratorSwitch, number) 2 == if{
              			200
              		}
              		els{
              			100
              		}
              	}
              </OVERRIDE_ANIM_CODE>
              

              For the inertial seperator, search for ASOBO_HANDLING_Lever_InertSep_Template. Delete this block of code (from <UseTemplate Name... to </UseTemplate>, and replace it with...

              <Component ID="HANDLING_Lever_InertSep" Node="HANDLING_Lever_InertSep">
              	<UseTemplate Name="ASOBO_GT_Switch_Code">
              		<ANIM_NAME>HANDLING_Lever_InertSep</ANIM_NAME>
              		<NODE_ID>HANDLING_Lever_InertSep</NODE_ID>
              		<PART_ID>HANDLING_Lever_InertSep</PART_ID>
              		<LEFT_SINGLE_CODE>
              			(L:XMLVAR_InterSep, bool) ! (&gt;L:XMLVAR_InterSep, bool)
              		</LEFT_SINGLE_CODE>
              		<ANIM_CODE>(L:XMLVAR_InterSep, bool) 100 *</ANIM_CODE>
              		<ANIM_LAG>100</ANIM_LAG>
              
              		<WWISE_EVENT_1>Caravan_Bypass_On</WWISE_EVENT_1>
              		<WWISE_EVENT_2>Caravan_Bypass_Off</WWISE_EVENT_2>
              
              		<TOOLTIP_TITLE></TOOLTIP_TITLE>
              		<TOOLTIPID>Inertial Seperator</TOOLTIPID>
              	</UseTemplate>
              </Component>
              

              Let me know if you need any help with that! Always happy to fix these things for anyone willing to edit a couple lines of code 🙂

              hangar_101H M 2 Replies Last reply
              1
              • Black SquareB Black Square

                @miller39687 For the generator switch, in CaravanProfessional_INT.XML (there will be two such files in your community folder if you have the bundle), search for the line...

                <CODE_POS_2> 2 (&gt;L:var_GeneratorSwitch, number) </CODE_POS_2>
                

                Immediately afterwards, add:

                <OVERRIDE_ANIM_CODE>
                	(L:var_GeneratorSwitch, number) 1 == if{
                		0
                	}
                	els{
                		(L:var_GeneratorSwitch, number) 2 == if{
                			200
                		}
                		els{
                			100
                		}
                	}
                </OVERRIDE_ANIM_CODE>
                

                For the inertial seperator, search for ASOBO_HANDLING_Lever_InertSep_Template. Delete this block of code (from <UseTemplate Name... to </UseTemplate>, and replace it with...

                <Component ID="HANDLING_Lever_InertSep" Node="HANDLING_Lever_InertSep">
                	<UseTemplate Name="ASOBO_GT_Switch_Code">
                		<ANIM_NAME>HANDLING_Lever_InertSep</ANIM_NAME>
                		<NODE_ID>HANDLING_Lever_InertSep</NODE_ID>
                		<PART_ID>HANDLING_Lever_InertSep</PART_ID>
                		<LEFT_SINGLE_CODE>
                			(L:XMLVAR_InterSep, bool) ! (&gt;L:XMLVAR_InterSep, bool)
                		</LEFT_SINGLE_CODE>
                		<ANIM_CODE>(L:XMLVAR_InterSep, bool) 100 *</ANIM_CODE>
                		<ANIM_LAG>100</ANIM_LAG>
                
                		<WWISE_EVENT_1>Caravan_Bypass_On</WWISE_EVENT_1>
                		<WWISE_EVENT_2>Caravan_Bypass_Off</WWISE_EVENT_2>
                
                		<TOOLTIP_TITLE></TOOLTIP_TITLE>
                		<TOOLTIPID>Inertial Seperator</TOOLTIPID>
                	</UseTemplate>
                </Component>
                

                Let me know if you need any help with that! Always happy to fix these things for anyone willing to edit a couple lines of code 🙂

                hangar_101H Offline
                hangar_101H Offline
                hangar_101
                wrote last edited by
                #7

                @Black-Square thank you for sharing this piece of code — it worked perfectly.

                Hangar 101

                1 Reply Last reply
                0
                • Black SquareB Black Square

                  @miller39687 For the generator switch, in CaravanProfessional_INT.XML (there will be two such files in your community folder if you have the bundle), search for the line...

                  <CODE_POS_2> 2 (&gt;L:var_GeneratorSwitch, number) </CODE_POS_2>
                  

                  Immediately afterwards, add:

                  <OVERRIDE_ANIM_CODE>
                  	(L:var_GeneratorSwitch, number) 1 == if{
                  		0
                  	}
                  	els{
                  		(L:var_GeneratorSwitch, number) 2 == if{
                  			200
                  		}
                  		els{
                  			100
                  		}
                  	}
                  </OVERRIDE_ANIM_CODE>
                  

                  For the inertial seperator, search for ASOBO_HANDLING_Lever_InertSep_Template. Delete this block of code (from <UseTemplate Name... to </UseTemplate>, and replace it with...

                  <Component ID="HANDLING_Lever_InertSep" Node="HANDLING_Lever_InertSep">
                  	<UseTemplate Name="ASOBO_GT_Switch_Code">
                  		<ANIM_NAME>HANDLING_Lever_InertSep</ANIM_NAME>
                  		<NODE_ID>HANDLING_Lever_InertSep</NODE_ID>
                  		<PART_ID>HANDLING_Lever_InertSep</PART_ID>
                  		<LEFT_SINGLE_CODE>
                  			(L:XMLVAR_InterSep, bool) ! (&gt;L:XMLVAR_InterSep, bool)
                  		</LEFT_SINGLE_CODE>
                  		<ANIM_CODE>(L:XMLVAR_InterSep, bool) 100 *</ANIM_CODE>
                  		<ANIM_LAG>100</ANIM_LAG>
                  
                  		<WWISE_EVENT_1>Caravan_Bypass_On</WWISE_EVENT_1>
                  		<WWISE_EVENT_2>Caravan_Bypass_Off</WWISE_EVENT_2>
                  
                  		<TOOLTIP_TITLE></TOOLTIP_TITLE>
                  		<TOOLTIPID>Inertial Seperator</TOOLTIPID>
                  	</UseTemplate>
                  </Component>
                  

                  Let me know if you need any help with that! Always happy to fix these things for anyone willing to edit a couple lines of code 🙂

                  M Offline
                  M Offline
                  miller39687
                  wrote last edited by miller39687
                  #8

                  @Black-Square Thank you again! Last night I tried your suggestion of B:HANDLING_InertSep_Toggle, and it worked perfectly, so I will likely leave that one as it is for now.
                  I will give the code for the generator switch a try the next time I'm at my simulator! Since @hangar_101 had success with it, it will completely depend on my ability to follow your instructions!
                  FYI, I'm loving your Caravan Professional so much that this is the switch box I invested in to increase my immersion! il_1588xN.7808464905_kbmk.webp

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users