Monday, March 9, 2020

Setup
 
I am going to show how to simplify the config and the work file.
 
Blue is what was done in last post, RED is to be deleted.
 
 
username                                "40ft PRR X31b boxcar"
kind                                    "traincar"
mass                                    20657
engine                                  0
enginespec                              <kuid:-1:42004201>
category-class                          "XB"
description                             " 40ft 50ton boxcar as used by Pennsylvania RR, Class X31b, built 1939.This car has seaeon snow."
author                                  "Whitepass"
contact-email                           "
whitepasstrainz@gmail.com"
license                                 "n/a"
category-region                         "CA;US"
category-era                            "1930s;1940s;1950s;1960s"
trainz-build                            4.6
fonts                                   1
fonts-path                              "car"

use-coupler-sounds                      1
mesh-table-lod-transition-distances 

season-selector
{
  season-range                          0.25,0.75
 
  branch-true
  {
    season-range                        0.25,0.5
   
    branch-true
    {
      output-season                     0
    }
   
    branch-false
    {
      output-season                     1
    }
  }
 
  branch-false
  {
    output-season                       0
  }
}
vehicle-running-numbers
{
  running-numbers                       "61100-62770"
}
thumbnails
{
  0
  {
    image                               "boxcarprr.jpg"
    width                               240
    height                              180
  }
 
  1
  {
    image                               "40ft_boxcar_art/40ft_boxcar_art_icon.tga"
    width                               128
    height                              64
  }
}
mesh-table
{
  default
  {
    mesh                                "40ft_boxcar_body/40ft_boxcar_body.lm"
    auto-create                         1
  }
 
  fram
  {
    mesh-asset                          <kuid:58422:100060>
    mesh                                "frame.lm"
    auto-create                         1
  }
 
  winter
  {
    mesh                                "winter/snow.lm"
    auto-create                         1
    mesh-season                         1
  }
 

}
queues
{
  load
  {
    size                                7
    initial-count                       0
    product-kuid                        <kuid:-3:10013>
   
    allowed-products
    {
      0                                 <kuid:-3:10013>                                              
      1                                  <kuid2:30671:9040500:1>
      2                                 <kuid2:30671:9040690:1>
      3                                 <kuid2:30671:9080810:1>
      4                                 <kuid2:30671:9080510:1>
      5                                 <kuid2:30671:98702901:1>
      6                                 <kuid2:30671:94805601:1>
    }
  }
}
bogeys
{
  0
  {
    bogey                               <kuid:58422:100464>
    reversed                            0
  }
}

kuid-table
{
  0                                     <kuid:58422:100464>
  1                                     <kuid2:30671:9040500:1>
  2                                     <kuid2:30671:9040690:1>
  3                                     <kuid2:30671:9080810:1>
  4                                     <kuid2:30671:9080510:1>
  5                                     <kuid2:30671:98702901:1>
  6                                     <kuid2:30671:94805601:1>
  7                                     <kuid:-1:42004201>
  8                                     <kuid:-3:10013>
 
  9                                     <kuid:58422:100060>
}
kuid                                    <kuid:58422:100463>
 
 
We will be putting most of this back, why you made a backup.
 
What your work folder should look like:
 
Delete the folder "car_alpha_numbers".
 
Open the folder named "40ft_boxcar_body" shown below and delete all red files.


Next open the file "40ft_boxcar_body.lm.txt" see below.

version 1.0
offset=0.01;
calcPoint=center;
multiplier=1.0;
animationCutOff=0.00;
renderCutOff=0.00;
attachmentCutOff=0.1;

mesh("0.01")
{
name="xx_boxcar_body.trainzmesh";
}
mesh("0.4")
{
name="low40ft_boxcar_body.trainzmesh";
}

mesh("0.8")
{
name="med40ft_boxcar_body.trainzmesh";
}

mesh("1.0")
{
name="40ft_boxcar_body.trainzmesh";
}
 
Delete the red and save.
Last thing is to rename the mesh file "40ft_boxcar_body.trainzmesh" to "40ft_boxcar_body.fbx"
Windows will give you warning about changing file type that is what you are doing.
DO NOT TRY TO IMPORT to CM at this time, you need to make two FBX mesh's first.
 


No comments:

Post a Comment