AIAI

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

MAG101
Engineer
Engineer
Posts: 28
Joined: 14 Dec 2011 00:55

Re: AIAI

Post by MAG101 »

I got a crash right to loading a game while AI is railbuilding, blacklist seens not be saveable.
can current AIAI resuneme building tracks after is loaded
Attachments
AI test Savebuild.sav
(134.82 KiB) Downloaded 138 times
Unnamed, 6th Dec 1923.png
(267.69 KiB) Downloaded 1 time
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

Thanks for testing and report!

I fixed reported crash, blacklist is not saved as I still think what is the best way to handle this, saving information about route under construction is quite complex and I prefer to handle other more important and easier things.
Attachments
AIAI-iota6.tar
(284.5 KiB) Downloaded 150 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
MAG101
Engineer
Engineer
Posts: 28
Joined: 14 Dec 2011 00:55

Re: AIAI

Post by MAG101 »

Stange AI bug fail build double track
check the setting
NEWGRF NUTS Trains
Attachments
Unnamed, 2nd Oct 2004.png
(339.04 KiB) Downloaded 1 time
Unnamed, 2nd Apr 2005.png
(389 KiB) Downloaded 1 time
AIAI Stange.sav
(108.29 KiB) Downloaded 152 times
MAG101
Engineer
Engineer
Posts: 28
Joined: 14 Dec 2011 00:55

Re: AIAI

Post by MAG101 »

another stange bevareior building brigles on slopes and edges for no reason
Attachments
Unnamed, 15th Sep 2004.png
(238.93 KiB) Downloaded 1 time
Wafflewell Transport, 24th Dec 1990.png
(163.49 KiB) Downloaded 1 time
Wafflewell Transport, 24th Dec 1990.png
(163.49 KiB) Downloaded 1 time
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

Missing passing lane may be caused by lack of money during construction or obstacle that disappeared after route construction. The best way to catch this bug is to find map where the first railway route is broken (there is possibility to reproduce situation and test fix).

Anyway, thanks for report - I will try to hunt this a bit more.

I made version that handles aircraft range. Unfortunately this version is also very good in crashing OpenTTD if used with av8 - see http://bugs.openttd.org/task/5215

In result it is untested and not recommended to use.
Attachments
AIAI-iota7.tar
(286 KiB) Downloaded 132 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

