Which AIs can handle £2B loan tested!

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: 337
Joined: 26 Feb 2015 00:52

Which AIs can handle £2B loan tested!

Post by xarick »

I just finished doing a quick test on the non-eye candy AIs, about their ability to survive £2,000,000,000 loan. I decided to test this, because at first glance, it doesn't sound obvious why would this be a problem.

The problem comes from the fact that many AIs just loan the max amount possible and expect to survive the loan interest. This was mostly true when the max loan was only £500K, but with the new max amount, the interest cost is about £3,333,333 per month, or £40,000,000 per year, which is troublesome.

Some other AIs peak to the max loan and then pay back all they can. While this can work for AIs that are good at making profits, it can cast doom to others. You see, if at the last day of a month an AI happens to have loaned £2B, it will incur in that £3,333,333 cost the next day.

And then, there are AIs that don't max loan at all, and only loan the needed money. For these, their loans can go to as high as £15M or £20M, which albeit high, the interest is still manageable if the AI is profiting well. A few ones, however, end up loaning all the time, and it can reach £100M, £200M, slowly snowballing into an unmanageable interest as they end up needing more and more loan when profits can't keep up.

Here's a list of AIs I tested. Map size was 1024x1024, Hard Difficulty preset, 250K max ops, 2% interest rate, running costs low, construction costs low, infrastructure maintenance disabled, inflation off and a bunch of other settings that I don't think would matter much.

AIs that can handle £2B loan
- AdmiralAI
- BorkAI
- Chopper
- EmotionAI
- Grinchios
- LuDiAI AfterFix
- MailAI
- MogulAI
- MpAI
- Mungo
- NoNoCAB
- OtviAI
- PathZilla (bankrupts, but not due to loan)
- RoadAI (doesn't build, bankrupts anyway)
- Rythorn Airline AI
- SimpleAI
- SmallTownAI
- SnakeAI
- SuperSimpleAI
- SynTrans (bankrupts, but not due to loan)
- TracAI
- trAIns
- TramAI
- WmDOT
- WormAI
- WrightAI


AIs that can't handle £2B loan
- AIAI (bankrupt, loans £2B but repays in small £10k loan steps)
- AroAI (bankrupt, loans £2B and doesn't pay back)
- ChooChoo (bankrupt, loans £2B and doesn't pay back)
- CivilAI (bankrupt, loans £2B and doesn't pay back)
- CluelessPlus (bankrupt, most of the time in £2B or high £1.6B)
- CoronaAI (bankrupt, loans £2B and doesn't pay back)
- Convoy (bankrupt, loans £2B and doesn't pay back)
- Denver & Rio Grande (spikes to £2B and back)
- Dictator AI (very rare spikes to £2B, positive profit overall)
- DumbAI (bankrupt, most of the time in £2B while pathfinding)
- EpicTrans (bankrupt, loans £2B and doesn't pay back)
- FastPTPAI (bankrupt, rare spikes to £2B, negative profit overall)
- gelignAIte (a very rare £2B loan at the end of the month, negative profit overall)
- HeliFerry (bankrupt, loans £2B and doesn't pay back)
- KrakenAI (bankrupt, loans £2B and doesn't pay back)
- LuDiAI (bankrupt, loans £2B but repays in small £10k loan steps)
- NoCAB (bankrupt, loans £2B but repays in small £10k loan steps)
- NotPerfectAI (loans £2B and back, positive profit overall)
- PAXLink (bankrupt, loans £2B and doesn't pay back)
- RailwAI (bankrupt, loans £2B but repays in small £10k loan steps)
- RoadRunner (Keeps a £300M loan, but still negative profit)
- rocketAI (loans £2B and back)
- Rondje (loans £2B and back constantly)
- ShipAI (bankrupt, loans £2B and doesn't pay back)
- Terron (loans £2B occasionally and pays back, positive profit overall)
- TeshiNet (bankrupt, loans £2B and doesn't pay back)
- Trans (bankrupt, loans £2B and back)


AIs that don't bother with loan
- CPU
Formerly known as Samu
User avatar
RailwAI
Engineer
Engineer
Posts: 75
Joined: 22 Jul 2018 20:30
Location: Headquarters

Re: Which AIs can handle £2B loan tested!

Post by RailwAI »

Why would one care about profitability if 2 billion can be borrowed from the bank? :P
Interesting test and good to know that the maximum loan can be set much higher now. Time for me to do some improvements here with the next update of RailwAI.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 7 guests