OtviAI (version 415)

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

Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: OtviAI (version 312)

Post by Kogut » 21 Feb 2010 12:21

I noticed that Otviai uses grain vehicles from HEQS to carry mail.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 22 Feb 2010 11:41

Hmmmm... I'm sure that you can physically fit a bunch of envelopes in a grain truck, but the mail guys might appreciate a more appropriate vehicle to prevent them from going postal...

I'll install the HEQS and see what happens; after that I guess it's time to update bananas :)

User avatar
Michiel
Transport Coordinator
Transport Coordinator
Posts: 313
Joined: 13 Jul 2008 00:57
Contact:

Re: OtviAI (version 312)

Post by Michiel » 22 Feb 2010 12:19

I'll bet bananas also fit in grain trucks!

Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: OtviAI (version 312)

Post by Kogut » 12 Mar 2010 18:44

Small tropical island, it even have bus service.
Attachments
Przechwytywanie.PNG
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Samu
Traffic Manager
Traffic Manager
Posts: 236
Joined: 17 Apr 2007 14:28

Re: OtviAI (version 312)

Post by Samu » 26 Apr 2010 06:54

Hi. I'm trying this AI, and I think I found a problem.

When I was loading a saved game, I got this error instantly.
Sem nome, 15 Mar 1981.png
Sem nome, 15 Mar 1981.png (20.38 KiB) Viewed 4585 times

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9278
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OtviAI (version 312)

Post by planetmaker » 26 Apr 2010 07:39

I cannot help to notice that bananas still features a 30 revisions old version of this AI. I don't know wether the bug is fixed in the version floating around in this thread, but you could try to give it a shot.

Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: OtviAI (version 312)

Post by Kogut » 26 Apr 2010 10:30

It is typical for ais without support of save/load.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 27 May 2010 10:05

planetmaker wrote:I cannot help to notice that bananas still features a 30 revisions old version of this AI. I don't know wether the bug is fixed in the version floating around in this thread, but you could try to give it a shot.
It is fixed in this version indeed and the bananas version is updated as well now, so that should solve these issues :)

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

Re: OtviAI (version 312)

Post by Brumi » 24 Jun 2010 19:33

I'm running a similar game to Samu's tournament to discover the reasons behind the mass bankruptcies.
OtviAI seems to be frozen, the last log entry is 19 years old.
Attachments
Otvi frozen.png
(52.57 KiB) Downloaded 1 time

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 25 Jun 2010 10:04

I've never had bankruptcies in any of my tests, so the whole going bankrupt is kinda strange. Seems I'll have to replicate the tournament as well and see what happens...

On a completely unrelated note: train support is being added but in a very very preliminary state.

Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: OtviAI (version 312)

Post by Kogut » 25 Jun 2010 21:09

Great! Next train AI!
Random thought: is it planned to support newgrfs?
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 26 Jun 2010 07:56

It is planned to support the most commonly used ones; so file your requests now :P

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9278
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OtviAI (version 312)

Post by planetmaker » 26 Jun 2010 08:22

Maninthebox wrote:It is planned to support the most commonly used ones; so file your requests now :P
oh well then:
Industries: ECS, FIRS
Trainsets: UKRS, 2cctrainset, DBXL, Japanese, NARS
Road vehicles: HEQS, long vehicles v4, egrvts, Dutch trams, Japanese trams, GermanRV
Misc: industrial renewal stations, nutracks

If you survive with these vehicle sets, possibly running on nutracks, industries provided by ECS or FIRS and even build newgrf stations, you're doing excellently :-)

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9278
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OtviAI (version 312)

Post by planetmaker » 02 Jul 2010 12:35

A small comment dedicated to this AI as based from my (short) competitive run with a number of other AIs: you survived and made profit :-)

Best areas of improvements now seem to be from this brief test: it could keep up a better station rating. There are stations which have quite poor rating, and the vehicle limit isn't yet reached; it might help with the profit of some vehicles, especially if there's comptetition; maybe it could also consider to upgrade some vehicles, if the rating is not good.

Attached a screenshot which compares this AI with the best AI (AIAI) and the best train-using AI (simpleAI)

All in all: kudos, you did a great job :-)
Attachments
otviai.png
otviai2.png
otviai2.png (70.91 KiB) Viewed 4204 times

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 02 Jul 2010 13:11

planetmaker wrote:
Maninthebox wrote:It is planned to support the most commonly used ones; so file your requests now :P
oh well then:
Industries: ECS, FIRS
Trainsets: UKRS, 2cctrainset, DBXL, Japanese, NARS
Road vehicles: HEQS, long vehicles v4, egrvts, Dutch trams, Japanese trams, GermanRV
Misc: industrial renewal stations, nutracks

If you survive with these vehicle sets, possibly running on nutracks, industries provided by ECS or FIRS and even build newgrf stations, you're doing excellently :-)
So far I've tested with my development version:
ECS: works
HEQS: works

Testing these two lead to two interesting observations:
1) my cargo support (other then mail) was broken for a while already, but the AI gracefully recovered/continued, so it went unnoticed until now :P
2) the combination of ECS with HEQS is broken: there's HEQS vehicles (crawler #8 or something like that) which claim to be refit-able to wood products, but they can't. So I can support either ECS or HEQS, but the combination is broken. I guess I could work around it by detecting both newgrf's and then use a vehicle blacklist, but I guess HEQS just needs to get fixed.

Onwards to testing the next newgrf...

Other fixes during testing:
- adding vehicles to routes was too aggressive
- first build first route, then the HQ (which is just for eyecandy anyway, the station spot is more important)
- give other instances of same AI a non-random name
- handle autorenew

Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: OtviAI (version 312)

Post by Kogut » 02 Jul 2010 13:14

I think it is good idea to report it in HEQS thread. It is not AI problem that newgrf is broken.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 09 Sep 2010 15:53

First alpha release of the next version: now with trains! :D

As it's very much alpha and not even beta yet, it's not in banana's, but only attached to this post. I'm mostly looking for bug reports and feedback.


---
edit: attachment removed, package was faulty
Last edited by Maninthebox on 05 Oct 2010 16:56, edited 1 time in total.

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

Re: OtviAI (version 312)

Post by Brumi » 10 Sep 2010 17:56

Great news! :D
But I wasn't able to try it out on 1.0.3, it crashes on startup:
Attachments
startup error.png
startup error.png (5.24 KiB) Viewed 4073 times

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 10 Sep 2010 19:42

Doh! /me is forgetting a few files in the tarball. New improved and actually working update soon :)

Maninthebox
Engineer
Engineer
Posts: 107
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox » 13 Sep 2010 08:24

New and improved: version 370: now with all the files actually in the tarball...
Attachments
OtviAI.tar
(180 KiB) Downloaded 93 times

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 3 guests