Ships AI Competition

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

Ships AI Competition

Post by xarick »

For this test, I had to configure some settings to avoid many issues. Some AIs do badly with rivers, so I turned off rivers for everyone. Towns expanding roads, bridges and houses near the water were causing ships becoming stuck on narrow passages that suddenly were closed, so I forbid towns from growing and building roads. Initially I was only going to test with only one pathfinder, but I soon realised that there were some AIs that weren't behaving too well. I ended up testing each AI 3 times, with each pathfinder - Original (O), NPF (N) and YAPF (Y).

7 ship AIs were tested, 3 times each.

Parameters and AIs who reached 2051:
[+] Spoiler

Code: Select all

(O) (v183) DictatorAI = PresidentName=0,allow_scp=0,fairlevel=2,keep_road=1,start_date=1,use_air=0,use_road=0,use_train=0                      - finished
(N) (v183) DictatorAI = PresidentName=0,allow_scp=0,fairlevel=2,keep_road=1,start_date=1,use_air=0,use_road=0,use_train=0                      - finished
(Y) (v183) DictatorAI = PresidentName=0,allow_scp=0,fairlevel=2,keep_road=1,start_date=1,use_air=0,use_road=0,use_train=0                      - finished
(O) (v499)      NoCAB = Enable airplanes=0,Enable road vehicles=0,Enable trains=0,Politics Setting=3,start_date=1                              - finished
(N) (v499)      NoCAB = Enable airplanes=0,Enable road vehicles=0,Enable trains=0,Politics Setting=3,start_date=1                              - finished
(Y) (v499)      NoCAB = Enable airplanes=0,Enable road vehicles=0,Enable trains=0,Politics Setting=3,start_date=1                              - finished
(O) (v3)      NoNoCAB = Enable airplanes=0,Enable road vehicles=0,Enable trains=0,Politics Setting=3,start_date=1                              - finished
(N) (v3)      NoNoCAB = Enable airplanes=0,Enable road vehicles=0,Enable trains=0,Politics Setting=3,start_date=1                              - finished
(Y) (v3)      NoNoCAB = Enable airplanes=0,Enable road vehicles=0,Enable trains=0,Politics Setting=3,start_date=1                              - finished
(O) (v418)     OtviAI = start_date=1                                                                                                           - finished
(N) (v418)     OtviAI = start_date=1                                                                                                           - finished
(Y) (v418)     OtviAI = start_date=1                                                                                                           - finished
(O) (v209)     Terron = BusModule=0,PlaneModule=0,TruckModule=0,fund_town_buildings=1,max_water_route_length=400,start_date=1,use_slow_ships=1 - finished
(N) (v209)     Terron = BusModule=0,PlaneModule=0,TruckModule=0,fund_town_buildings=1,max_water_route_length=400,start_date=1,use_slow_ships=1 - finished
(Y) (v209)     Terron = BusModule=0,PlaneModule=0,TruckModule=0,fund_town_buildings=1,max_water_route_length=400,start_date=1,use_slow_ships=1 - finished
(O) (v130722)   Trans = Air Vehicle=0,Rail Vehicle=0,Road Vehicle=0,allow_pax=1,start_date=182                                                 - bankrupted
(N) (v130722)   Trans = Air Vehicle=0,Rail Vehicle=0,Road Vehicle=0,allow_pax=1,start_date=182                                                 - bankrupted
(Y) (v130722)   Trans = Air Vehicle=0,Rail Vehicle=0,Road Vehicle=0,allow_pax=1,start_date=182                                                 - finished
(O) (v13)       WmDOT = Freeways=0,OpDOT=0,OpDOT_MinTownSize=50,OpDOT_RebuildAttempts=1,start_date=1                                           - bankrupted
(N) (v13)       WmDOT = Freeways=0,OpDOT=0,OpDOT_MinTownSize=50,OpDOT_RebuildAttempts=1,start_date=1                                           - finished
(Y) (v13)       WmDOT = Freeways=0,OpDOT=0,OpDOT_MinTownSize=50,OpDOT_RebuildAttempts=1,start_date=1                                           - finished
(O) (v14)       WmDOT = Freeways=0,OpDOT=0,OpDOT_MinTownSize=50,OpDOT_RebuildAttempts=1,start_date=1                                           - bankrupted
(N) (v14)       WmDOT = Freeways=0,OpDOT=0,OpDOT_MinTownSize=50,OpDOT_RebuildAttempts=1,start_date=1                                           - finished
(Y) (v14)       WmDOT = Freeways=0,OpDOT=0,OpDOT_MinTownSize=50,OpDOT_RebuildAttempts=1,start_date=1                                           - finished
None has crashed!

Those that bankrupted:
(O, N) Trans v130722 - The problem in both was that Trans is duplicating ships on the same route, but on that route the ships end up becoming lost, but Trans insists on adding more and more ships to the point the profits become negative, until there's no more money to duplicate anymore and then it's just a matter of time it bankrupts.
(O) WmDOT v13 - It has a few issues, it duplicates ships on profitable routes, however, it uses ship depots that are located too far away from the route the ships are going to. It also duplicated ships that were not able to unload at the Oil Refinery because there were Oil Wells right beside the Oil Refinery, which made the ships to load the Oil from the dock they were supposed to deliver.
(O) WmDOT v14 - It duplicates ships on profitable routes, however, it uses ship depots that are located too far away from the route the ships are going to. The other issue of v13 has been dealt with, however.

