Lots of Intermediate Questions for a New Surveyor

Milaga

New member
So I'm almost finished with my first route and last night I was able to run my session for about two hours with periodic attendance to see how the AI was handling it. I've got passenger trains starting from each end every 20 minutes for now). A few questions came up as I watched bottlenecks appear and some appalling behavior from the AI.

Here is what I want:
* Passenger trains leaving the portals at each end every 30 minutes (or some number I can easily change later) and travel up or down the line, running the passenger stations. They end up at a portal next to the portal their counterpart came from and are removed. It takes about 90 minutes for AI to run passenger up the line, so this should keep about six of these trains on the board at all times. It would be nice to be able to set the priority for these trains too, if I can use that.
* A fixed number of freight trains (and a few important passenger trains) that start on the board (so I can set their loadout) and progress back and forth between set portals that will load empty cars and unload goods off-board.
* The remaining trains will be be AI controlled to maintain industries to keep the flow of goods coming as well as maintaining the power plant so the industries all keep running.
* The human will be given a few unassigned engineers and a ton of cars and engines scattered throughout map. I'll have a few set tasks, such as refilling all the fueling stations from the refinery, transporting goods from one section of the map to the other, and so on.

I've run into a few snags. If you help me with these questions, I will be very close to finishing this project off:
* How do I keep two AI from fighting over a switch? My mainline is double tracked, but most of my stations are on one side, so I have a lot of stations like this:

Code:
E     Station     W
----/---------\-i--      <---- Track 1
-i-/---------i-\---      Track 2 ---->
Track 1 is directionally controlled Eastbound and Track 2 is Westbound. I've relaxed the restrictions around the stations to allow a WB train to move up to Track 1 just to stop at the station. However, eventually I have two passenger trains approaching the station at the same time. They both try to take control of the switch Sw1E (\ and /) and the result is they are each stopped at the signals (i) Si2E and Si1W. The WB train needs all four switches, but I only think it is grabbing Sw1E and Sw2E since those are all it needs to get to it's destination and it will worry about wresting control of Sw1W from the EB train.Putting a 30 second wait on one of the trains will free up the switch with enough time that it will eventually make it to the station then on to the other track.

How do I keep this from happening? I'm sure it's commonplace. I'd like the AI on these passenger trains to function autonomously. They are supposed to be an obstacle to those running freight along the main line.

* How do the P50 F40 speedboards? I'm not seeing any difference in speed between trains with only passengers and those with freight. Also, looking at the assets is even more confusing as they use some number unrelated to mph or kmph. Not only that, variable speed boards only have one number, sometimes it's the passenger and sometimes the freight?

I really don't want my 40 car coal trains barrelling down the windy mountainside at 40mph, but those four Budd RDCs can do 50 for all I care. What's the best way to set this?

* How does priority track work? Will a P1 train always take a P1 track over a P2, P3 or unprioritized track? I'm assuming P1 is the highest, but is it? Are priority restrictions absolute? Will a P3 train want indefinately for a P3 track to clear or will it eventually buck the system and take a P2 track? It's a shame there are only three priorities to work with, I can see this coming in handy to help direct trains to the right tracks.

* Portals. I want to keep my AI mainline trains running continuously so I set my passenger cars up with a really complicated route. Unfortunately this means I can't really make changes to the portals they come from or I need to re-enter the orders. Re-entering orders for a 15 station passenger line is not fun. There is a generic portal control rule I tried, but it had a tenancy to delete and overwrite consists and engineer orders seemingly at whim.

Not only that, but when I ask empty cars to come back full, they never come back full of what I want! I've removed the capability of a hopper to carry nothing but coal and I still get a train full of iron ore. On the plus side, it was quite spectacular to watch three SD45s try to pull 5600 tons of iron ore up a 2% grade only to slide back down (brakes fully applied) into the passenger train waiting at a signal at over 20mph.

Do I need to just use cars with a limited consist in the config.txt?

* Uploading Content to the DLS. Is there a nice tutorial on doing this? For my route I had to reskin a few bits of rolling stock that didn't exist in the DLS. I even had to modify some that I downloaded but were missing important dependencies like bogies. What is the etiquette for giving credit to those who's cars you reskinned? What about uploading a fixed version of an existing engine? How about content that is not in the DLS that you received elsewhere but would like it to be in the DLS. What about engines you've created from kitbashing parts from all sorts of different creators (mesh from here, art from there, etc.)? My route should be all DLS available, but and I'd like to make my first session the same, but I'll need to upload a lot to make that so.

* Verifying dependencies. Once I am finished with my route and eventually session, how do I verify that all of the content is available on the DLS? I picked up some engines not in the DLS from websites but they've already gotten lost in all my stock. Unfortunately, the CMS shows each new content as downloaded from the DLS, even if I just manually imported a .cdp file.

* Multi-Industries. How do these work? They have queues that you can set for whatever goods you want. Do they demand or produce these goods? What is a waybill %? In fact, what is the waybill at all? It would be nice to use the waybill as the goal for the session. Complete the waybill before noon.

Thanks in advance for any responses. If you can answer a question simply by pointing me to a tutorial, that's fantastic. No need to be as long in word as I am. :)
 
Last edited:
Wow Milage, that's quite a list! I'll have a go at a few:

* How do I keep two AI from fighting over a switch?.....
  • You could look at the use of triggers to control signals.
  • Sometimes putting in invisible junctions which can be linked (paired) to a real junction can help. There is an object (think its called Junction Link or similar) which can be placed on the route and used to link two junctions.
  • You can also use messages from drivers (which are then picked up by other drivers) - "Send Message" and Wait for Message".
