No AI traffic appearing on my own built Quick Drives

General discussion about Train Simulator, your thoughts, questions, news and views!

Moderator: Moderators

Post Reply
signalnorths
Been on the forums for a while
Posts: 201
Joined: Sun Nov 15, 2020 10:33 am

No AI traffic appearing on my own built Quick Drives

Post by signalnorths »

Ok so I'm trying to make my own quick drives - I've put together successfully some new consists and I can drive these on quick drive. What I've not as yet been able to do is to get my new new quick drive scenarios to generate any AI traffic (either with old ready supplied consists or new ones.) I have been able to place the markers for AI generation successfully and have filled in the boxes for them e.g destination, length (more than the default length!) etc etc but nothing ever appears when I run it except of course the loco I am to drive. no AI traffic at all .


Can anyone help please?

Thanks
User avatar
749006
Very Active Forum Member
Posts: 9862
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Re: No AI traffic appearing on my own built Quick Drives

Post by 749006 »

From what I understand

A Quick Drive Scenario looks in PreLoad folders and if the information in the folder matches what the info of your your route the train could appear
Looking at this folder \railworks\Assets\Kuju\RailSimulator\PreLoad\OxfoPadd there is this file Class 166 3 Car NSE.bin
In the file near the bottom is this section

Code: Select all

		<ValidBuildAndDriveRoutes>
				<cConsistValidRoute d:id="82341408">
					<RouteGUID d:type="cDeltaString">00000001-0000-0000-0000-000000000000</RouteGUID>
				</cConsistValidRoute>
			</ValidBuildAndDriveRoutes>
Which tells me it will only appear(?) on the route with the GUID 00000001-0000-0000-0000-000000000000 - the Oxford to Paddington route.

But I'm not sure and it just an observation

Peter
http://peter749.piwigo.com/
My Railway Pictures
User avatar
FoggyMorning
Very Active Forum Member
Posts: 5382
Joined: Sun Apr 25, 2010 1:16 am
Location: In the not too distant future, next Sunday A.D.

Re: No AI traffic appearing on my own built Quick Drives

Post by FoggyMorning »

749006 wrote: Tue May 11, 2021 11:18 am From what I understand

A Quick Drive Scenario looks in PreLoad folders and if the information in the folder matches what the info of your your route the train could appear
Looking at this folder \railworks\Assets\Kuju\RailSimulator\PreLoad\OxfoPadd there is this file Class 166 3 Car NSE.bin
In the file near the bottom is this section

Code: Select all

		<ValidBuildAndDriveRoutes>
				<cConsistValidRoute d:id="82341408">
					<RouteGUID d:type="cDeltaString">00000001-0000-0000-0000-000000000000</RouteGUID>
				</cConsistValidRoute>
			</ValidBuildAndDriveRoutes>
Which tells me it will only appear(?) on the route with the GUID 00000001-0000-0000-0000-000000000000 - the Oxford to Paddington route.

But I'm not sure and it just an observation

Peter
That's correct. Every consist that you wish to appear as AI in your own QD scenarios needs to have the route GUID in this section. AFAIK there is no upper limit to the number of routes a consist can be valid on, so you can simply edit this section of an existing consist blueprint to add more routes, or create your own copy of the blueprint specific to the QD you're editing/creating.

If adding multiple entries, I tend to increase this line:

Code: Select all

<cConsistValidRoute d:id="82341408">
by 4 each time (e.g., the next entry would be 82341412, and so on), but I don't know if that's strictly necessary or if the actual number entered has any relevance.

You also need to ensure that the consist type in the blueprint above matches the consist type(s) you have set to spawn (e.g. "Passenger Commuter" in both cases) or they won't spawn.

My experience is it's one of the trickier things to get your head around, but it's very rewarding when you do get it working properly :)
User avatar
alanch
Very Active Forum Member
Posts: 4907
Joined: Mon Feb 27, 2006 6:07 pm
Location: Leeds, England
Contact:

Re: No AI traffic appearing on my own built Quick Drives

Post by alanch »

TS Tools has a section for editing existing QD Consists, which includes adding permitted routes to the consist if you are wary of hand editing the files.

As always, read the manual.
Alan

My railway photos are now on Google + - links to the albums are in this thread http://forums.uktrainsim.com/viewtopic. ... 9&t=149558

Lots of steam and early diesels from 1959 to 1963.
signalnorths
Been on the forums for a while
Posts: 201
Joined: Sun Nov 15, 2020 10:33 am

Re: No AI traffic appearing on my own built Quick Drives

Post by signalnorths »

Hi Thanks for all your reply's, much appreciated

TS Tools has a section for editing existing QD Consists, which includes adding permitted routes to the consist if you are wary of hand editing the files.

As always, read the manual.


Indeed and I added permitted routes to my consists to this end using TS Tools rather than hand editing as you have shown. Should really work then shouldn't it?

