This is a tutorial on adding a plane to a model with
attachment points to enable visible loads
Tutorial covers how to give visible loads to a wagon that does
not have visible load attachment points in the original mesh
The only changes to the original model files is to the config.txt only
All attachment points goes on a seperate mesh referenced from the config.txt
of the original model
Programs needed
FileViewer 3.14.2
3ds Max or Gmax
Trainz Asset Creation Studio
TRS 2004 or TRS 2006
Choose a model to add the products attachment plane too
I will use the SAR FBX flatcar <kuid:1854:6064> for this tutorial
First up I created a new folder in my trainz TRS2004\World\Custom\mesh folder
I called my new folder sar flat load
We then use a text editor to add a config.txt into the folder we made
My config.txt reads
kuid
<kuid2:1854:48000:1>
trainz-build
"2.4"
category-class
"HM"
category-region
"AU"
category-era
"1970s"
username
"sar flat load"
kind
"mesh"
mesh-table {
flatload {
mesh "flatload.im"
auto-create 1
}
}
We also need to change the SAR FBX flatcar config.txt to enable adding the new
mesh
In the TRS2004\World\Custom\trains\sar fbx flatcar no stakes folder
Add the following to your config.txt
mesh-table {
default {
mesh "SAR_FBX_body/SAR_FBX_body.pm"
auto-create 1
effects {
load {
kind "attachment"
att "a.bog0"
default-mesh <kuid2:1854:48000:1>
}
}
}
Need to add the queue as well
So we will add the following for our products
queues {
40con {
size
1
attachment-points {
0
"a.40con0"
}
conflicts-with-queues {
0
"20con"
}
allowed-products {
0
<kuid:-3:10041>
}
}
20con {
size
2
attachment-points {
0
"a.20con0"
1
"a.20con1"
}
conflicts-with-queues {
0
"40con"
}
allowed-products {
0
<kuid:-3:10014>
}
}
Okay first up load the sar_fxb_body into fileviewer

Take note of the settings for a.bog0
We only need to use the Y and Z settings

As this is the attachment point i am going to use
In the case of the fbx the settings are Y -4.64343 Z 0.411611
Before closing fileviewer we will look at another setting
Take a look at the Object Information

Take a note of the Z setting of 0.820449
Now start up 3ds max or Gmax
In the top view setting we will add a a.bog0 helpers point
Place the a.bog0 helper point a X 0 Y -4.64343 Z 0.411611
Make a single segment plane.
I made mine X 0.5 Y 0.5
Make sure this plane is centered at X 0 Y 0 Z 0
For this tutorial I will add attachment points for one 40 foot container
and two 20 foot containers
Place the 40 foot container helper point at X 0 Y 0 Z 0
Give it a name such as a.40con0 as we will use this name
later in the config text for the fbx flatcar
Place a 20 foot container helper point at X 0 Y 3.0526m Z 0
I called this helper a.20con0 and again the name is used in the fbx config
I then cloned this helper and called it a.20con1
I placed the helper at X 0 Y -3.0526m Z 0
In the left hand view in 3ds Max or Gmax
You should have the following

We have now added all the attachment points for this example I am showing you
Now link the plane and a.40con0 a.20con0 and a.20con1 points to a.bog0

Once linked move a.bog0 helper on the Y axis to Zero 0
In left view you will now have this

If you export this now to your sar flat load folder
as "flatload.im"
You would end up with the following in TRS 2004

Even though the containers are centered on the flat car they are at the wrong
height
So now we need to fiddle around with the Z height setting in 3ds Max or Gmax
The Object Information setting told us Z is no more than a setting of
0.820449
So Z is some where between 0 and 0.820449
After fiddling around with the Z setting for a while
I found a Z setting of 0.75m was fine for the load attachment points
Now in TRS 2004 we end up with the following

The mesh plane and attachments are now in the correct place for using
visible loads
Hope you found this tutorial useful
Written by John_SB