Page 1 of 1

Some problems with AI on 2048x2048

Posted: 09 Oct 2011 20:14
by head cat
first thumbs up for openttd, it´s really looking incredible, I ve played TTD back in the days and this is far superior . it takes it to a whole new level. congratulations to everyone involved.

now let´s get to what brought me here ... I´m just starting a game on 2048x2048 and choosed differents AI oponents ... the year is 1961
1 DictatorAI
2 Trans AI
3 StreetTraffic
4 Dictator AI
5 ChooChoo
6 StreetTraffice
7 Trans
8 RoadRunner

the first ...Dictator AI the one that first started on 1952, it´s sits there and do nothing it looks as it is censing towns and factories
debug shows

Code: Select all

Saving game... 0 routes, stations
840/4911
852/4911
864/4911
888/4911
and so on
It appears that the AI has been counting or censing for almost ten years
same goes for the other dictatorAI (4th AI)... Is this normal maybe the density of the population in the 2048x2048 map is too big for this AI?? maybe this AI is not meant to play on 2048x2048??


The second AI and the seventh (Trans AI) work perfectly ok

third and sixth StreetTraffic just builds up randomly it could rally lots of stations, rails, road in a day and then stall for months debug shows

Code: Select all

There is currently no vehicle that the AI is allowed to build
failed to buy vehicles.
Building cars failed aborting. 
(maybe I´m missing some GRF??

Choo Choo is working perfectly ok

the last one Roadrunner is the one that crashed last three lines debug:

Code: Select all

RoadRunner is on the road
My home town is Fentfield
Looking for potential COAL services
This AI took tooo long to Save
any help will be appreciated
thanks in advance

Re: Some problems with AI on 2048x2048

Posted: 09 Oct 2011 20:29
by planetmaker
head cat wrote:first thumbs up for openttd, it´s really looking incredible, I ve played TTD back in the days and this is far superior . it takes it to a whole new level. congratulations to everyone involved.

now let´s get to what brought me here ... I´m just starting a game on 2048x2048 and choosed differents AI oponents ...
thanks in advance
Different AIs are maintained by different people and partially they're tailored also for different playing style
I'd say report the problems with DictatorAI and RoadRunner to the respective AI's thread in the NoAI subforum, best with your savegame attached so that it's easily reproduced by the author. StreetTraffic AI is taylored to be used with very cheap cars (GenericCars or similar) and only meant to simulate traffic in towns without ever making profit.

And don't forget to post a thumbs-up message in the threads of the AIs which you're particularily content with. :-) It will motivate people to continue development and make them even better :-)

Re: Some problems with AI on 2048x2048

Posted: 09 Oct 2011 21:05
by Kogut
Shameless advertisement: from AIAI code

Code: Select all

(...)
root_tile = RandomTile();
(...)

function AIAI::GetIndustryList()
{
local list = AIIndustryList();
list.Valuate(AIIndustry.GetDistanceManhattanToTile, root_tile);
list.KeepBottom(200);
return list;
}

function AIAI::GetIndustryList_CargoAccepting(cargo)
{
local list = AIIndustryList_CargoAccepting(cargo);
list.Valuate(AIIndustry.GetDistanceManhattanToTile, root_tile);
list.KeepBottom(200);
return list;
}

function AIAI::GetIndustryList_CargoProducing(cargo)
{
local list = AIIndustryList_CargoProducing(cargo);
list.Valuate(AIIndustry.GetDistanceManhattanToTile, root_tile);
list.KeepBottom(200);
return list;
}

Re: Some problems with AI on 2048x2048

Posted: 09 Oct 2011 23:37
by head cat
:D dictator ai did started in 1971 or so .
Different AIs are maintained by different people and partially they're tailored also for different playing style
I see now hehe :twisted: Now I need to catch up with Trans that is beaten the hell of me by 20 millions

I´ll check the forums for more AI info..
thnxs