Adding Product

JohnnyC1

Pioneer Valley RR
I would like to add several tank car products to be shipped from my chemical industry. How does one go about adding a product so that it will be carried in a tank car? I am using Ver. 2010 and have PSP and I not a computer novice, but I need some basic steps on how a beginner can do this.

Johnny
 
Open CM3.2 and set the Search windows to Category - Commodity and find a similar product type in the list, right click it and select View Config File to see the list of tags and their data. This will give you an idea of what kind of info you'll need. Then to make a new commodity kuid select File - New Asset, select Product to get the template and file in the blanks and options.

Bob
 
I would like to add several tank car products to be shipped from my chemical industry. How does one go about adding a product so that it will be carried in a tank car? I am using Ver. 2010 and have PSP and I not a computer novice, but I need some basic steps on how a beginner can do this.

Johnny

First look at what is available under LLJ username. Many other industries are set up to use his products. Trainzproroutes web site has more information.

After that check to see if anyone else has made anything suitable.

After that clone an existing product and edit in explorer and edit the config.txt file. Details in the CCG.

Cheerio John
 
If you just want to add it to a particular session, you don't have to go through all that stuff above. Just use the train tab's ? tool on the train car, (assuming it is industry enabled) find a queue you can use (probably only will be one for a tank car) and click the + icon. Find the product you want to add in the list and click the accept (aka check mark) button. If you have more then one copy of that car added, there may be a button that will allow you to copy that config to the other cars. This method doesn't require cloning the asset or editing the asset, the details are all stored in the Session file I believe.
 
Last edited:
I was assuming that Johnny wants to add a new commodity that wouldn't show up in the queue list or that hasn't already made for LARS.

Bob
 
I think that this line:
product-category <kuid:-3:10044>
in the product's config.txt file would be all that would be needed (at least in TS2010) to allow a new product to be loaded onto existing tank cars by the normal ? tool config screen.

To test that out I cloned an existing product, (Beer, tank volume) changed the name slightly, and tried adding it to a couple of built-in tank cars, without editing the tank cars in CMP at all. I just added it via the ? tool config screen and it worked.
 
Ok, I got the new asset installed, Resin (Tank Load), It shows up on the add product list.

There are several issues.

Shows as faulty:

Error: Tag 'asset-filename' in the container 'product' is obsolete.
Error: The tag 'mesh' in container 'default' is empty.
Error: The tag 'mesh' in 'default' must have a mesh file extension.

also the product icon does not show in the cars product list.
Here is the config file:
kuid <kuid:473136:1078>
trainz-build 3.1
category-class "IL"
category-region "00"
category-era "1970s;1980s;1990s;2000s;2010s"
kind "product"
allows-mixing 0
instance-type "resource"
mass 1.198
icon-texture "Resin_Liquid_icon.tga"
product-category <kuid:-3:10044>
description
asset-filename "Resin_Tankload"
username "Resin (tank load)"
author
organisation
contact-email
contact-website
license "May not be included in or referenced from any commercial content of any kind without written permission."

kuid-table
{
0 <kuid:-3:10044>
}

mesh-table
{
default
{
mesh
}
}
 
If you don't have a mesh, simplify it like this:
mesh-table
{
}

For the icon use something like this:
Code:
thumbnails
{
  0
  {
    image                               "beertank_icon.tga"
    width                               64
    height                              64
  }
}

If it's got a texture, it appears you use it like this:
Code:
product-texture                         "beertank_product.tga"

Try checking out other products to get an idea how they're done.
 
Back
Top