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

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

Re: AIAI

Post by Brumi »

By the way, what game script are you using? Is it your own? :)
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: AIAI

Post by xarick »

Couldn't join wagon to train: ERR_VEHICLE_TOO_LONG
Attachments
Unnamed, 2013-08-30.png
(824.35 KiB) Not downloaded yet
R13-G12 - AIAI vs MpAI - 11,199 days.sav
(795.67 KiB) Downloaded 237 times
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: AIAI

Post by xarick »

Brumi wrote:By the way, what game script are you using? Is it your own? :)
Yes, I'm using Company Value GS
Formerly known as Samu
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: AIAI

Post by xarick »

Explosion caused by vehicle 9 named (null: 0x0000000000000000), last error is ERR_NONE.
Attachments
Unnamed, 2365-08-08.png
(414.29 KiB) Not downloaded yet
R39-G11 - AIAI vs trAIns - 98,512 days.sav
(482.48 KiB) Downloaded 218 times
Formerly known as Samu
User avatar
Redirect Left
Tycoon
Tycoon
Posts: 7234
Joined: 22 Jan 2005 19:31
Location: Wakefield, West Yorkshire

Re: AIAI

Post by Redirect Left »

xarick wrote: 18 Jun 2019 21:15 [many reports here]
The original author of this AI hasn't been active for over a year on the forum. I'm not sure if anything you have reported will be resolved. It may be worth considering resolving some yourself, or trying a different AI.
Image
Need some good tested AI? - Unofficial AI Tester, list of good stuff & thread is here.
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: AIAI

Post by xarick »

Explosion caused by vehicle 706 named (null: 0x0000000000000000), last error is ERR_NONE

savegame is of a custom openttd build (viewtopic.php?f=33&t=85608).
This crash is similar to another I posted already, on an official OpenTTD build, but for GetUnloadStation instead.
Attachments
screenshot#4.png
Explosion caused by vehicle 706
(320.83 KiB) Not downloaded yet
AIAI crash.sav
(2.75 MiB) Downloaded 208 times
Formerly known as Samu
Odogster
Engineer
Engineer
Posts: 2
Joined: 04 Feb 2020 20:40

Re: AIAI

Post by Odogster »

I noticed that the AI is stealing goods from materials I sent to the factory. Not sure if this is intentional or not, but it sure is annoying.
Attachments
Screen Shot 2020-02-04 at 1.37.51 PM.png
(878.86 KiB) Not downloaded yet
Auge
Director
Director
Posts: 632
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: AIAI

Post by Auge »

Hello
Odogster wrote: 04 Feb 2020 20:44 I noticed that the AI is stealing goods from materials I sent to the factory. Not sure if this is intentional or not, but it sure is annoying.
The Ai doesn't steal anything. Your task is to tranport $anything. You don't own the freight and you don't own products made from delivered freight. If it is not you who transport the products it is someone else (in your case the AI).

Tschö, Auge
User avatar
odisseus
Director
Director
Posts: 552
Joined: 01 Nov 2017 21:19

Re: AIAI

Post by odisseus »

On many multiplayer servers, it is forbidden to transport secondary cargo from industries that are supplied by another player. This act is usually called "cargo stealing". It would be nice if the AI could be configured to respect that rule.

Meanwhile, an offending station can be removed using the cheats.
Odogster
Engineer
Engineer
Posts: 2
Joined: 04 Feb 2020 20:40

Re: AIAI

Post by Odogster »

Auge wrote: 05 Feb 2020 13:15 Hello
Odogster wrote: 04 Feb 2020 20:44 I noticed that the AI is stealing goods from materials I sent to the factory. Not sure if this is intentional or not, but it sure is annoying.
The Ai doesn't steal anything. Your task is to tranport $anything. You don't own the freight and you don't own products made from delivered freight. If it is not you who transport the products it is someone else (in your case the AI).

Tschö, Auge
I guess that's fair, thanks for the help.
Auge
Director
Director
Posts: 632
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: AIAI

Post by Auge »

Hello
odisseus wrote: 05 Feb 2020 19:32 On many multiplayer servers, it is forbidden to transport secondary cargo from industries that are supplied by another player. This act is usually called "cargo stealing".
This is an arbitrary rule on a server. It's not part of the game mechanics in itself.
odisseus wrote: 05 Feb 2020 19:32 It would be nice if the AI could be configured to respect that rule.
Is such a rule a part of the settings (at least for the current game; I never saw such a setting)? If not, how should the AI know about the rule?

