Controlling AI/traffic behavior

The MSTS Activity Editor allows you to make your own activities, or missions, for the player to complete. This is also how you can get lots of other trains running while you drive yours!

Moderator: Moderators

Locked
scefhwil
Well Established Forum Member
Posts: 907
Joined: Tue Dec 04, 2001 12:00 am
Location: Bristol, England

Controlling AI/traffic behavior

Post by scefhwil »

I was wondering what settings/values can be changed in the various files to control the behavior of AI/traffic services?

I have found that in the consist files you can change the MaxVelocity( x y) statement with good effect.

The first figure, x, is the max speed (in m/s)

The second figure, y, is the accelaration rate (probably in m/s/s, but I've not checked this out). Values of 0.1 and less gives a very slow accelaration, 0.2 to 0.4 seems more normal, 10 and the consist rapidly goes fast!

The Activity Editor does seem to set values for these figures based on the rolling stock in the consist, but for me these values always seem too high. I have also found that changing a consists values after 'compute and save'ing an activity will result in some funny effects (overshooting of platforms etc) so the activity needs to be re 'compute and save'd.

Any other tips?
dcduncan
Established Forum Member
Posts: 398
Joined: Sun Oct 06, 2002 2:34 pm
Location: South Wales

Post by dcduncan »

Me too, I would like to know if there are any hints. I rarely get the timetable to recompute and have to do them all by hand.

David
User avatar
FuNky2k
London Underground: Metropolitan Line
Posts: 171
Joined: Tue Dec 04, 2001 12:00 am
Location: London (UK)

Post by FuNky2k »

Very good tip, ill have a mess about with 'em!! ill redo some of my short acts for mideast again, cheerz for that.
User avatar
JohnEyres
Creating the WCML at Warrington
Posts: 511
Joined: Sun Dec 30, 2001 12:00 am
Location: Warrington
Contact:

Post by JohnEyres »

I often find that once you set the default running speed for a particular service, you will find that you can't change it again. To change it you have to open up the service in wordpad and change the values. Same with start speed too.
Warrington Railways Route Author

Route Progress: http://johneyres.tripod.com/railway/msts/newms.htm
scefhwil
Well Established Forum Member
Posts: 907
Joined: Tue Dec 04, 2001 12:00 am
Location: Bristol, England

Post by scefhwil »

JohnEyres wrote:I often find that once you set the default running speed for a particular service, you will find that you can't change it again. To change it you have to open up the service in wordpad and change the values. Same with start speed too.
"...you set the default running speed...". I know you can set a start and end speed but where do you do this John?
User avatar
JohnEyres
Creating the WCML at Warrington
Posts: 511
Joined: Sun Dec 30, 2001 12:00 am
Location: Warrington
Contact:

Post by JohnEyres »

There is a box next to the start speed one which is called something like default performance. I believe if you set it to 100%, it will run at speeds up to the route's maximium line speed. Set it at 50% on a 100mph route and your AI train should pass you at roughly 50mph.
Warrington Railways Route Author

Route Progress: http://johneyres.tripod.com/railway/msts/newms.htm
scefhwil
Well Established Forum Member
Posts: 907
Joined: Tue Dec 04, 2001 12:00 am
Location: Bristol, England

Post by scefhwil »

Thanks John, I never realised that!
User avatar
Neptune50006
Very Active Forum Member
Posts: 2149
Joined: Wed Dec 12, 2001 12:00 am
Location: That place with all the roundabouts!

Post by Neptune50006 »

I thought that the default performance box was to set how strict the timetable was???
Gary.

"Perchance it is not dead but sleepeth."

http://www.lynton-rail.co.uk

Check out the (slow) progress of the L&B for RW here
gregp
Getting the hang of things now
Posts: 73
Joined: Sat Dec 08, 2001 12:00 am

Post by gregp »

I did some investigation of the second parameter of the consist MaxVelocity statement. It does indeed appear to be a acceleration value (in metres/sec). The formula used seems to be:

(MaxContinuousForce - friction)/mass

If an engine does not have a MaxContinuousForce value then the MaxForce is used instead.

"friction" seems to be some sort of average value, using the friction at half the maximum speed gives about the correct value.
Locked

Return to “[MSTS1] Activity Creation”