These AIs took too long to save, I still tested them without saving, except for the last day, 1st Jan 2051:
(O) Trans v130722 - it bankrupted before 2051
(N) Trans v130722 - it bankrupted before 2051
(O) NoCAB v499
(N) NoCAB v499
(Y) NoCAB v499

Code: Select all

P; AI name  (version);  company value;     profit shs %;    served sts  %;   profit ly sh;    avg/best sh    %; pieces cl; eff cl;

O; DictatorAI  (v183);   £376,652,439;   380/  538  71%;   137/  179  77%;   +£6,772,316; £12,588/£44,695  28%;       448; 15,117;
N; DictatorAI  (v183);   £597,528,875;   554/  641  86%;   169/  198  85%;   +£9,758,956; £15,225/£43,895  35%;       536; 18,207;
Y; DictatorAI  (v183);   £577,878,530;   516/  577  89%;   164/  190  86%;   +£9,333,967; £16,177/£64,216  25%;       516; 18,089;
O; NoCAB       (v499); £1,443,345,740; 1,399/4,999  28%;   688/1,837  37%;  +£18,316,038;  £3,664/£60,124   6%;     6,584;  2,782;
N; NoCAB       (v499); £1,738,301,955; 1,467/5,000  29%;   820/2,001  41%;  +£21,945,588;  £4,389/£57,103   8%;     6,736;  3,258;
Y; NoCAB       (v499); £1,792,407,807; 1,883/4,991  38%; 1,035/2,058  50%;  +£35,554,350;  £7,124/£64,063  11%;     6,640;  5,355;
O; NoNoCAB       (v3); £5,584,439,883; 4,885/5,000  98%; 1,653/2,013  82%;  +£94,885,371; £18,977/£63,609  30%;     5,096; 18,620;
N; NoNoCAB       (v3); £6,267,783,006; 4,886/4,999  98%; 1,607/1,980  84%; +£106,947,323; £21,394/£59,129  36%;     4,880; 21,915;
Y; NoNoCAB       (v3); £6,111,416,320; 4,962/5,000  99%; 1,638/2,015  81%; +£102,383,028; £20,477/£61,999  33%;     5,076; 20,170;
O; OtviAI      (v418);   £334,198,852;   369/  398  93%;   286/  502  57%;   +£4,866,867; £12,228/£50,611  24%;    28,004;    174;
N; OtviAI      (v418);   £875,142,494;   992/1,060  94%;   502/1,106  45%;  +£12,548,150; £11,838/£61,119  19%;    10,756;  1,167;
Y; OtviAI      (v418);   £537,221,795;   557/  562  99%;   387/  695  56%;   +£7,380,162; £13,132/£50,850  26%;    29,740;    248;
O; Terron      (v209);   £301,574,736;   154/  186  83%;    55/   74  74%;   +£4,704,334; £25,292/£54,449  46%;       296; 15,893;
N; Terron      (v209);   £453,063,594;   156/  182  86%;    59/   70  84%;   +£6,263,489; £34,415/£60,253  57%;       280; 22,370;
Y; Terron      (v209);   £319,197,641;   126/  145  87%;    50/   62  81%;   +£4,428,035; £30,538/£64,668  47%;       244; 18,148;
Y; Trans    (v130722);   £118,380,131;   538/  614  88%;   142/  146  97%;   +£3,244,718;  £5,285/£39,865  13%;       556;  5,836;
N; WmDOT        (v13);    £31,263,894;    43/   47  91%;    11/   32  34%;     +£797,189; £16,961/£37,149  46%;       120;  6,643;
Y; WmDOT        (v13);     £6,360,312;    32/  187  17%;     7/   34  21%;     +£298,635;  £1,597/£57,799   3%;       124;  2,408;
N; WmDOT        (v14);     £1,648,799;    12/  132   9%;     4/   29  14%;      +£80,907;    £613/£43,624   1%;       228;    355;
Y; WmDOT        (v14);    £23,406,856;    20/   20 100%;     3/   22  14%;     +£325,849; £16,292/£35,574  46%;       148;  2,202;
EDIT: Added WmDOT v14, updated savegames, updated score presentation, updated parameter presentation
Attachments
Ships AI Competition Configs.tar
Typical server configuration for Original, NPF and YAPF pathfinders
(38.5 KiB) Downloaded 182 times
Ships AI Competition Part 1.zip
Savegames for DictatorAI v183, NoCAB v499, NoNoCAB v3, OtviAI v418, Terron v209
(24.32 MiB) Downloaded 224 times
Ships AI Competition Part 2.zip
Savegames for Trans v130722, WmDOT v13, WmDOT v14
(5.65 MiB) Downloaded 140 times
Last edited by xarick on 10 Oct 2016 00:14, edited 5 times in total.
Formerly known as Samu
Brumi
President
President
Posts: 920
Joined: 18 Jul 2009 17:54

Re: Ships AI Competition

Post by Brumi »

Haven't even realized it yet that there are 7 ship AIs available. Such a rare feature to have for AIs :)
Wormnest
Engineer
Engineer
Posts: 117
Joined: 14 Jul 2013 12:33
Location: Netherlands

Re: Ships AI Competition

Post by Wormnest »

I'm glad to see that NoNoCAB does pretty well with ships now.
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 16 guests