Home > Tutorials > TRS2006 Tanker Load Tutorial

TRS2006 Tanker Load Tutorial

In this tutorial you will learn how to create the load setup for a tanker for use in the industry setup in TRS2006

 

1. Attachment points.

Although we are loading a tanker and there is very little visual aspects of the process we can still add the pipe effect that extends from the default industries. To do this we need to add two attachment points called a.loaderL and a.loaderR. They need to be located where you want the pipe to attach to your tanker but they must be a certain distance from both the ground level and the ceterline of the tanker. For my 6 axle tanker I have the attachment points located as follows

 
X
Y
Z
a.LoaderL
0.1
0.0
0.0
a.LoaderR
-0.1
0.0
0.0

Which places the hose in the centre of the tanker at a set distance from the ground

2. Tanker hose/pipe coupler

Now that we have the attachment points added we need to add a coupler point on the tanker for the pipe to fit into. For my tanker I just used a small cylinder protruding from both sides of the tank. There is not much point in adding too much detail as the default pipes in TRS2006 industries are very basic. You could create a lid that opens before the pipe extends to the tanker and control it from the scipt.The pipe will attach at 1.411m from the height of the attachment points.

3. Config.txt file entries

Once you have successfully exported the mesh into the correct location then you need to setup the config.txt file to show the location and the name of the load mesh. You also need to setup the mesh table as TRS2004 will not recognize the attachment without the mesh-table.


script "80ft_Tanker" This tells TRS the name of the script file
class "80ft_Tanker" This tells TRS the class referenced by the script.
mesh-table {
  default {
    mesh Tanker80ftBN_body/Tanker80ftBN_body.lm
    auto-create 1
This tells TRS2006 where to find the main body mesh. NOTE In this example this entry points to a level of detail file.
    effects {
      pipe-attachment-left {
        kind attachment
        att a.loaderL
      }
      pipe-attachment-right {
        kind attachment
        att a.loaderR
      }
    }
  }
This tells TRS2006 where to attach the pipe animations for the industries

  shadow {
    mesh Tanker80ftBN_shadow/Tanker80ftBN_shadow.im
  }
}

This tells TRS2006 where to find the shadow file.

queues {
  load {
    size 143997
    initial-count 0
    allowed-categories {
      0 <KUID:-3:10040>

      1 <KUID:-3:10045>
      2 <KUID:-3:10011>
      3 <KUID:-3:10012>
    }
  }
}

This is the section where you need to tell TRS2004 the size of the tanker in liters. In the allowed-categories section you need to add all the types of load that the tanker will accept. In this case it is set to accept Diesel, Crude Oil, Petrol and Aviation Fuel.

NOTE If copying and pasting from this tutorial please make sure that the correct quotes are copied. Using the wrong type of quotes such as those used in Word will cause errors.

 

Was this tutorial helpful? Not enough or too much detail? Points not explained properly? Suggest any improvements? Please use the Tutorial Enquiry Form

 

Trainz and Trainz Railroad Simulator are trademarks of Auran

Best viewed at 1024 x 768 or higher

Pages best viewed with Cooper and Cooper Black font installed.

Copyright © 2007 P. Campbell. All rights reserved. Revised: June 13, 2007