Combined Throttle/Brake

Discussion of rolling-stock creation & re-painting.

Combined Throttle/Brake

Unread postby redvanilla » Wed Mar 14, 2018 4:26 pm

Hello,

I have a loco that has a Combined Throttle/Brake with percent value. i would change this to a Combined Throttle/Brake with "stepnumbers" like the ALP-45DP.
what part of the Bin-file do I need to copy to another loco?

Thank you for your help
redvanilla
 

Re: Combined Throttle/Brake

Unread postby thegevo5k » Wed Mar 14, 2018 9:34 pm

Welcome to RWA firstly - as for the step numbers for a combined throttle and brake, I believe you have to script those.
thegevo5k
 

Re: Combined Throttle/Brake

Unread postby redvanilla » Wed Mar 14, 2018 11:28 pm

hm really? have anybody knowledge to do this?

thank you
redvanilla
 

Re: Combined Throttle/Brake

Unread postby bnsfsubdivision » Thu Mar 15, 2018 7:52 am

- Convert the locomotive .bin file into an .xml in order to be able to edit it (or use RWTools directly).
- Open it either in RWTools, Notepad or whatever else.
- Search for the combined throttle control "<ControlName d:type="cDeltaString">CombinedThrottle</ControlName>" (or whatever the control name is in your case).

Now. The example below also uses a combined throttle however things such as the control and transform names, default values per setting and animation references will be different to yours. The basic concept remains the same though. What you need to swap out on your original combined throttle control is basically the "InterfaceElements" section.

Depending on how many settings (notches) the combined throttle has, you'll have to adjust both the value and identifier for each setting. In the example below, the combined throttle has overall 18 positions (Idle-N8 and Setup-DB8), hence the uneven numbers for each notch.

Also make sure to replace the " -- reference original code here -- " sections with the appropriate names and paths from your original combined throttle control.

Code: Select all
                  <cControlContainerBlueprint-cControlValue d:id="4377">
                     <ControlName d:type="cDeltaString">VirtualThrottle</ControlName>
                     <DefaultValue d:type="sFloat32" d:alt_encoding="00000060F1F0E03F" d:precision="string">0.529412</DefaultValue>
                     <MinimumValue d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</MinimumValue>
                     <MaximumValue d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</MaximumValue>
                     <BriefDescription d:type="cDeltaString"></BriefDescription>
                     <DetailedDescription d:type="cDeltaString"></DetailedDescription>
                     <ApplyToConsist d:type="cDeltaString">eFalse</ApplyToConsist>
                     <HUDControlID d:type="sUInt32">0</HUDControlID>


                     <InterfaceElements>
                        <cControlContainerBlueprint-cInteriorIrregularNotchedLever d:id="4398">
                           <ElementName d:type="cDeltaString"></ElementName>
                           <DifficultyType d:type="cDeltaString"> -- reference original code here -- </DifficultyType>
                           <PickTransformName d:type="cDeltaString"> -- reference original code here -- </PickTransformName>
                           <MovementType d:type="cDeltaString"> -- reference original code here -- </MovementType>
                           <AnalogInputSensitivity d:type="sFloat32" d:alt_encoding="000000000000D03F" d:precision="string">0.25</AnalogInputSensitivity>
                           <DigitalInputSensitivity d:type="sFloat32" d:alt_encoding="000000403333C33F" d:precision="string">0.15</DigitalInputSensitivity>
                           <AnimationName d:type="cDeltaString"> -- reference original code here --  </AnimationName>
                           <OutputInterface d:type="cDeltaString">eCab</OutputInterface>
                           <RestInNotchedPosition d:type="cDeltaString">eTrue</RestInNotchedPosition>
                           <DisplayNotchName d:type="cDeltaString">eTrue</DisplayNotchName>
                           <Notch>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4410">
                                 <Identifier d:type="cDeltaString">DB 8</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4413">
                                 <Identifier d:type="cDeltaString">DB 7</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000201D1EAE3F" d:precision="string">0.0588235</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4416">
                                 <Identifier d:type="cDeltaString">DB 6</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000201D1EBE3F" d:precision="string">0.117647</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4419">
                                 <Identifier d:type="cDeltaString">DB 5</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000009A96C63F" d:precision="string">0.176471</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4422">
                                 <Identifier d:type="cDeltaString">DB 4</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000201D1ECE3F" d:precision="string">0.235294</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4425">
                                 <Identifier d:type="cDeltaString">DB 3</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="00000040D4D2D23F" d:precision="string">0.294118</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4428">
                                 <Identifier d:type="cDeltaString">DB 2</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000E09596D63F" d:precision="string">0.352941</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4431">
                                 <Identifier d:type="cDeltaString">DB 1</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000A05B5ADA3F" d:precision="string">0.411765</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4434">
                                 <Identifier d:type="cDeltaString">SETUP</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000201D1EDE3F" d:precision="string">0.470588</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4437">
                                 <Identifier d:type="cDeltaString">IDLE</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="00000060F1F0E03F" d:precision="string">0.529412</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4440">
                                 <Identifier d:type="cDeltaString">N1</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="00000040D2D2E23F" d:precision="string">0.588235</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4443">
                                 <Identifier d:type="cDeltaString">N2</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="00000020B5B4E43F" d:precision="string">0.647059</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4446">
                                 <Identifier d:type="cDeltaString">N3</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000E09596E63F" d:precision="string">0.705882</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4449">
                                 <Identifier d:type="cDeltaString">N4</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000C07878E83F" d:precision="string">0.764706</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4452">
                                 <Identifier d:type="cDeltaString">N5</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="00000080595AEA3F" d:precision="string">0.823529</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4455">
                                 <Identifier d:type="cDeltaString">N6</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000603C3CEC3F" d:precision="string">0.882353</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4458">
                                 <Identifier d:type="cDeltaString">N7</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000201D1EEE3F" d:precision="string">0.941176</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                              <cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData d:id="4461">
                                 <Identifier d:type="cDeltaString">N8</Identifier>
                                 <Value d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</Value>
                              </cControlContainerBlueprint-cInteriorIrregularNotchedLever-cNotchData>
                           </Notch>
                        </cControlContainerBlueprint-cInteriorIrregularNotchedLever>
                     </InterfaceElements>
                  </cControlContainerBlueprint-cControlValue>


- Once your done, save any changes and compile the .XML back into a .bin file.
Kevin Schulz
Artist - Searchlight Simulations
User avatar
bnsfsubdivision
 
Posts: 822
Joined: Sun Feb 20, 2011 5:27 am

Re: Combined Throttle/Brake

Unread postby redvanilla » Thu Mar 15, 2018 2:58 pm

Hello Kevin thank you for your answer. I contact you via PM.
redvanilla
 


Return to Rolling-Stock Design

Who is online

Users browsing this forum: No registered users and 1 guest