AI Pathing

Discussion about RailWorks scenario creation.

AI Pathing

Unread postby nsl714 » Sat Jan 24, 2015 8:05 pm

I'm experimenting with scenario creation a bit, attempting to create a simple scenario with AI traffic. One of the AI trains refuses to take the path of least resistance. As seen below, the train should come from the west, and go down the west leg of the wye to the southbound main. Instead what it is wanting to do is go across the top of the wye, go through a crossover a few miles to the north, and then return south on the southbound main.

Image

I've checked directionality, class setting, and electrification, and all appear well. I've also tried placing siding markers and destination markers as waypoints and stop points along the correct leg of the wye to try and persuade the train to go the right way. Each time though it throws an error, claiming that it must reverse (and cannot) in order to reach the next destination. The only thing I notice is that the "normal" way though the wye required it to navigate two automatic switches (in place on the east and south tips of the wye). It instead has opted to go through a quartet of manual switches instead. Are there special provisions for automatic switches? What must I do to make the train traverse the correct route?

Thanks,
Zach
User avatar
nsl714
 
Posts: 168
Joined: Sun Oct 21, 2012 7:43 pm

Re: AI Pathing

Unread postby artimrj » Sat Jan 24, 2015 8:14 pm

To control AI use the Waypoint flag to control where they go. A Stop at/Go to also work to control them.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4722
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: AI Pathing

Unread postby nsl714 » Sat Jan 24, 2015 8:16 pm

Does it matter whether the "destination" in the waypoint is a Destination, Siding, or Platform?
User avatar
nsl714
 
Posts: 168
Joined: Sun Oct 21, 2012 7:43 pm

Re: AI Pathing

Unread postby artimrj » Sat Jan 24, 2015 8:20 pm

No it doesn't. And you can also place your own marker in a scenario and call it what will help you remember what your doing with the path. Markers you place in the scenario are only in that scenario, not the route.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4722
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: AI Pathing

Unread postby nsl714 » Sat Jan 24, 2015 8:26 pm

That has not worked. I placed a Destination on the appropriate line, and the game throws this error at me:

Image
User avatar
nsl714
 
Posts: 168
Joined: Sun Oct 21, 2012 7:43 pm

Re: AI Pathing

Unread postby artimrj » Sun Jan 25, 2015 1:36 am

Did you try to save it and then exit TS and then try to run it? If you followed through my video tutorials you will see I mention there is this weird bug in TS that you get that error come up when you know everything is right. Save it, exit TS, start again and try the scenario. If it still errors then something is definitely wrong. From your screenshot I can not tell where you are trying to place the destination marker.

It would also be nice if you attached the screenshots here instead of photobucket or whatever it was that spammed me when I looked at your shot. It also keeps the screenshot here when photobucket disables it after time.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4722
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: AI Pathing

Unread postby nsl714 » Sun Jan 25, 2015 2:26 pm

Ok, I feel dumb. I went through a whole regiment of testing various facets of the junction in question. I checked electrification and directionality twice over. I placed a diesel locomotive outside the junction and got the same results as above. I've restarted the game in between each change. Still nothing. Then I realized I had made a timetabled scenario. I quickly set up a new Standard scenario, and the pathing worked exactly as expected. Attached is the result. Sorry for any confusion/headache I may have caused. !!**sorry**!!

Zach
You do not have the required permissions to view the files attached to this post.
User avatar
nsl714
 
Posts: 168
Joined: Sun Oct 21, 2012 7:43 pm

Re: AI Pathing

Unread postby artimrj » Sun Jan 25, 2015 7:31 pm

It's a learning experience. Now you have another thing to check if something goes wrong later.
Bob Artim - Generation X²
I don't have a PHD, I have a DD214... Freedom carries sacrifice
I'm crawling in the dark looking for the answer
User avatar
artimrj
 
Posts: 4722
Joined: Sun Jan 31, 2010 3:07 pm
Location: Beaver, Pennsylvania

Re: AI Pathing

Unread postby OldProf » Sun Jan 25, 2015 9:37 pm

Don't feel bad for a second . . . welcome to scenario writing. Those of us who are addicted to this particular form of self torture have all made foolish mistakes. Live, learn, write some more scenarios! !*brav*!
Tom Pallen (Old Prof)

{Win 10 Home 64-bit; Intel Core i7 6700 @ 3.40GHz; 16.0GB Single-Channel @ 1063 MHz (15-15-15-364); 2047MB NVIDIA GeForce GTX 960}
User avatar
OldProf
 
Posts: 2743
Joined: Wed Sep 09, 2009 10:09 am


Return to Scenario Creation

Who is online

Users browsing this forum: No registered users and 1 guest