I Lost My Traffic In Every Region?

dej

DL Engineer
As Some of you know from reading/helping me with my "I Can't Patch TRS2009" i just had a crash of my game and had to uninstall it and then reinstall it. Well I have done this and successfully got all my content back and my game is running fine. My only issue is i have no traffic? I had traffic on my routes before, now i have nothing, i tried making a small baseboard with just a road in the "US" region and still i get no cars. Any Help Would Be Geatly Appreciated!:)
 
Ok So I got the default traffic back! But it seems when i go to put my own traffic in to the config, it doesn't recognize them and they never show up. I had no problems do this car swapping before I patched from SP3 To SP4. Is there something i'm missing?
 
Ok So I got the default traffic back! But it seems when i go to put my own traffic in to the config, it doesn't recognize them and they never show up. I had no problems do this car swapping before I patched from SP3 To SP4. Is there something i'm missing?

If you're putting scenery items in then it won't work. For TRS2009 SP4 and up, you need to clone the car and make it of type "trackside". It is also favourable to put "Traffic" in the name. If you want to upload a region with the Traffic cars, then you will have to upload the Traffic versions of the cars too, with the permission of the author of the scenery version.

I believe zatovisualworks has a tutorial on how to make a new region. I don't have a link ATM though.
 
Ok after i clone the Car, how do i change it to "Trackside"???
Open it for edit in Explorer, and change category "vehicle" or category "scenery" to category "trackside".

Also, to change the name, edit the username section. Then save and commit.
 
Ok did i do something wrong because i got all these errors with my cloned vehicle.

Error: The Tag 'kind' is not permitted within a container of type 'Trackside'.
Error: The Tag 'light' is not permitted within a container of type 'Trackside'.
Error: The Tag 'obsolete-table' is not permitted within a container of type 'Trackside'.
Error: The Tag 'username' is not permitted within a container of type 'Trackside'.
Error: The Tag 'author' is not permitted within a container of type 'Trackside'.
Error: The Tag 'organisation' is not permitted within a container of type 'Trackside'.
Error: The Tag 'contact-email' is not permitted within a container of type 'Trackside'.
Error: The Tag 'contact-website' is not permitted within a container of type 'Trackside'.
Error: The Tag 'kuid-table' is not permitted within a container of type 'Trackside'.
Error: The Tag 'kuid' is not permitted within a container of type 'Trackside'.
Error: The Tag 'category-region' is not permitted within a container of type 'Trackside'.
Error: The Tag 'category-era' is not permitted within a container of type 'Trackside'.
Error: The Tag 'category-class' is not permitted within a container of type 'Trackside'.
Error: The Tag 'trainz-build' is not permitted within a container of type 'Trackside'.
 
Try removing the capital 'T' at the start of trackside. And, make sure you use double quotes, like this:

category "trackside"

And if that doesn't fix it then I don't know. :p
 
Download a vehicle that has a trainz-build of 2.9 or greater and which is billed as being made for traffic use. Look at its config file and learn what tags are used and what values those tags should have. I think it's a little different to what was described above, but not too complex.
 
Last edited:
This Is What The Config Looks Like For The Vehcile I Wanna Use.
What Do I Need To Do To Make It Work As Traffic?

kind "scenery"
region "Japan"
type "Vehicles"
light 1
kuid <kuid:117608:80501>
obsolete-table
{
}
category-region-0 "JP"
category-class "VL"
trainz-build 2
asset-filename "Concrete_Mixer_01"
category-era-0 "2000s"
category-era-1 "1990s"
category-era-2 "1980s"
category-era-3 "1970s"
username "Concrete_Mixer_01"
thumbnail
author "Ken Kino****a"
organisation
contact-email "ken-k@c-able.ne.jp"
contact-website
license
kuid-table
{
}
 
Sorry, we are posting at the same time. See my suggestion above. As I recall, one vital tag is trackside and it requires a near-zero value, like this;

trackside 0.01

What I'm not sure of (because I'm not at my home computer to check) is what the tag 'kind' should be. The config may also require a mesh-table. As I said, get a purpose-built traffic vehicle for 2.9 or later and learn from its config.
 
