AroAI - v1.2

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
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9282
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: AroAI - v1.2

Post by planetmaker » 30 Jun 2013 07:58

Having AroAI v127 in one of my test games I found a situtation which possibly can be improved:

There's a bus route between Prondham Central and Chefingway Woods. Both stations are drive-through stations. But the road at Prondham Central is a dead-end road which goes quite a bit beyond the station. Thus busses drive a long way only to return to the station where they departed from - and only then leave from there (again) to their real destination.
Attachments
aro_bus.sav
savegame
(198.52 KiB) Downloaded 81 times
ogfx-landscape.tar
necessary NewGRF
(4.63 MiB) Downloaded 95 times

Allamarein
Engineer
Engineer
Posts: 6
Joined: 07 Aug 2014 17:51

API compatability in effect

Post by Allamarein » 07 Aug 2014 21:41

I set the AI competitors in my offline game, downloading the personalities, but I get this error:

If I set AROAI, I get:
1.1 API compatability in effect
Your script made an error: couldn't find library 'pathfinder.road' with version 3
*FUNCTION[main()] aroai-1.2\main.not line [25]
[this] TABLE
Please report the error to the following URL: (this)
If I set ADMIRALAI, I get:
1.0 API compatability in effect
Your script made an error: couldn't find library 'queve.fibonacci_heap' with version 2
*FUNCTION[main()] admiralai-25\main.not line [22]
Can you help me?
Thanks

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

Re: AroAI - v1.2

Post by Alberth » 08 Aug 2014 08:07

In the Game/AI script settings window, go to the online content, and select / download the missing libraries (Type-column: AILibrary).

This also holds for your other post I think.

BW89
Engineer
Engineer
Posts: 79
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 » 14 Jun 2015 11:13

Hello!
I like your AI. It's one of the best! :bow:
But since 1.4 it build a route and then in the AI Controle there stands: Can't buy busses!
Sry for my bad english! I am German

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

Re: AroAI - v1.2

Post by Brumi » 14 Jun 2015 11:23

Are you using any NewGRFs? What year did you start your game in?

BW89
Engineer
Engineer
Posts: 79
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 » 19 Jun 2015 14:05

Hi!
I used Spring Patch pack and i Try it without or with NewGRF's I test it 1830, 1950 and 2000.

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

Re: AroAI - v1.2

Post by Brumi » 19 Jun 2015 21:30

What happens if you don't use the Spring Patch Pack?

Anyway, if you have a game in which this happens (preferably without NewGRFs and started in 1950 or later), please post the savegame, and more importantly your openttd.cfg so that we can see your settings without having to install the patch pack :)

BW89
Engineer
Engineer
Posts: 79
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 » 20 Jun 2015 19:42

OK with Vanilla and no GRF's it works. But with GRF's and Vanilla it don't works. With GRF's it try's to build 0x0000...
Idk what NewGRF is the Problem.
With SPP it works fine but with New GRF's :roll:
Here's a screen From SPP and the NGRF's
Hope someone can help
Attachments
AroAI.jpg
(649.52 KiB) Downloaded 2 times

User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2365
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: AroAI - v1.2

Post by Lord Aro » 21 Jun 2015 14:05

Now that's an interesting thing.

At a guess, I'd say your NewGRFs are at fault (are there buses available?) Beyond that, I'd need a copy of your savegame to investigate further
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra

BW89
Engineer
Engineer
Posts: 79
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 » 21 Jun 2015 14:36

Some GRF's have got busses. :D
Here is the Savegame with the GRF's from my last post.
It works only with SpringPatchpack Full :!:
If you want i can make a Vanilla+GRfs savegame :wink:
Hope I can help
Attachments
AroAI error.sav
(363.88 KiB) Downloaded 52 times

User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2365
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: AroAI - v1.2

Post by Lord Aro » 21 Jun 2015 14:38

Ah, overlooked the patchpack thing. Yes, if you could reproduce this in vanilla, that'd be lovely
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra

BW89
Engineer
Engineer
Posts: 79
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 » 21 Jun 2015 16:17

Please!
Vanilla+GRFs
Attachments
AroAI error-VANILLA.sav
(330.2 KiB) Downloaded 59 times

BW89
Engineer
Engineer
Posts: 79
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 » 23 Mar 2016 20:23

LOL!
I added Polroad and now it works.
:wink:

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

Re: AroAI - v1.2

Post by xarick » 13 Jun 2016 11:00

AroAI can trigger bankrupt warnings when working too close to the max loan limit. I don't know if it's worth providing a savegame. It triggers when he's actively working, and loading a save won't have him pick up from where he was and due to the huge profits he has by that time, it won't trigger again soon. He has a £1,100k profit and 2600 road vehicles when this happens.

Search:
dbg: [script] [0] 09/11/1954 [Manager] Aro Delivery is in trouble and may go bankrupt soon. HA.
dbg: [script] [0] 02/12/1956 [Manager] Aro Delivery is in trouble and may go bankrupt soon. HA.


EDIT: attached savegame. aroai is special, he actually starts working immediately after load. My bad.
Attachments
openttdCore1.cfg
(10.74 KiB) Downloaded 40 times
openttdCore1.txt
(1.09 MiB) Downloaded 43 times
Aro Delivery, 1st Nov 1954.sav
(1.91 MiB) Downloaded 41 times
Formerly known as Samu

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

Re: AroAI - v1.2

Post by xarick » 13 Jun 2016 11:21

Maybe this save is better. Let it advance 1 month, and it should trigger the bankrupt warning on November.
Attachments
Aro Delivery, 1st Oct 1954.sav
(1.91 MiB) Downloaded 41 times
Formerly known as Samu

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

Re: AroAI - v1.2

Post by xarick » 28 Feb 2019 00:38

The index town does not exist
Attachments
Unnamed, 1996-09-04.sav
(740.6 KiB) Downloaded 16 times
Unnamed, 1996-09-02.png
(229.53 KiB) Not downloaded yet
Formerly known as Samu

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 2 guests