Need some AI Help .. ;)

crimsonsky

New member
Hey.. I haven't seen any tutorials for Doing AI.. So i have a scenario thats not working for me.. :(


I have 4 engines pulling 20 Coal hoppers into a Coal mine, They load on Track one, Pull around to my track marker then stop. The first 2 engines are supposed to disconnect from the other 2 engines, Move over to track 2 and hook up to another 20 Empty cars, They then proceed to get loaded Whilst the Other 2 engines wait for 5 mins and then take off to the Power station with the First load.

I can get the engines to stop, But as soon as they disconnect the first 2 engines loose all of their orders & Switch to Manual Control.. Anyone know what i am doing wrong?

I was able to get the engines to Continue on with their orders If they Don't stop.. They would Disconnect whilst Rolling forwards.. But i'd prefer if they'd Stop..

What you think?:confused:

Richard
 
AFAIK you can't split the locos in a consist under AI control and then give different orders to the two resulting trains...
 
That is correct - the only way I know that you may be able to do so is if you name each part of the train seperately, and even then, it may not work correctly. It's a limitation in Trainz (although I haven't yet been able to test decoupling at trackmarks then using Schedule at Trackmark.

Shane
 
Just had a little play with this on my test route and got it to work (if I understand what you want correctly). This is what I did:

Set up the first consist (the coal hoppers in your case) with 2 locos and added a driver to the front loco only.

Gave this driver the following commands:

Drive to trackmark ("1")
Decouple Number # (in this case 0)
Drive to trackmark ("2" to move clear of the train)
Send message (Andrew completed task 0)

Then whatever other commands are needed...

A second driver is needed and I have discovered that he needs to be on a loco somewhere (but not one of the locos on the first consist - any old "spare" loco). Give this second driver the following commands:

Wait for Message (Andrew completed task 0)
Move to train at trackmark "1"

Then whatever other commands you need...

Only tried this with two locos but it should work with more.
 
Just had a little play with this on my test route and got it to work (if I understand what you want correctly). This is what I did:

Set up the first consist (the coal hoppers in your case) with 2 locos and added a driver to the front loco only.

Gave this driver the following commands:

Drive to trackmark ("1")
Decouple Number # (in this case 0)
Drive to trackmark ("2" to move clear of the train)
Send message (Andrew completed task 0)

Then whatever other commands are needed...

A second driver is needed and I have discovered that he needs to be on a loco somewhere (but not one of the locos on the first consist - any old "spare" loco). Give this second driver the following commands:

Wait for Message (Andrew completed task 0)
Move to train at trackmark "1"

Then whatever other commands you need...

Only tried this with two locos but it should work with more.


Yes this will work. I personally use triggers and a wait for trigger command. You can use any asset that requires a drive to hold the second one till the trigger is activated. It an be any where on the route. Carl
 
I'm pretty new to this whole AI stuff in the game.. I'm just getting by with the basics. Going to try and Work that in later. Thanks for the responses..


On another note, Is there any Tutorials around that explain what the Driver Command options do?
 
Back
Top