RoadRunner AI

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

Felix Atagong
Engineer
Engineer
Posts: 45
Joined: 16 Apr 2007 19:50
Location: Louvain
Contact:

Re: RoadRunner AI

Post by Felix Atagong » 01 Dec 2010 14:10

Thanks for correcting the bug (it was me who put the bug in to the flyspray thingie).

Steffl
Engineer
Engineer
Posts: 103
Joined: 23 Feb 2010 15:44

Re: RoadRunner AI

Post by Steffl » 03 Dec 2010 18:49

Nothing to thank. It would be against my honor if I write something that has so big bugs in it. :-)
Thank you again for reporting it. I haven't thought before that an AI is able to crash the hole game in some situations.

Felix Atagong
Engineer
Engineer
Posts: 45
Joined: 16 Apr 2007 19:50
Location: Louvain
Contact:

Re: RoadRunner AI

Post by Felix Atagong » 11 Feb 2011 20:19

Roadrunner refuses to save on a 1024 x 1024 map.
I have uploaded a save game as well.
Keep on AI-ing!
Attachments
1862.png
1862.png (7.5 KiB) Viewed 4291 times
Blauw Transport, 24 Jan 1862.sav
(1.39 MiB) Downloaded 89 times

laserdog
Engineer
Engineer
Posts: 12
Joined: 27 Mar 2011 03:12

Re: RoadRunner AI

Post by laserdog » 27 Mar 2011 03:18

it does that on mine too maybe its the verison

zooter
Engineer
Engineer
Posts: 11
Joined: 14 Dec 2007 12:13

Re: RoadRunner AI

Post by zooter » 24 Jun 2011 09:41

Firstly i want to say that this is a great AI...but secondly i feel so mad at you (the developer)...the AI is ruining towns left right and center with 100s of vehicles causing all types of jams! I dread putting out a single bus/truck on the towns occupied by this AI.

Btw, vehicles get jammed nicely in your AI and it takes some time to recover. I wanted to take a screenshot but the jam got resolved by the time I came around again to the town

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

Re: RoadRunner AI

Post by Brumi » 24 Jun 2011 10:51

RoadRunner has a setting 'Level of traffic the AI should generate'. Doesn't it help?

Felix Atagong
Engineer
Engineer
Posts: 45
Joined: 16 Apr 2007 19:50
Location: Louvain
Contact:

Re: RoadRunner AI

Post by Felix Atagong » 23 Jul 2011 11:56

I love RoadRunner because it is one of the only AI that can build vehicles (and stay alive!) in 1850 (horse carts). Unfortunaetely it always gives the following error after each restart (from a saved game). The result is that it stays with its initial first (money-making) line and doesn't expand further.

Any solution (I already mentioned this bug a while ago, BTW)...
Attachments
Green Is The Colour, 8 Sep 1871.png
Green Is The Colour, 8 Sep 1871.png (7.98 KiB) Viewed 3799 times

Steffl
Engineer
Engineer
Posts: 103
Joined: 23 Feb 2010 15:44

Re: RoadRunner AI

Post by Steffl » 22 Feb 2012 20:28

Hello, good news after a long time.

Finally I found a solution for this annoying bug with "This AI took to long to save".
I realised that I never replied, (sorry) but I remember I read this bug report here and tried to change something with save/load design of AI, but it don't work.

Now my solution doesn't change save/load code. I just dramatically reduced the data to save.

The targets which are considered to calculate good connections are now limited to 10 for every cargo type. In last version the limit was 500. You can change it in settings menu, but the setting of 10 worked good in all test.

Another new setting allows you to toggle "Full load" orders on or off. This is to minimize jams in towns.



It's planned to add something like a sub-pathfinder for long distances because pathfinding often takes years and the AI can't do anything in this time.
I already have some plans for it, but you waited long enough for a working version, I think.
So here is RoadRunner, version Nr. 7
Attachments
RoadRunner-7.tar
RoadRunner - Version 7
(350 KiB) Downloaded 102 times

Felix Atagong
Engineer
Engineer
Posts: 45
Joined: 16 Apr 2007 19:50
Location: Louvain
Contact:

Re: RoadRunner AI

Post by Felix Atagong » 26 Feb 2012 13:41

gonna check this out now, thanks!

Steffl
Engineer
Engineer
Posts: 103
Joined: 23 Feb 2010 15:44

Re: RoadRunner AI

Post by Steffl » 16 Dec 2012 12:12

Hi together,

today it's time for a new version of RoadRunner.
I think it needs a little bit more testing, so will upload it to bananas later, when I'm sure all works as it should.
Especially after around fifty years of playing the AI always got really slow and wasn't able to manage the vehicle right anymore.
I removed some sleep commands and changed some code so it should be a little bit better now.
But it's hard to test this, because you have to wait 50 game years to see if your changes make some improvements

The biggest problem was again the pathfinding. It was (always) simply to slow and blocked all actions of the AI.
Now I changed the parameters of the pathfinder function to make it a lot faster and add a little function to remove unnecessary turns. So it should most of the time build perfect straight roads, as short as possible. It doesn't always reuse existing roads now, this is the disadvantage of faster pathfinding. But this is adjustable in the AI Settings of RoadRunner if you want to.

