[AI] RailwAI

Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.

Moderator: OpenTTD Developers

User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2210
Joined: 10 Jan 2003 12:21
Location: Katowice, Poland

Re: [AI] RailwAI

Post by uzurpator »

RailwAI has trouble replacing some trains and has some very weird equipment choices - like three locomotives in a row for small trains even on fairly flat routes.
Attachments
replacement.PNG
(135.57 KiB) Not downloaded yet
eqip.PNG
eqip.PNG (110.97 KiB) Viewed 7036 times
User avatar
RailwAI
Engineer
Engineer
Posts: 75
Joined: 22 Jul 2018 20:30
Location: Headquarters

Re: [AI] RailwAI

Post by RailwAI »

TTDManager689 wrote: 30 Oct 2023 20:51 Hello, this is my first time to report the issue.

I've just noticed a issue on a AI on trying to build a tram network.
It seem once building a tram route it hasn't succeeded every time it did that even when installing Newgrfs with trams included.

The example as seen on the attachments below the script tells me the following issue:

No path found :-( at 183469
result: false
Something went wrong while executing a plan. Undoing...

ERR_NONE
Idea could not be executed

While I'm trying to find a solution I wonder if it is a bug otherwise is there any solution I should try? Thanks for reading!
Thank you for reporting this bug. It seems RailwAI has some troubles using tramways in cities and I'll start looking into this.
User avatar
RailwAI
Engineer
Engineer
Posts: 75
Joined: 22 Jul 2018 20:30
Location: Headquarters

Re: [AI] RailwAI

Post by RailwAI »

uzurpator wrote: 08 Nov 2023 18:40 RailwAI has trouble replacing some trains and has some very weird equipment choices - like three locomotives in a row for small trains even on fairly flat routes.
Do you have a savegame for me available? From a screenshot I can't determine why the choices were made (game settings, NewGRFs, ...). For now, RailwAI doesn't take into account whether a line has a lot of slopes or not. It could be intended behaviour here: sometimes trains are assigned an extra locomotive.
User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2210
Joined: 10 Jan 2003 12:21
Location: Katowice, Poland

Re: [AI] RailwAI

Post by uzurpator »

I did some testing and this behavior seems to be connected to the weight multiplier for freight trains. On stock game setting it to 5 will make RailwAI happily run three locomotives and six wagons on even the flattest routes. Whatever power / weight ratio it tries to achieve, it tends to produce weird results for weaker locomotives.
User avatar
Clanority
Engineer
Engineer
Posts: 25
Joined: 08 Apr 2024 14:12

Re: [AI] RailwAI

Post by Clanority »

I just saw the MasterHellish (YouTuber) 100 year AI battle royale video and this AI come out on top on the profit graph so I thought I could see the notes.
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7388
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: [AI] RailwAI

Post by Redirect Left »

Clanority wrote: 03 Feb 2025 19:04 this AI come out on top on the profit graph
Crikey, how did that happen? I'm surprised it isn't one of the others like AAAHogEx heh

Maybe I'm missing on some precious views & clicks by not uploading the tests I do for the unofficial AI testing thread & good AI list hah. Either uploading results, or just livestreaming the entire thing from the test machine that does them.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
User avatar
Clanority
Engineer
Engineer
Posts: 25
Joined: 08 Apr 2024 14:12

Re: [AI] RailwAI

Post by Clanority »

Redirect Left wrote: 03 Feb 2025 22:42
Clanority wrote: 03 Feb 2025 19:04 this AI come out on top on the profit graph
Crikey, how did that happen? I'm surprised it isn't one of the others like AAAHogEx heh

Maybe I'm missing on some precious views & clicks by not uploading the tests I do for the unofficial AI testing thread & good AI list hah. Either uploading results, or just livestreaming the entire thing from the test machine that does them.
Yeah it was quite a clear win there was a massive gap between the rest of them. I ran a simulation of my own with 14 of the RAILW AI and its just fascinating to watch the network expand.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 4 guests