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

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

Re: OtviAI (version 312)

Post by Kogut »

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: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

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: 338
Joined: 13 Jul 2008 00:57
Contact:

Re: OtviAI (version 312)

Post by Michiel »

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 »

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 »

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 7302 times
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OtviAI (version 312)

Post by planetmaker »

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 »

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: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

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

Re: OtviAI (version 312)

Post by Brumi »

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
Otvi frozen.png (52.57 KiB) Viewed 849 times
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

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 »

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: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

It is planned to support the most commonly used ones; so file your requests now :P
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: OtviAI (version 312)

Post by planetmaker »

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

Re: OtviAI (version 312)

Post by planetmaker »

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 6921 times
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

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 »

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: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

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

Re: OtviAI (version 312)

Post by Brumi »

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 6790 times
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

Doh! /me is forgetting a few files in the tarball. New improved and actually working update soon :)
Maninthebox
Engineer
Engineer
Posts: 113
Joined: 08 Aug 2008 11:35
Contact:

Re: OtviAI (version 312)

Post by Maninthebox »

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

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 9 guests