Tschö, Auge
User avatar
odisseus
Director
Director
Posts: 552
Joined: 01 Nov 2017 21:19

Re: AIAI

Post by odisseus »

The game does not limit the players, whether human or AI, in their choice of which industries to service (unless some game scripts are enabled). However, on many servers transporting others' secondary cargo can result in a ban.

The AI, of course, has no way of detecting whether this rule is in force. However, it could provide its own configuration setting and modify its behaviour based on that setting.
Moiji11
Engineer
Engineer
Posts: 1
Joined: 06 May 2020 21:23

Re: AIAI

Post by Moiji11 »

hello i am reporting stupid activity on http://epicport.com/en/ttd it is taking over my space in the game please pix that ?( :bow: X( :evil:
Auge
Director
Director
Posts: 632
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: AIAI

Post by Auge »

Hello
Moiji11 wrote: 06 May 2020 21:35 i am reporting stupid activity on http://epicport.com/en/ttd
What do you mean with "stupid activity"? Is the linked website broken? Did someone take over the account under the browser version was made public on the site?
Moiji11 wrote: 06 May 2020 21:35 it is taking over my space in the game please pix that ?( :bow: X( :evil:
What do you mean with "my space in the game"? What is your space? Who is "it"?

Tschö, Auge
unbeatable_101
Engineer
Engineer
Posts: 11
Joined: 07 May 2021 16:55

Crashing

Post by unbeatable_101 »

Screen Shot 2021-05-11 at 11.31.51.png
(1.69 MiB) Not downloaded yet
Auge
Director
Director
Posts: 632
Joined: 23 Oct 2006 02:07
Location: Berlin

Re: Crashing

Post by Auge »

Hello
unbeatable_101 wrote: 11 May 2021 15:32 Screen Shot 2021-05-11 at 11.31.51.png
I would not expect any reaction from the author. The Github repository of the project is archived and the latest commit happened in September 2016. On the other side, AIAI is licensed under the terms of GPL2 and everyone is free to take the code for further development.

Tschö, Auge
Dakkus
Engineer
Engineer
Posts: 27
Joined: 07 Mar 2004 10:34
Skype: daccus
Location: Berlin, DE, EU
Contact:

AIAI suicide

Post by Dakkus »

So, I was asked to report weird behaviour. I'm not running vanilla openttd, but jgrpp-0.43.0, so maybe this report is irrelevant. But, to my untrained eye it seems like something that might not be affected by using a patch, so I'll report it anyway.

So, the bot has built its depot so that the way to its main stop is blocked. This is counterproductive. To the extent that the company went bankrupt. The screenshot explains it well enough.
The scenario I'm playing was made by creating a map from a heightmap, choosing nice newgrfs, saving, renaming the save file to .scn, adding a bunch of cities and roads, saving the scenario and choosing 'play scenario' in the opening menu of OpenTTD. No newgrfs were added during the game.

The file content_download.tgz does not include the directory 'baseset', because the attachments have a size limit.
Attachments
content_download.tgz
(15.29 MiB) Downloaded 102 times
Tervaharju Transport, 1891-04-01.sav
(8.86 MiB) Downloaded 96 times
AIAIbugi.png
AIAIbugi.png (426.06 KiB) Viewed 5264 times
Where have my euro notes travelled? *click* http://eurobilltracker.eu/
Hmm..?! From Portugal to Finland?
See it for yourself!
User avatar
Maddog45353
Engineer
Engineer
Posts: 112
Joined: 26 Jun 2013 09:00

Re: AIAI

Post by Maddog45353 »

AIAI unsupported to either iron horse 2 or North American Industry Set.
openttd error1.png
(433.08 KiB) Not downloaded yet
LoneBlackWolf
xarick
Transport Coordinator
Transport Coordinator
Posts: 335
Joined: 26 Feb 2015 00:52

Re: AIAI

Post by xarick »

Got a crash.
Attachments
Unnamed, 1936-12-23.png
(93.56 KiB) Not downloaded yet
Formerly known as Samu
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 4 guests