I have a challenge for any AI maker

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

Post Reply
xarick
Transport Coordinator
Transport Coordinator
Posts: 283
Joined: 26 Feb 2015 00:52

I have a challenge for any AI maker

Post by xarick »

<Samu> I have a challenge for any AI maker! Make your AI profitable unbankrouptable with aircraft
- and infrastructure maintenance costs enabled
- running and construction costs set to high
- breakdowns reduced
- airplane crashes normal
- loan can be £500k
- inflation off, because inflation is just bad
- starting year 1950 and must build air routes in the starting year
- ending year 2050
- airports and vehicles expire
- no other transport type, only aircraft, any kind of aircraft
- no station spreading
- use default plane speed factor, 1/4
EDIT:
Settings with value different that default:
screenshot#1.png
screenshot#1.png (41.7 KiB) Viewed 1117 times
World generation settings:
screenshot#2.png
screenshot#2.png (79.02 KiB) Viewed 1117 times
EDIT 2:
Or just use this config:
openttd.cfg
(10.92 KiB) Downloaded 24 times
Formerly known as Samu

User avatar
odisseus
Engineer
Engineer
Posts: 99
Joined: 01 Nov 2017 21:19

Re: I have a challenge for any AI maker

Post by odisseus »

I believe that's impossible for a human player, let alone an AI.

The three aircraft models that are available before year 1955 are just too small and too slow. It is very hard to run them at a profit even without maintenance costs.

The player could repay the loan and wait till FFP Dart becomes available, but the real problems are yet to begin.

In order for the city airport to stand a chance of being profitable, it must be surrounded by buildings that generate a lot of passengers. This can happen only when a town with at least 4000-5000 population has an airport-sized gap in the middle. Such towns get generated, but not too often.

Now, the player would need to find not one, but two such towns at exactly the right distance. The two airports must be as far apart as possible in order to maximize profit per trip, yet close enough so that the company doesn't go bankrupt before the first plane arrives. After the airports are placed, the player should immediately buy as many FFP Darts as possible, because that would be his last chance to buy anything.

If the player manages to achieve all this and buy at least 7-10 planes, then I'd say the company has a chance to survive, but that's still not certain.

In short, this is impossible except under the most favourable conditions, and even then probably impossible as well.

perverted monkey
Engineer
Engineer
Posts: 46
Joined: 02 Mar 2009 02:07

Re: I have a challenge for any AI maker

Post by perverted monkey »

Indeed, only Darts may have a chance.
1/4 speed factor is out of question. No way.

LaChupacabra
Engineer
Engineer
Posts: 39
Joined: 08 Nov 2019 23:54

Re: I have a challenge for any AI maker

Post by LaChupacabra »

odisseus wrote:
24 Mar 2020 02:58
I believe that's impossible for a human player, let alone an AI.
...
In short, this is impossible except under the most favourable conditions, and even then probably impossible as well.
Have you checked?

You dramatize :wink: It realy doesn't take a lot here for a company to generate profits.
For the average player this is banal. Unfortunately, AI are currently hopeless in air transport, mainly because they do not take into account the cost of maintance and are building airports like crazy in every cities. Some AI are even trying to build airports on every... field. Typical of almost all AI is that they usually have more airports than planes.

In my opinion, this "challenge" is not pointless or faulty.
I am sorry for may English. I know is bed.

User avatar
jfs
Tycoon
Tycoon
Posts: 1103
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: I have a challenge for any AI maker

Post by jfs »

LaChupacabra wrote:
24 Mar 2020 22:57
Have you checked?

You dramatize :wink: It realy doesn't take a lot here for a company to generate profits.
For the average player this is banal. Unfortunately, AI are currently hopeless in air transport, mainly because they do not take into account the cost of maintance and are building airports like crazy in every cities. Some AI are even trying to build airports on every... field. Typical of almost all AI is that they usually have more airports than planes.

In my opinion, this "challenge" is not pointless or faulty.
If you claim it's so easy then prove it. Write an AI that takes those additional factors into account and can reliably turn a profit under the conditions outlined in the first post.

User avatar
RailwAI
Engineer
Engineer
Posts: 40
Joined: 22 Jul 2018 20:30
Location: Headquarters

Re: I have a challenge for any AI maker

Post by RailwAI »

odisseus wrote:
24 Mar 2020 02:58
I believe that's impossible for a human player, let alone an AI.
I saw the challenge and did two attempts myself (as human). First time I succeeded and gained money. The second time was worse, as I wanted to see what happened when I would make bad choices. Currently I have other topics higher on my list for AI development than supporting aircraft, but it's definitely worth a try.

_dp_
Traffic Manager
Traffic Manager
Posts: 149
Joined: 18 Dec 2013 12:32

Re: I have a challenge for any AI maker

Post by _dp_ »

Tried it for a bit and for human it's not that hard to stay afloat. Can't be bothered to code it but shouldn't be that hard either IMO. May not be very useful for a general AI though.
Image

Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 3 guests