Bit confused now
signalnorths
Been on the forums for a while
Posts: 201
Joined: Sun Nov 15, 2020 10:33 am

Re: No AI traffic appearing on my own built Quick Drives

Post by signalnorths »

ODE: SELECT ALL

<ValidBuildAndDriveRoutes>
<cConsistValidRoute d:id="82341408">
<RouteGUID d:type="cDeltaString">00000001-0000-0000-0000-000000000000</RouteGUID>
</cConsistValidRoute>
</ValidBuildAndDriveRoutes>
Which tells me it will only appear(?) on the route with the GUID 00000001-0000-0000-0000-000000000000 - the Oxford to Paddington route.


So from your example above, what would that then look like if you added another route to it? Sorry for all these questions
User avatar
FoggyMorning
Very Active Forum Member
Posts: 5382
Joined: Sun Apr 25, 2010 1:16 am
Location: In the not too distant future, next Sunday A.D.

Re: No AI traffic appearing on my own built Quick Drives

Post by FoggyMorning »

Code: Select all

		<ValidBuildAndDriveRoutes>
				<cConsistValidRoute d:id="82341408">
					<RouteGUID d:type="cDeltaString">00000001-0000-0000-0000-000000000000</RouteGUID>
				</cConsistValidRoute>
				<cConsistValidRoute d:id="82341412">
					<RouteGUID d:type="cDeltaString">00000002-0000-0000-0000-000000000000</RouteGUID>
				</cConsistValidRoute>			
			</ValidBuildAndDriveRoutes>
Where the second route is Bath-Templecombe/Somerset & Dorset
signalnorths
Been on the forums for a while
Posts: 201
Joined: Sun Nov 15, 2020 10:33 am

Re: No AI traffic appearing on my own built Quick Drives

Post by signalnorths »

Thanks
KimOlesen
Been on the forums for a while
Posts: 104
Joined: Fri Dec 07, 2018 11:21 am

Re: No AI traffic appearing on my own built Quick Drives

Post by KimOlesen »

First; use TS-Tools. Much more easy than modifying the consist code by hand.

Second; when you set the spawnpoints observe the following in the flyout:

1; If the lenght is set too short trains can’t spawn. Example, if all your preloads are more than 150m long, and max length in the flyout is 150m, nothing will happen.

2; are you sure you have given the ai train a valid route?

3; are you sure that, if it is a route with electrification, the electrification in the preload matches?
gptech
Very Active Forum Member
Posts: 19585
Joined: Fri Oct 10, 2008 5:48 pm
Location: Wakefield, West Yorkshire

Re: No AI traffic appearing on my own built Quick Drives

Post by gptech »

KimOlesen wrote: Wed May 12, 2021 9:26 pm First; use TS-Tools. Much more easy than modifying the consist code by hand.
Not that easy...
signalnorths wrote: Tue May 11, 2021 5:40 pm I added permitted routes to my consists to this end using TS Tools rather than hand editing as you have shown. Should really work then shouldn't it?
If the result of the TS Tools edit is still:

Code: Select all

<ValidBuildAndDriveRoutes>
<cConsistValidRoute d:id="82341408">
<RouteGUID d:type="cDeltaString">00000001-0000-0000-0000-000000000000</RouteGUID>
</cConsistValidRoute>
</ValidBuildAndDriveRoutes>
then obviously the TS Tools routine hasn''t worked--whether that's a glitch in the program or simply user error is the question that needs answering..
johnrossetti
Very Active Forum Member
Posts: 2542
Joined: Wed Mar 14, 2007 9:47 pm
Location: Same place as last time

Re: No AI traffic appearing on my own built Quick Drives

Post by johnrossetti »

No glitches, Ive only this week used TS Tools to add Traffic to the Corsica QD route works well. signalling on a single track is a bit difficult but as I proved on LMR it can be done and made to work quiet well

It's too long for here and this time of night, ive just got back from a long 3 days away.

But creating QD routes with AI traffic is one that requires using the TS20XX editor AND TS_Tools 3 times, it's long and painful but after it all works its very rewarding to see your not alone.

I'm sure their must be a video somewhere, trouble is most are made by people who know how to do it, not dumb begginers like me who by making mistakes learnt the hard way.

Then I'm no expert, I probebly do things all wrong, or not at all, but I'm happy in my little choo choo world.

Cheers John
User avatar
749006
Very Active Forum Member
Posts: 9862
Joined: Fri Mar 30, 2012 11:17 am
Location: England
Contact:

Re: No AI traffic appearing on my own built Quick Drives

Post by 749006 »

I have not watched this one fully but it seems to be well explained but no AI
www.youtube.com/watch?v=3013AJp7zB0

Matt did this one
www.youtube.com/watch?v=uTSwEuWPZH8

This was an older one which seems simple
www.youtube.com/watch?v=SrjMEpkHCzs

There are others on youtube

Peter
http://peter749.piwigo.com/
My Railway Pictures
Post Reply

Return to “[TS] General Discussion”