There are a couple of files to copy over, but you first need to be sure you're copying the files from the livery which was used as a base for the reskin. Copying files over from the wrong unit will lead to texture problems (reskinners, I'm sure you're aware of this
As with the Class 47, Class 166 and the HST when they were updated, you'll need to reference the light and water effects in the DMCL and DMSL .bin files. You'll also need to copy the relevant new .GeoPcDx shape files as well as the new script files into the reskin's "Engine" folder. I'll use Richard Mills' (gypbrc) excellent Chiltern 168 reskin as an example, and hopefully I'll write this in a way that's accessible to all.
STEP ONE - Making the vehicles display correctly in the sim:
This bit is relatively easy. The Chiltern 168 reskin is based on the Central Trains version of the 170, so we simply need to copy the .GeoPcDx files for each vehicle from the updated Central Trains 170 into the folder for the Chiltern 168. Whilst we're at it, we'll also copy the script files which the updated 170 now uses.
- In Windows, navigate to your Railworks folder and then to Assets\Thomson\Class170Pack01\RailVehicles\Class170\CT\Engine\
- Select the following six files, and hit Ctrl+C to copy them:
Code: Select all
170_DMCL.GeoPcDx
170_DMSL.GeoPcDx
170_MSL.GeoPcDx
class170_DMCL_script.lua
class170_DMSL_script.lua
class170_MSL_script.lua
If you go into the sim now, the units will display correctly. Now we just need to fix the cab view and add the TS2012 lights.
STEP TWO - Upgrading the vehicles to use the new TS2012 features:
- In RW_Tools, click Files>Open Railworks File, and navigate to Assets\Thomson\Class170Pack01\RailVehicles\Class170\CH\Engine\
- From here, you'll need to open Class170_DMCL.bin. Once you're done you'll also need to make the same changes to Class170_DMSL.bin.
- The MOS vehicle doesn't require any changes since it doesn't have headlights or a windscreen.
Once you've got one of the files open in RW_Tools, make the following two changes:
A - Search (F2) for </ControlValues>, place the cursor at the end of that line, hit enter. Copy the following code and paste in onto the new line:
Code: Select all
<WiperPairs>
<cControlContainerBlueprint-cWiperPair d:id="52056704">
<SlaveToAnimationA d:type="cDeltaString">wipers</SlaveToAnimationA>
<SlaveToAnimationB d:type="cDeltaString">wipers</SlaveToAnimationB>
<TextureID d:type="cDeltaString">Thomson\Class170Pack01\RailVehicles\Class170\CabView\textures\[00]170cab_wm_nm</TextureID>
<NormalsTextureID d:type="cDeltaString">Thomson\Class170Pack01\RailVehicles\Class170\CabView\textures\[00]170cab_gn_nm</NormalsTextureID>
</cControlContainerBlueprint-cWiperPair>
</WiperPairs>
Code: Select all
<cEntityContainerBlueprint-sChild d:id="52119936">
<ChildName d:type="cDeltaString">Fwd_Headlight_1</ChildName>
<BlueprintID>
<iBlueprintLibrary-cAbsoluteBlueprintID>
<BlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID>
<Provider d:type="cDeltaString">Thomson</Provider>
<Product d:type="cDeltaString">Class170Pack01</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">RailVehicles\CommonLights\Headlights.xml</BlueprintID>
</iBlueprintLibrary-cAbsoluteBlueprintID>
</BlueprintID>
<Matrix>
<cHcRMatrix4x4>
<Element>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000C0A145F03F" d:precision="string">1.017</e>
<e d:type="sFloat32" d:alt_encoding="00000060643BF93F" d:precision="string">1.577</e>
<e d:type="sFloat32" d:alt_encoding="0000000000802740" d:precision="string">11.75</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
</Element>
</cHcRMatrix4x4>
</Matrix>
<ParentNodeName d:type="cDeltaString"></ParentNodeName>
</cEntityContainerBlueprint-sChild>
<cEntityContainerBlueprint-sChild d:id="52122880">
<ChildName d:type="cDeltaString">Bwd_Taillight_1</ChildName>
<BlueprintID>
<iBlueprintLibrary-cAbsoluteBlueprintID>
<BlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID>
<Provider d:type="cDeltaString">Thomson</Provider>
<Product d:type="cDeltaString">Class170Pack01</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">RailVehicles\CommonLights\TailLights.xml</BlueprintID>
</iBlueprintLibrary-cAbsoluteBlueprintID>
</BlueprintID>
<Matrix>
<cHcRMatrix4x4>
<Element>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000C0CCCCE83F" d:precision="string">0.775</e>
<e d:type="sFloat32" d:alt_encoding="000000E07A14F83F" d:precision="string">1.505</e>
<e d:type="sFloat32" d:alt_encoding="0000000000802740" d:precision="string">11.75</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
</Element>
</cHcRMatrix4x4>
</Matrix>
<ParentNodeName d:type="cDeltaString"></ParentNodeName>
</cEntityContainerBlueprint-sChild>
<cEntityContainerBlueprint-sChild d:id="52127616">
<ChildName d:type="cDeltaString">Bwd_Taillight_2</ChildName>
<BlueprintID>
<iBlueprintLibrary-cAbsoluteBlueprintID>
<BlueprintSetID>
<iBlueprintLibrary-cBlueprintSetID>
<Provider d:type="cDeltaString">Thomson</Provider>
<Product d:type="cDeltaString">Class170Pack01</Product>
</iBlueprintLibrary-cBlueprintSetID>
</BlueprintSetID>
<BlueprintID d:type="cDeltaString">RailVehicles\CommonLights\TailLights.xml</BlueprintID>
</iBlueprintLibrary-cAbsoluteBlueprintID>
</BlueprintID>
<Matrix>
<cHcRMatrix4x4>
<Element>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
<e d:type="sFloat32" d:alt_encoding="0000000000000000" d:precision="string">0</e>
<e d:type="sFloat32" d:alt_encoding="00000020FFCCE8BF" d:precision="string">-0.775024</e>
<e d:type="sFloat32" d:alt_encoding="000000E07A14F83F" d:precision="string">1.505</e>
<e d:type="sFloat32" d:alt_encoding="0000000000802740" d:precision="string">11.75</e>
<e d:type="sFloat32" d:alt_encoding="000000000000F03F" d:precision="string">1</e>
</Element>
</cHcRMatrix4x4>
</Matrix>
<ParentNodeName d:type="cDeltaString"></ParentNodeName>
</cEntityContainerBlueprint-sChild>
If someone could quickly try to follow this tutorial and confirm all the steps are there it'd be much appreciated.
Cheers,
JB