Also RoadRunner builds now more stations in towns, when they grow. In version 7 this don't worked like I thought it should.
Attachments
RoadRunner-8.tar
RoadRunner v8(unfinished)
(410 KiB) Downloaded 79 times

R2dical
Traffic Manager
Traffic Manager
Posts: 165
Joined: 18 Mar 2013 22:22

Re: RoadRunner AI

Post by R2dical » 18 Mar 2013 22:29

Hi everyone (first post!)

Enjoying this AI a lot, nice work. I got a crash with version 7:
Image

I am using the latest stable and many newGRFs, I can post a save and more info if necessary.

Keep up the good work!
Attachments
Roadrunner Crash.png
(42.2 KiB) Downloaded 4 times

Mution
Engineer
Engineer
Posts: 35
Joined: 08 Apr 2005 22:51
Location: Bath, England
Contact:

Re: RoadRunner AI

Post by Mution » 21 Mar 2013 11:02

How did i get this to appear in my list of AI if i am downloading as RAR file then copying the folder into the AI folder?

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

Re: RoadRunner AI

Post by Brumi » 21 Mar 2013 11:34

You have to unpack the RAR file.
Otherwise please tell a bit more specifically what you did.

Mution
Engineer
Engineer
Posts: 35
Joined: 08 Apr 2005 22:51
Location: Bath, England
Contact:

Re: RoadRunner AI

Post by Mution » 21 Mar 2013 17:56

Brumi wrote:You have to unpack the RAR file.
Otherwise please tell a bit more specifically what you did.

All sorted :) thanks

griffin71
Traffic Manager
Traffic Manager
Posts: 142
Joined: 31 Mar 2007 13:11
Location: Amsterdam

Re: RoadRunner AI

Post by griffin71 » 25 May 2013 15:08

I just had a crash with RoadRunner v7. Attached are the AI output crashlog and the savegame (requires 1.3 w/ CargoDistribution).
Attachments
RoadRunner(v7)_20130525.jpg
(141.95 KiB) Downloaded 2 times
Feestable Transport, 1954-10-05.sav
(1.36 MiB) Downloaded 58 times
A game worth playing is a game worth modding :-)

Steffl
Engineer
Engineer
Posts: 103
Joined: 23 Feb 2010 15:44

Re: RoadRunner AI

Post by Steffl » 09 Jun 2013 08:56

Hi,
thanks for the bug reports R2dical and griffin71. They should be fixed now.
I think I will upload new version to bananas next week. I think it needs some more test games.

vvv Here's the current work in progress version. vvv
Attachments
RoadRunner-8.tar
RoadRunner- v8, alpha
(460 KiB) Downloaded 58 times

Steffl
Engineer
Engineer
Posts: 103
Joined: 23 Feb 2010 15:44

Re: RoadRunner AI

Post by Steffl » 14 Jun 2013 21:51

Hi again,
version 8 is finished and uploaded to bananas now.
After several test games I decided that it can survive in the hard world out there. :-)
I think the AI is a little faster again, especially the pathfinding.
After very much tests with try and error the pathfinder should now most of the time build a "tidy" road network and is still fast enough.
In my tests RoadRunner worked well with FIRS and ECS industries.

Complains, bug reports, etc. etc. are welcome, just the response CAN TAKE A LITTLE BIT ... :-)

Edit: Tried to upload, but gives "Unhandled Exception". Maybe works tomorrow.
Edit2: Bananas had a new feature (or bug) which only let you upload things when you set min and max version to "nightly". But thanks to frosch and TrueBrain all is ok now again.
Attachments
RoadRunner-8.tar
RoadRunner - version 8
(460 KiB) Downloaded 66 times

Steffl
Engineer
Engineer
Posts: 103
Joined: 23 Feb 2010 15:44

Re: RoadRunner AI

Post by Steffl » 30 Jun 2013 14:01

Hi,
I found a little bug in version 8 so I thought it would be the best to upload a new version.
So here is RoadRunner - version 9.
Attachments
RoadRunner-9.tar
RoadRunner - Version 9
(460 KiB) Downloaded 71 times

xarick
Transport Coordinator
Transport Coordinator
Posts: 262
Joined: 26 Feb 2015 00:52

Re: RoadRunner AI

Post by xarick » 08 Apr 2016 10:44

This server started in 1950, 15x RoadRunner AIs were doing fine throughout the years, but by the year 2000, they all started to amass vehicles, jamming each other and slowly cannibalizing themselves into negative profit.

They are forcing each RoadRunner to bankrupting. I had not much time to see what would happen in a few years, I only had time to see cream becoming the first to bankrupt, but then I had to close the server.
Attachments
screenshot#3.png
(408.2 KiB) Not downloaded yet
autosave5.sav
(1.15 MiB) Downloaded 36 times
openttdCore1.cfg
(10.81 KiB) Downloaded 38 times
Formerly known as Samu

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

Re: RoadRunner AI

Post by Wormnest » 30 Apr 2016 21:29

Crash less than a month after loading a savegame.
Attachments
AI Test Arctic, 1984-03-12.png
(1.06 MiB) Not downloaded yet

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests