AI using articulated locos confuses train length

Got a problem with TTDPatch? Get help here.

Moderator: TTDPatch Moderators

Post Reply
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

AI using articulated locos confuses train length

Post by krtaylor »

The latest Patches allow the AI to use steam locos with tenders, and multi-piece articulated locos. This makes it lots better to play with the AI and the new sets.

However, there's still a bug. The AI doesn't appear to realize that the locomotives are extra long when buying traincars.

In one game, the AI bought a Cab-Forward to pull a passenger train (an odd choice in itself.) Normally, an AI passenger train would be one locomotive, one mail car, and two passenger cars for a total of four. In this case, the Cab-Forward took up three slots (two loco, one tender) leaving it pulling just one lonely passenger car! Odd.

Would it be possible for the AI to know how many cars it was intending to buy in the first place, put them on with the loco regardless of how long it was, and then determine the station lengths? I think it decides on the loco before it builds the track, right? Or maybe have it consider how many cars it wants, and the station length, before it picks a loco? Or last but not least, simply make it build all stations one square longer than it would otherwise have done, and put the right number of cars on regardless of loco length? Since we don't have any locos longer than 3, that would work fine.

The AI is very close to being able to usefully use the new locos, but I think this glitch can be surmounted. Somehow...
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

The AI always builds the station first, then connects the tracks, and only then does it build wagons and the loco. So by that time it's too late...

However, it should be possible to stop it from buying long locos on routes with short stations.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Patchman wrote:The AI always builds the station first, then connects the tracks, and only then does it build wagons and the loco. So by that time it's too late...
Makes sense. There must be a control somewhere for how long it builds the stations, and maybe you could increment that by 1?
Patchman wrote:However, it should be possible to stop it from buying long locos on routes with short stations.
That would help, but would be a handicap in the beginning of the US set where everything has two pieces.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Mek
TTDPatch Developer
TTDPatch Developer
Posts: 417
Joined: 13 Apr 2004 13:35
Location: Eindhoven, Netherlands
Contact:

Post by Mek »

krtaylor wrote:
Patchman wrote:The AI always builds the station first, then connects the tracks, and only then does it build wagons and the loco. So by that time it's too late...
Makes sense. There must be a control somewhere for how long it builds the stations, and maybe you could increment that by 1?
The AI doesn't really design it's layouts... it just uses a array of hard-coded station layouts... it wouldn't be very difficult to change this array (in fact i've done it once to make the ai build roro-stations (wich just causes much more crasy railways)), but im not sure if this would be very effective, since you can only make all stations longer.
Also with larger stations the chance that the AI can find a suitable place to build a station (especialy in mountainous areas) will be significantly lower (i guess that's why cs made the AI build such tiny stations in the first place).
If i someday have too much spare time, i might continue working on a better AI, but for now i think you'll have to live with this...
User avatar
krtaylor
Tycoon
Tycoon
Posts: 11784
Joined: 07 Feb 2003 01:58
Location: Texas, USA
Contact:

Post by krtaylor »

Then the don't-build-very-long-locos is the best solution. Mostly the AI doesn't make trains long enough to need them anyway.
Development Projects Site:
http://www.as-st.com/ttd
Japan, American Transition, Planeset, and Project Generic Stations available there
Post Reply

Return to “Problems with TTDPatch”

Who is online

Users browsing this forum: No registered users and 16 guests