How to make those AIs to build railways with intermediate stations?

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
kcl504sandboxgamer
Engineer
Engineer
Posts: 24
Joined: 11 Aug 2021 16:29

How to make those AIs to build railways with intermediate stations?

Post by kcl504sandboxgamer »

I found that most of my AIs build point-to-point railway lines with single track, which is not always realistic, especially when connecting large towns. Are there any AIs that don't build like this?
Taschi
Route Supervisor
Route Supervisor
Posts: 425
Joined: 11 Oct 2014 22:58

Re: How to make those AIs to build railways with intermediate stations?

Post by Taschi »

kcl504sandboxgamer wrote: 22 Jan 2022 10:31 I found that most of my AIs build point-to-point railway lines with single track, which is not always realistic, especially when connecting large towns. Are there any AIs that don't build like this?
AI scripts are entirely user-provided, and there are no quality standards for them, so their code quality is pretty much a gamble.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7249
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: How to make those AIs to build railways with intermediate stations?

Post by Redirect Left »

This is relatively difficult to code, of all the ones I have tested "ChooChoo" AI can build proper networks, although it is troubled, it often makes junctions it later goes on to not use, or it runs out of money halfway through and stalls.
ChooChoo will attempt to make a proper network, if it can find the resources and energy to do so, and from the ones I tested about 18 month ago, was the best at doing so, as long as you don't mind it occasionally bankrupting itself, or unused junctions on track, as noted below. My assumption is it does forward thinking, then later on thinks "nah", and doesn't go back and undo them, either due to financial changes or some sort of internal priority change for what the junction was for.
Image

I have tried numerous times to improve the ChooChoo AI, but never got far due to it being, frankly, beyond my knowledge and understanding the language OTTD uses for bots.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 9 guests