Turning objects into loads

Isegrinns

Yattatatatata german guy
Oh hi!

I have a huge crankshaft which I´d like to turn into a loadable object. The creator told me that it should fit onto every car which has an attachment point in its middle.

Where can I mess in the config to have it shown as a load?

Thanks for your help!
 
Oh hi!

I have a huge crankshaft which I´d like to turn into a loadable object. The creator told me that it should fit onto every car which has an attachment point in its middle.

Where can I mess in the config to have it shown as a load?

Thanks for your help!

Assuming the 'shaft' is already a piece of content within Trainz, you need only clone it into a product.

If not already content, take the mesh and make it so... (pardon the pun)

Use Content Creator to make your new product out of the crankshaft, then alter the rolling stock to accept the new product to haul.
 
For 2006. See the revised Config file for these Crank Shaft trackside objects to make them loadable products. All the changes occur within the first 7 lines. Just clone the trackside version and then modify the Config file as shown. The icon will show it as a MISC object but it will appear in your loadable products listing.


kind "product"
region "USA"
instance-type "instance"
product-category <kuid:-3:10042>
mass 6000
allows-mixing 1
product-texture "product.tga"
obsolete-table {
}
mesh-table {
default {
mesh "Part_1.im"
auto-create 1
}
}
thumbnails {
0 {
image "Crank Shaft 1.jpg"
width 240
height 180
}
}
description "This is a large crank shaft and flywheel assy setup for transport. This can be placed on
loading docks, piers, etc and used as a load on flatcars with an attachment point in the center of the car."
trainz-build 2.4
category-class "BB"
category-region-0 "US"
category-era-0 "1880s"
category-era-1 "1890s"
category-era-2 "1900s"
category-era-3 "1910s"
category-era-4 "1920s"
category-era-5 "1930s"
category-era-6 "1940s"
asset-filename "Crank_Shaft_1"
username "Crank_Shaft_1"
thumbnail
author "bendorsey"
organisation
contact-email "bendorsey@bellsouth.net"
contact-website
license
kuid-table {
}
kuid <kuid:214940:2245>
 
I have cloned a scenery object, an Engine, and successfully made a Engine product. The only problem is that the engine loads at a right angle to the flat car. How do I align the engine parallel, inline, to the flat car?

Thanks,
Johnny
 
I asked a similar question a few years ago about an Abrams tank (scenery) that I had converted to a Product and it was loading at a 90 degree angle to the flatcar's orientation. I think I was told I needed the original mesh file and something would have to be done in GMax to do this. I never tried it, but I think it may have something to do with the original object needing an attachment point (having one already or creating one) and then changing the config file ATT entry to rotate it 90 degrees. Maybe a content creator (I am not one) can clarify for you what would be needed.

Example: If you find your object is not aligned properly you can use a different attachment point by changing a.attach_000_ground to a.attach_090_ground (or a.attach_180_ground or a.attach_270_ground) to rotate the object back to the correct orientation. Change this in the config file.
 
It has to do with the orientation of the model in gmax, Blender or whatever it was made in. If the creator made it 'sideways' then I doubt you can do anything about it.

Another problem is that the object's default origin (the 0,0,0 point in gmax etc) may not be in the physical centre of the model (eg. the creator may have made the mesh to one side of the origin for some silly reason). In that case it won't sit in the middle of a flatcar, but closer to one end or one side. Again, short of getting hold of the original gmax files, there would be little if anything a user could do to fix it.
 
Back
Top