Which AIs are now actively maintained?

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

SimYouLater
Director
Director
Posts: 599
Joined: 03 Apr 2016 20:19

Re: Which AIs are now actively maintained?

Post by SimYouLater » 24 Feb 2017 00:53

So am I correct in assuming the current roster of AIs is as follows?

Maintained Miscellaneous
CivilAI
TownCars

Bug Free, Unmaintained Miscellaneous
Idle
IdleMore

Maintained Competition
AIAI - Trucks, Busses, Planes, Trains
AroAI - Trucks, Busses
BorkAI - Planes, Helicopters, Trams, Busses, Trucks
ChooChoo - Trains
CluelessPlus - Busses, Trucks, Planes, Helicopters
DictatorAI - Busses, Trucks, Planes, Helicopters
NoNoCAB - Trains, Trucks, Busses, Planes, Ships
OtviAI - Busses, Trains, Trucks, Trams, Ships
RoadRunner - Busses, Trucks, Trams
SimpleAI - Busses, Trains, Trucks, Planes
SynTrans - Busses, Trucks, Planes
Terron AI - Busses, Trucks, Aircraft, Ships
trAIns - Trains
WormAI - Trains, Planes

Bug Free, Unmaintained Competition
CPU - Busses
gelignAIte - Busses, Trucks
Rythorn Airline AI - Planes, Helicopters
WrightAI - Planes, Helicopters
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.

Wormnest
Engineer
Engineer
Posts: 89
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: Which AIs are now actively maintained?

Post by Wormnest » 27 Feb 2017 19:00

I haven't checked all AI's but at least SynTrans and OtviAI have several open issues where the author hasn't responded for several years. I don't think they are actively maintained.

I have seen Rythorn crash and it has some other problems so it certainly is not bugfree.

Although Admiral AI has also some open issues I think crashes are pretty rare. Maybe not bugfree but certainly low on bugs and playable in my opinion.

My own WormAI and NoNoCab are maintained although they have some known issues but no known crashes. I'm hoping to get some time to look at that later this year.

Baldy's Boss
Tycoon
Tycoon
Posts: 1308
Joined: 23 Feb 2014 22:02

Re: Which AIs are now actively maintained?

Post by Baldy's Boss » 01 Aug 2017 07:16

Bumping...I noted a recent update in SimpleAI.

User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6543
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Which AIs are now actively maintained?

Post by Redirect Left » 01 Aug 2017 07:46

I have a lot of spare time (yay, disablementy things) so I can try to come up with an AI, or figure out how they work and add to a free licence one that allows derivitive works.
I didn't know people actively used AIs, as all the ones I have used make very predictable moves, mixed with sometimes illogical or broken routes, I at least stopped using them for that reason.
Last edited by Redirect Left on 01 Aug 2017 11:16, edited 1 time in total.
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!

Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4720
Joined: 09 Sep 2007 05:03
Location: home

Re: Which AIs are now actively maintained?

Post by Alberth » 01 Aug 2017 09:36

Baldy's Boss wrote:Bumping...I noted a recent update in SimpleAI.
Did you also update the wiki page?


@Redirect Left: Fixing or improving an existing AI would be more useful I think. We have lots of AIs, but very few maintainers. That also gives you a head start, as you have to do less ground-work.
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.

Brumi
President
President
Posts: 904
Joined: 18 Jul 2009 17:54

Re: Which AIs are now actively maintained?

Post by Brumi » 01 Aug 2017 10:32

Alberth wrote:Did you also update the wiki page?
If you mean this one, then yes, I've already done it with the AI update :)

No big flashy new features though, it was just a minor fix related to airplanes.

User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6543
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Which AIs are now actively maintained?

Post by Redirect Left » 01 Aug 2017 11:18

Alberth wrote: @Redirect Left: Fixing or improving an existing AI would be more useful I think. We have lots of AIs, but very few maintainers. That also gives you a head start, as you have to do less ground-work.
Well, i'll have a look around, and if I find one that users seem to particularly enjoy that I can add to or resolve a glitch with (it'll take a while to learn AI code anyway) I'll see if it allows derivitive works / outside corrections, improvements & additions.
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!

Baldy's Boss
Tycoon
Tycoon
Posts: 1308
Joined: 23 Feb 2014 22:02