Download a vehicle that has a trainz-build of 2.9 or greater and which is billed as being made for traffic use. Look at its config file and learn what tags are used and what values those tags should have. I think it's a little different to what was described above, but not too complex.

I Have Some Of Your Cars With AJS, How would i do it with these cars?
 
Get rid of the AJS script and meshes and re-write the config as per one of the working traffic vehicles with build 2.9 or higher. In principle you should be able to turn any scenery asset - a tree, person, refrigerator - into a 'vehicle' just using the config. Just for fun, I once did that with one of my derelict prams and it looked really funny seeing a runaway empty pram whizzing around my layout.


.
 
Last edited:
My Trainz computer is currently out of action, but once it is fixed I will be making a Traffic version of Herbie, so I'll be able to tell you the steps if I get mine working correctly. So stay tuned. :)
 
Here is a link to zatovisualworks tutorial:

http://www.zatovisualworks.com/trainz/data/tuts/carz_ts2010_tut/index.html

The beauty of his method is that you do not need to ask permission of the creator of the vehicle you want to make a traffic version of because you are not modifying his asset only referencing it in the mesh table and the kuid table.

The traffic asset you create is completely separate from the original asset and acts in a similar way to how locomotive assets reference bogies, horns, cabs, etc that might belong to other creators.

Here is an example of the config.txt file for one of his assets:

username "Ford Fiesta 2005 Orange - Traffic - TS2010"
trainz-build 2.9
category-class "BH"
category-region "EU"
category-era "1980s;1990s;2000s;2010s"
kind "scenery"
author "zatovisualworks"
contact-email "ibertrainz@ibertrainz.eu"
contact-website "www.ibertrainz.eu"
organisation "IBerTrainZ"
light 1
rotate-yz-range -90,90
height-range -50,50
trackside 0.01
nightmode "home"
license "Contact us"
description "This is an asset which references the original one Ford Fiesta 2005 Orange by Tom Young"
privileges
{
permit-listing 0
}
mesh-table
{
default
{
mesh-asset <kuid:92263:8014>
mesh "Ford_Fiesta_2005.im"
auto-create 1
}
}
thumbnails
{
0
{
image "$screenshot$.jpg"
width 240
height 180
}
}
kuid <kuid:86311:100035>
kuid-table
{
0 <kuid:92263:8014>
}
 
Thanks for the link. :)

I was on a school laptop at the time, and while the Forums were not blocked, Alberte's site was.

Now, I just need to get my Trainz computer back...
 
...........The traffic asset you create is completely separate from the original asset and acts in a similar way to how locomotive assets reference bogies, horns, cabs, etc that might belong to other creators.

Here is an example of the config.txt file for one of his assets:

username "Ford Fiesta 2005 Orange - Traffic - TS2010"
trainz-build 2.9
category-class "BH"
category-region "EU"
category-era "1980s;1990s;2000s;2010s"
kind "scenery"
author "zatovisualworks"
.
.
.
.
etc

}

That's a really good suggestion, I'd forgotten about this method. If it works, it saves me and many other creators from the drudgery of continuously re-issuing new versions of old vehicles.

One thing that might be a problem is the orientation of the original vehicle. If it was made such that it faces along the X-axis (so that the scenery model can be tilted up or down) it might show up sideways on the road when converted to traffic by this technique. I'm not totally sure of this. I'm just raising the possibility that not every scenery vehicle might be suitable.

Just as a pedantic side-comment, I'm curious as to why Zato used category-class BH (which is a residential building) instead of VL (land vehicle), and category-region EU which I don't think is a recognized value (or is it?). I presume those tags have no effect on function, but may affect what Surveyor or Content Mangler thinks the asset is...

~ Deane
 
I've figured out how to get the cars to work, I've Edit some other peoples cars for my region. What would I have to do if I wanted to put this to the DLS?? I don't wanna infringe on anyone, or thier copyrights.:(
 
As long as your asset only refers to other kuids, in the same way as Zato's asset does, then I don't think there's any infringement of copyright, although some people (like myself) may not want their vehicles being used by assets that are uploaded to non-DLS websites. When Arraial was making a similar asset, he sought permission from the creators of each vehicle, just to make sure it would not cause any grief. This is probably a wise thing to do.
 
Back
Top