new-AIAI-crashes-openTTD bug is fixed in nightlies ( http://www.openttd.org/en/download-trunk )

=====

AIAI news - code is worse than expected, but larger stations are done!
Attachments
Przechwytywanie.PNG
Przechwytywanie.PNG (127.1 KiB) Viewed 4864 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
CaesiumFarmer
Engineer
Engineer
Posts: 21
Joined: 25 Jun 2012 03:35

Re: AIAI

Post by CaesiumFarmer »

I was playing earlier and this happened. I'm not sure what caused it because I was busy building my own stuffs.
Plunningwell Transport, 31st Oct 1934.png
(144.76 KiB) Downloaded 2 times
Edit: I have attached the a save now as well.
Attachments
PurpleAIAI errors.sav
(332.32 KiB) Downloaded 140 times
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

Thanks for the info! Fixed in development version.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

[feature] larger stations
[fixed] CaesiumFarmer's bug (thanks for the report!)
[fixed] YA passing lanes bug
[fixed] minor station naming stuff
[feature] better selecting of RV, as I discovered that speed below 89km/h is not counted toward station rating

This version will be uploaded to BaNaNaNaNaNaNaNaNaNaNaNaNaNaNaNas unless somebody will find a bug.

EDIT: It will be released to general population after backporting fix to AIAI-crashes-openTTD bug.
Attachments
AIAI-iota9.tar
(292 KiB) Downloaded 159 times
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
MAG101
Engineer
Engineer
Posts: 28
Joined: 14 Dec 2011 00:55

Re: AIAI

Post by MAG101 »

AIAI Build Airports that too long to fly that no planes to fly its stil choses plane cant fly to airport


1.dont build airport over plane range limits

2.AI seens unable sell unprofit planes when too far to fly I had manualy depot and sell them that new plane watiing the hanger to run
Attachments
AIAI bug, 24th Jan 1920.png
(183.55 KiB) Downloaded 1 time
AIAI Bug 2, 29th Apr 1950.png
(198.39 KiB) Downloaded 1 time
Unnamed, 28th Mar 1950#1.png
(398.91 KiB) Downloaded 1 time
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

Can you upload save where this happened?
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
MAG101
Engineer
Engineer
Posts: 28
Joined: 14 Dec 2011 00:55

Re: AIAI

Post by MAG101 »

AIAI Crashes two years later
Attachments
Unnamed, 28th Mar 1965#1.png
(135.62 KiB) Downloaded 2 times
AIAI Invard Crash, 9th Sep 1963.sav
(842.8 KiB) Downloaded 143 times
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

MAG101 wrote:AIAI Crashes two years later
This one may do weird things as was created by an old AIAI (many, many bugs were fixed - but I cannot release new version as it contains code that crashes openttd).

EDIT: whatever, I will upload it to Bananas and restrict to nightlies.

EDIT: current released version of AIAI is iota9, available on bananas - but only for nightlies, as it crashes stable version of OpenTTD.

EDIT: thanks for bug report.

EDIT: I published also new version, with planes disabled as default for stable openTTD.

EDIT: Now AIAI disappeared from list for stable versions...

EDIT: What was caused by 3 years old bug (http://bugs.openttd.org/task/2966). OK, I will upload version without planes as the only one....

So MAG101 - you can download version that should fix this bug, but use planes only in nightly openttd.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
CaesiumFarmer
Engineer
Engineer
Posts: 21
Joined: 25 Jun 2012 03:35

Re: AIAI

Post by CaesiumFarmer »

Kogut wrote:[feature] larger stations
[fixed] CaesiumFarmer's bug (thanks for the report!)
[fixed] YA passing lanes bug
[fixed] minor station naming stuff
[feature] better selecting of RV, as I discovered that speed below 89km/h is not counted toward station rating
No problem! I'm currently working on an AI and I plan to test it alongside AIAI first. To me it seems somewhat human like to play against. You did a really good job with it!
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

CaesiumFarmer wrote:
Kogut wrote:[feature] larger stations
I'm currently working on an AI and I plan to test it alongside AIAI first. To me it seems somewhat human like to play against. You did a really good job with it!
Thanks! BTW, I recommend updating it (it may be done via bananas, requires OpenTTD 1.2.1, to enable airplanes it requires nightly).
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
CaesiumFarmer
Engineer
Engineer
Posts: 21
Joined: 25 Jun 2012 03:35

Re: AIAI

Post by CaesiumFarmer »

Lots of stuff onscreen I apologize but the content you need is there.
Attachments
Chendingstone Transport, 6th Apr 1940.png
(192.55 KiB) Downloaded 1 time
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

Re: AIAI

Post by Zuu »

That error is from a non-recent version of SuperLib. Later versions of SuperLib have been fully updated to the API version of OpenTTD that your AIAI version is using. I suspect that you do not use the latest AIAI version?
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

Yes, you are using iota3 version, current one is iota9 (you may need to update openTTD to version 1.2.1).
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Liberation
Engineer
Engineer
Posts: 5
Joined: 05 Jul 2012 15:16

Re: AIAI

Post by Liberation »

Hello,

Just wanted to let you know that I had a problem with OpenTTD crashing today and it turned out AIAI was the source of the problem. Just thought I could let you know so you could find the solution and fix it :) this is the original thread: http://www.tt-forums.net/viewtopic.php?f=31&t=61519

I'm pretty sure I downloaded the last (9th) version of AIAI and it's the 1.2.1 version of OpenTTD.
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: AIAI

Post by Kogut »

Liberation wrote:Hello,

Just wanted to let you know that I had a problem with OpenTTD crashing today and it turned out AIAI was the source of the problem. Just thought I could let you know so you could find the solution and fix it :) this is the original thread: http://www.tt-forums.net/viewtopic.php?f=31&t=61519

I'm pretty sure I downloaded the last (9th) version of AIAI and it's the 1.2.1 version of OpenTTD.
I know, that is why current version have disabled airplanes as default and warning to not enable them except in the nightlies ( Openttd crash bug is fixed in nightlies, but it was not ported to stable version - http://bugs.openttd.org/task/5215 ). Upgrading OpenTTD and AIAI should fix problem (planes are disabled as default in recent version of AIAI).
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: Jaume and 2 guests