OtviAI (version 423)

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

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

Re: OtviAI (version 415)

Post by Baldy's Boss »

In my current Buborough & Penbourne game,OTVI after OTVI has risen to be my closest competitor and then gone bust.Lately the pink OTVI bought a failing NiceCAB that had airports that multiplied the OTVI's infrastructure costs,it had least had some aircraft.
Then the fast-growing yellow OTVI built two international airports that are nearly all its infrastructure cost (7.7 million out of 8.1 million...it also has hundreds of tiles of electric railway but runs no trains) but has no aircraft.This save is April 1999,it was offered to me in bankruptcy in August and went bust by November (I COULD have bought it and nuked those airports,the road vehicle operation was doing well).

If OTVI knew how to get out of bad investments,it would be a really strong competitor.
Attachments
Buborough&PenbourneR.R.Co.,1stApr1999.sav
(4.02 MiB) Downloaded 177 times
Baldy's Boss
Tycoon
Tycoon
Posts: 1396
Joined: 23 Feb 2014 22:02

Re: OtviAI (version 415)

Post by Baldy's Boss »

I'm told this is a feedback loop gone wrong...looks like a bug in OTVI.
(It's generally my closest competitor in games where it's present,but it does have drawbacks).
Attachments
Malberg Mauve R.R. Co., 22nd May 1958.png
(3.7 MiB) Not downloaded yet
Wormnest
Engineer
Engineer
Posts: 117
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: OtviAI (version 415)

Post by Wormnest »

OTVI v. 418 for several years now keeps trying to use a Kirby Paul as a mail cart? and fails. Trying the same again and again instead of going for something different.
There's also another train in the same depot that's not running.
Attachments
Unnamed, 1958-03-25#1.png
(735.65 KiB) Not downloaded yet
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: OtviAI (version 415)

Post by Kogut »

crash
Attachments
Unnamed, 16th Jul 2055.sav
(107.08 KiB) Downloaded 154 times
Selection_011.png
(35.09 KiB) Not downloaded yet
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Baldy's Boss
Tycoon
Tycoon
Posts: 1396
Joined: 23 Feb 2014 22:02

Re: OtviAI (version 415)

Post by Baldy's Boss »

An OTVI in my Sesninghill & Freaway game has gone from nowhere to Chairman level in a few years and is my closest competitor in more ways than one...it bought out another AI whose road alongside the eponymous flagship route stands in the way of landscaping I've wanted to do for ages.
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: OtviAI (version 415)

Post by xarick »

OtviAI 422, OpenTTD 1.8.0

excessive cpu valuator
Attachments
Unnamed, 1975-06-12.png
(239.1 KiB) Not downloaded yet
Unnamed, 1975-06-10.sav
(4.47 MiB) Downloaded 139 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: OtviAI (version 415)

Post by xarick »

The index 'RONDJE_ALERT' does not exist.
It was trying to complete a subsidy as the first task.
Attachments
Unnamed, 1955-01-20.7z
(24.02 MiB) Downloaded 149 times
Unnamed, 1954-11-05.png
(579.49 KiB) Not downloaded yet
Formerly known as Samu
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 415)

Post by Maninthebox »

xarick wrote: 10 Apr 2019 18:29 The index 'RONDJE_ALERT' does not exist.
It was trying to complete a subsidy as the first task.
I have been away for a while, but like others: the Steam release triggered a comeback :) I'll be going in reverse order through the bugs after updating to 1.11 API. Handled this bug first, turns out it was indeed possible that a subsidy was handled before this variable was set. It's fixed, but not yet available in the online download system as I first need to get my account login transferred to the new login :)

Now trying to see whether I can re-use my patches (from 1.3.3...) on 1.11 that I used to do fully automated tests of one or more AIs against a set of configs and scenarios... Time to brush up my Squirrel, C and C++ coding skills.
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 415)

Post by Maninthebox »

Got automated testing up & running again and first tests (after fixing the issues mentioned in this thread) look all ok, so I'll release a new version soon (tm).
all_25_year_competition_666_score.png
all_25_year_competition_666_score.png (15.03 KiB) Viewed 936 times
Baldy's Boss
Tycoon
Tycoon
Posts: 1396
Joined: 23 Feb 2014 22:02

Re: OtviAI (version 423?)

Post by Baldy's Boss »

Maninthebox wrote: 15 Apr 2021 15:21 Got automated testing up & running again and first tests (after fixing the issues mentioned in this thread) look all ok, so I'll release a new version soon (tm).
all_25_year_competition_666_score.png
Is 423 the upcoming version or the most recent past version?
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 415)

Post by Maninthebox »

That would be the upcoming version. Currently re-running tests on a number of scenarios/configurations as I discovered a flaw in the logic that dealt with other companies going bankrupt.
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 423)

Post by Maninthebox »

Version 423 is online and should be available via the in-game download system now.

Fixes:
  • * RONDJE_ALERT missing
    * excessive CPU valuator
    * fixed bankruptcy due to buying out really bad companies
    * tram division by zero
    * cart selection for train updated
Baldy's Boss
Tycoon
Tycoon
Posts: 1396
Joined: 23 Feb 2014 22:02

Re: OtviAI (version 423)

Post by Baldy's Boss »

Maninthebox wrote: 21 Apr 2021 13:32 Version 423 is online and should be available via the in-game download system now.

Fixes:
  • * RONDJE_ALERT missing
    * excessive CPU valuator
    * fixed bankruptcy due to buying out really bad companies
    * tram division by zero
    * cart selection for train updated
I don't see Otvi listed among the AIs in "Check Online Content" at all now...I had been checking for upgrades!
EDIT:I see from revised first post that you are keying to 1.11 so is it not visible to people playing 1.10.3?

It now evaluates potential takeover candidates before jumping in?
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 423)

Post by Maninthebox »

It is indeed targeted for 1.11 and up. I would have to see whether I could lower that to 1.10; I did add a few things that came in API versions 1.9, 1.10 and/or 1.11.

The evaluation of takeover candidates is still very minimal, but at least the AI won't buy another company any more if low on cash; it at least makes sure to be able to have enough money to be able to pay for maintenance etc. It cleans up unprofitable stations, but the maintenance fee might come before being able to clean up.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 10 guests