* How does priority track work?......
  • P1 trainz (locos) will go for P1 track, P2 trainz for P2 track and P3 for P3 track - it's not a priority system. It also depend on what drive commands you use as to how strictly the AI tries to follow the "priorities".
* .....or I need to re-enter the orders. Re-entering orders for a 15 station passenger line is not fun. There is a generic portal control rule I tried, but it had a tenancy to delete and overwrite consists and engineer orders seemingly at whim....
  • Try the "Portal Timetable Rule" this should get round the problem.
* Multi-Industries. How do these work?
  • Some Industry tutorials here:
http://members.westnet.com.au/nightcrawler/trainz/tutorials.htm

(I have not tried these)

***

and also some good AI hints here

http://trains.0catch.com/tutorial.html

(I'm away from my Trainz machine at the moment so I can't check out the names of rules etc, apologies if i've got some wrong.....)

Cheers

Chris
 
Thanks for the reply. I realized why they were locked on the same switch. I had a really long section of track before the station and one train had taken a junction a few miles out. Adding invisible track will help that, but if I could figure out how to link two junctions I can prevent that from happening altogether.

I experimented a bit with priority. At a switch a train will first take the track with their priority. If there are none and one track has a different priority marker it will take the unmarked track. Unfortunately it seems that all tracks have a priority (2) even if they don't have a marker. This means that you can't direct a priority 2 train using markers. In fact, the existence of a priority marker makes the AI forget some of it's other choices for choosing a track, such as track direction.

Still, this is a great way to keep trains out of sidings without be absolutely restrictive like a track direction. I have my passenger trains priority 2, freight priority 3 and nothing as priority 1. Any yard or siding I don't want my trains to pass through I put priority 1 tracks on each end. Then, if I have a train that needs to stop in a siding I use the Set Priority <kuid2:147570:80001:1> command to give it a 1 priority as it nears the siding.
 
That is quite a list and I'll try to answer some on the DLS content question and reskinning. It's fine to reskin content for your own use; however, you can't upload to the DLS unless the original creator has given you permission to do so. The same applies to content that you're acquired from a third party. In fact, I don't think that you can upload content to the DLS unless the kuid ID is yours. I don't believe that the automatic checks will allow you to do it.

I don't know of a way to verify whether the content that you've used in the route is all on the DLS or not. This question has been asked before and I don't believe that there's a way to do it without checking each individual piece of content individually. It does occur to me that if you're using TS2009, the color of the content name in the list in surveyor gives an indication of the content's origin, but I don't remember what the colors mean.
Someone will probably be along to enlighten us.

Happy Trainz'n
Mike
 
It does occur to me that if you're using TS2009, the color of the content name in the list in surveyor gives an indication of the content's origin, but I don't remember what the colors mean.
Someone will probably be along to enlighten us.Mike

Zec (Auran support) posted this recently:

****

"When -showkuids is in the trainzoptions.txt, the following also applies.

A red KUID denotes an item that is not on the DLS (or at least isn't in the TAD as being on the DLS).

A white kuid denotes a locally installed item that is on the DLS.

A yellow kuid denotes a built-in item.

Please note, these are from a quick test I did in 09 using my own assets as a basis. Namely, I tested some built-in items, some faulty items, and some items available on the DLS. This was confirmed by checking other items that I know also fit these categories.

Zec"

***

Edit: NOTE This is for the -showkuids option NOT for the normal surveyor list (where red text indicates an item that is faulty or has faulty dependancies fin TS2009 Native mode).

I guess one way of checking a route for non DLS items is to have a second "clean" installation of TS and import the route to there. Then checking in Content manager "View dependancies" should show the DLS/non DLS items. This is just an idea, I have not tried this.

Chris
 
Last edited:
....but if I could figure out how to link two junctions

As I said in my first reply there is an object on the DLS (or it might be a built in?) that allows you to link two junctions Try searching for an object called "Junction Link" or just try "Link".

Once downloaded it is found In surveyor under the scenery tab (the one with the house on it). Place one of these for each pair of junctions that you want to link. Click the properties (?) button and click on the little white and red box that is the link object, this brings up a window in which you can set up the link.

Chris
 
As I said in my first reply there is an object on the DLS (or it might be a built in?) that allows you to link two junctions Try searching for an object called "Junction Link" or just try "Link".

I can't find the object you mentioned searching for "link," "junction" and combinations of the two. Does someone have a KUID for it?

Last night I had a situation where there were three trains at the 4-track to two 2-track intersection that all wanted to use the same junction. Eek.

In driver, how do fix this? Is there a command to tell the driver to just take a nap or something and release all his junctions? The "Wait for" command causes the driver to pause, but he still holds everything up while he dozes.
 
I can't find the object you mentioned searching for "link," "junction" and combinations of the two. Does someone have a KUID for it?

Junction Link,<kuid:122381:10003> by "Mizi"

Re your 3 trains at one junction problem. You might sort this just by placing a signal on each track just in advance of the junction - the first driver to grab the junction permit should cause the other signals to go red. After that the other drivers might resolve their issues or you could use a trigger (triggered by the first train after it clears the junction) to get things moving.

Might also be worth investigating the "Send message" and "Wait for message" commands.

The above are surveyor solutions. In Driver you will have to issue direct "Stop train" and "Continue schedule" commands to the driver(s).

Chris
 
Last edited:
Back
Top