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: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: AroAI - v1.2

Post by planetmaker »

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 191 times
ogfx-landscape.tar
necessary NewGRF
(4.63 MiB) Downloaded 212 times
Allamarein
Engineer
Engineer
Posts: 6
Joined: 07 Aug 2014 17:51

API compatability in effect

Post by Allamarein »

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: 4763
Joined: 09 Sep 2007 05:03
Location: home

Re: AroAI - v1.2

Post by Alberth »

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: 105
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 »

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: 920
Joined: 18 Jul 2009 17:54

Re: AroAI - v1.2

Post by Brumi »

Are you using any NewGRFs? What year did you start your game in?
BW89
Engineer
Engineer
Posts: 105
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 »

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: 920
Joined: 18 Jul 2009 17:54

Re: AroAI - v1.2

Post by Brumi »

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: 105
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 »

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: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: AroAI - v1.2

Post by Lord Aro »

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: 105
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 »

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 165 times
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: AroAI - v1.2

Post by Lord Aro »

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: 105
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 »

Please!
Vanilla+GRFs
Attachments
AroAI error-VANILLA.sav
(330.2 KiB) Downloaded 174 times
BW89
Engineer
Engineer
Posts: 105
Joined: 10 May 2015 11:42

Re: AroAI - v1.2

Post by BW89 »

LOL!
I added Polroad and now it works.
:wink:
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: AroAI - v1.2

Post by xarick »

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 144 times
openttdCore1.txt
(1.09 MiB) Downloaded 148 times
Aro Delivery, 1st Nov 1954.sav
(1.91 MiB) Downloaded 149 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: AroAI - v1.2

Post by xarick »

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 145 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 336
Joined: 26 Feb 2015 00:52

Re: AroAI - v1.2

Post by xarick »

The index town does not exist
Attachments
Unnamed, 1996-09-04.sav
(740.6 KiB) Downloaded 124 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: Bing [Bot], xarick and 8 guests