Re: Which AIs are now actively maintained?

Post by Baldy's Boss » 26 Nov 2017 06:36

I note there was an update of ChooChoo since the last post or update here.

Baldy's Boss
Tycoon
Tycoon
Posts: 1308
Joined: 23 Feb 2014 22:02

Re: Which AIs are now actively maintained?

Post by Baldy's Boss » 18 Nov 2018 21:55

Bumping topic to the front,we need an updated survey...I note entirely new AIs have come along,like RailwAI.

mwyeoh
Engineer
Engineer
Posts: 28
Joined: 21 May 2009 05:36
Location: Perth, Australia

Re: Which AIs are now actively maintained?

Post by mwyeoh » 23 Mar 2019 10:44

I just did some testing with the current competitive AIs and these were my results (Version 1.9)

I tested on the 3 default maps (Not toyland) with vanilla assets only
Start year was either 1950 or 1970
I kept games going for around 5 - 7 years
Max loan was $500,000


Excellent- Both consistently performed very well
NoCAB
AIAI

Good - Sometimes performed well and sometimes very well (Unfortunately 3 of them crashed occasionally)
Wright AI - depended on the presence of large towns/cities
ChooChoo
Grinchios - crashed
Fast Transport- crashed
TracAI - Crashed

Medium - Usually performed pretty well. Better than those below
AdmiralAI
Trans

Average - turned profits but did not perform to the levels of those above
Terron
trAIns
WormAI


Low - stayed in business or went out of business
RailwAI
Clueless
Pathzilla
OTVI -crashed
Denver & Rio Grande -crashed
NoNoCAB


Failed - often went out of business
Rythorn -crased quickly
CivilAI
Last edited by mwyeoh on 28 Mar 2019 13:16, edited 1 time in total.

User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5383
Joined: 13 Sep 2004 13:21
Location: The Moon
Contact:

Re: Which AIs are now actively maintained?

Post by PikkaBird » 23 Mar 2019 14:49

I'm sorry to hear CivilAI performed so poorly for you. I'm currently working on a major update for OpenTTD 1.9, so if you have any example savegames in which the AI is struggling I'd be interested to see them.

Wormnest
Engineer
Engineer
Posts: 89
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: Which AIs are now actively maintained?

Post by Wormnest » 23 Mar 2019 15:14

I would be interested in savegames too.
For WormAI my guess would be that it is usually not the fastest starter and will perform better on longer runs.
For NoNoCAB it's more surprising. In general it should perform similar to NoCAB since it is based on that.

What limits on vehicles did you have, ai difficulty setting, size of map, terrain and amount of water are settings that might influence performance of ai's.

Edit:
Is Grinchios a new AI. I don't see it in the online content.

User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6543
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Which AIs are now actively maintained?

Post by Redirect Left » 23 Mar 2019 16:28

Redirect Left wrote:
Alberth wrote: @Redirect Left: Fixing or improving an existing AI would be more useful I think. We have lots of AIs, but very few maintainers. That also gives you a head start, as you have to do less ground-work.
Well, i'll have a look around, and if I find one that users seem to particularly enjoy that I can add to or resolve a glitch with (it'll take a while to learn AI code anyway) I'll see if it allows derivitive works / outside corrections, improvements & additions.
Unfortunately I had to quickly give up on this idea, as i found the way AIs are coded to be very unituitive and hard to figure out exactly.
I hope in the future, the method of implementing AI is improved to be a lot easier to do. Building a fully working and decent AI that builds proper networks and is very profitable seems to be more effort than the pleasure you'd get out of it at the end, at least from what I saw.
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!

User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5383
Joined: 13 Sep 2004 13:21
Location: The Moon
Contact:

Re: Which AIs are now actively maintained?

Post by PikkaBird » 23 Mar 2019 17:23

Redirect Left wrote:I hope in the future, the method of implementing AI is improved to be a lot easier to do.
It's a C-like scripting language - it's hard to imagine how it could be any simpler. Granted, the way 'real' programmers have structured their AI is often impenetrable to naive rubes like you and me, but that's not the language's fault. :)

Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4720
Joined: 09 Sep 2007 05:03
Location: home

Re: Which AIs are now actively maintained?

