CCG/Example: Product (General Goods Product)

From TrainzOnline
< CCG
Jump to: navigation, search

Contents

Product (General Goods Product)

Directory Structure

A typical asset of this kind has the following File\Directory Structure:

CCG GenGoods Dir.jpg


Required Files

config.txt - The config file for the asset.

thumb.jpg - The thumbnail image for this asset. A 240x180 jpeg.

general_goods.im, crate2.im, crate3.im, crate4.im, crate5.im, crate6.im, crate7.im - The assorted indexed mesh files used to represent this product when placed on an item of rollingstock. Using more of these files creates a greater variety of meshes to be displayed when items of rollingstock are carrying this product.

crate.tga, crate.texture.txt, crate_2.tga, crate_2.texture.txt, crate_3.tga, crate.texture_3.txt, crate_4.tga, crate_4.texture.txt, crate_5.tga, crate_5.texture.txt, crate_6.tga, crate_6.texture.txt, crate_7.tga, crate_7.texture.txt - The texture files used by the indexed meshes of this product.

generalgoods.tga, icon_texture.texture.txt - The product icon images (64x64 TGA). See the section on Texture.txt files on Page 96 for more information.


Config.txt File Listing

kuid                 <kuid:171456:100039>
trainz-build         2.5
category-class       "IC"
category-region      "00"
category-era         "2000s"
username             "testGeneral Goods"
kind                 "product"
allows-mixing        1
instance-type        "instance"
icon-texture         "icon_texture.texture"
mass                 1400
product-category     <kuid:-3:10042>
description          "Test General Goods Asset."
mesh-table
{
  default
    {
      mesh           "general_goods.im"
      auto-create    1
    }
  crate2
    {
      mesh           "crate2.im"
      auto-create    1
    }
  crate3
    {
      mesh           "crate3.im"
      auto-create    1
    }
  crate4
    {
      mesh           "crate4.im"
      auto-create    1
    }
  crate5
    {
      mesh           "crate5.im"
      auto-create    1
    }
  crate6
    {
      mesh           "crate6.im"
      auto-create    1
    }
  crate7
    {
      mesh           "crate7.im"
      auto-create    1
    }
} 
thumbnails
{
  0
    {
      image          "thumb.jpg"
      width          240
      height         180
    }
}


Download this asset

This asset is available for download from the TRS2006 website at:

http://files.auran.com/TRS2006/Downloads/Example_Download.zip


Return to CCG Index

Content Creator's Guide

Kind Examples

Personal tools