Post by Alberth » 24 Mar 2019 06:47

Redirect Left wrote:
Redirect Left wrote:
Alberth wrote: @Redirect Left: Fixing or improving an existing AI would be more useful I think. We have lots of AIs, but very few maintainers. That also gives you a head start, as you have to do less ground-work.
Well, i'll have a look around, and if I find one that users seem to particularly enjoy that I can add to or resolve a glitch with (it'll take a while to learn AI code anyway) I'll see if it allows derivitive works / outside corrections, improvements & additions.
Unfortunately I had to quickly give up on this idea, as i found the way AIs are coded to be very unituitive and hard to figure out exactly.
Yes, they are, but at the same time they are not.
The main reason why you find the code unintuitive and hard to read is because you didn't write it. Code follows the logic of its author, and everybody has a slightly different logic. It takes time and effort to figure out what logic the code has and to make that your own. In my experience, if you stick with studying it, you'll start to see patterns at some point, and then slowly code starts to make sense.

Of course this also goes in the other direction. Code that you or I write looks unintuitive and hard to understand to most others. It's not bad code, it's just how it works.
I hope in the future, the method of implementing AI is improved to be a lot easier to do. Building a fully working and decent AI that builds proper networks and is very profitable seems to be more effort than the pleasure you'd get out of it at the end, at least from what I saw.
I hope too that it gets easier, but I don't expect that to happen in my lifetime tbh unless you throw a lot of CPU power at it (ie deep learning and such). Writing a good AI is just a hard problem.
Ever tried to find a computation that understands when a network is "proper and very profitable"?

For most AI authors, I think the end-result is less relevant, but the journey or path to the end is. The pleasure of learning new things, and finding how to fix that problem in a nice way.
Being a OpenTTD developer does not mean I know what I am doing.
Also, other OpenTTD developers may have different opinions.

User avatar
Redirect Left
Tycoon
Tycoon
Posts: 6543
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: Which AIs are now actively maintained?

Post by Redirect Left » 25 Mar 2019 02:43

Alberth wrote:[..] snipped excess quotes [..]
I think it might be i was trying to look at the ChooChoo AI because it (in my opinion) builds the best networks similar to natural players. So it was quite a lot of code, that is no doubt perfectly organised to the author.

Unfortunately based on that, it takes a lot of effort to get a network builder that is competent. So huge props to the author of that. A few AIs don't specifically note the licence they're released underfor editing / improving and releasing either so i can learn that way. I tend to learn code by seeing and editing existing pieces of work, rather than from scratch.
Image
Worst Behaved IRC Member of 2008, 2009 & 2010 - Go Me!

mwyeoh
Engineer
Engineer
Posts: 28
Joined: 21 May 2009 05:36
Location: Perth, Australia

Re: Which AIs are now actively maintained?

Post by mwyeoh » 28 Mar 2019 13:14

Wormnest wrote:I would be interested in savegames too.
For WormAI my guess would be that it is usually not the fastest starter and will perform better on longer runs.
For NoNoCAB it's more surprising. In general it should perform similar to NoCAB since it is based on that.

What limits on vehicles did you have, ai difficulty setting, size of map, terrain and amount of water are settings that might influence performance of ai's.

Edit:
Is Grinchios a new AI. I don't see it in the online content.
PikkaBird wrote:I'm sorry to hear CivilAI performed so poorly for you. I'm currently working on a major update for OpenTTD 1.9, so if you have any example savegames in which the AI is struggling I'd be interested to see them.

Ah, sorry guys, I didn't save the games
I'll remember to do so later

Settings:
Usually the Temperate Map (But also desert and arctic)
40 towns
Low industries
500,000 max loan
2% sea
flat terrain
medium rivers
1024x1024 size map
No custom assets, just vanilla vehicles and carriages


For CivilAI, it seemed that it was a little reluctant to start routes as it was always searching for the best one. Unfortunately, since I usually put the AIs up against 5-6 others, they were crowded out by more aggressive AI
I was surprised about NoNoCAB too, that the original version seemed to perform much better in which routes to go for
WormAI was actually pretty good, just not as good as the ones listed above it
I think grinchios is listed in the AI page under mungo (But I cant remember)

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 1 guest