CivilAI version 16 is now on Banananananas, released June 24 2018. OpenTTD 1.6.0 or later is required.

v7 was a major update, and adds trucks and trains to the AI's repertoire, as well as tidying up a lot of its earlier behaviour. It should now be considered a "normal" competitive AI rather than a specialist oddity, although hopefully it's kept its general "civility" and pleasant construction style. Discussion of the latest version starts here.

An AI which builds a road network and fills it with buses and town cars.

CivilAI is my first AI, and one I've been meaning to make for a while. It builds an inter-city road network and entraffics it with buses and, if available, town cars (which it defines as "vehicles with 0 running cost and a capacity of less than 10"). It's non-competitive in that it will avoid building a bus network in towns which already have good passenger service, but it does usually manage to sustain itself. Give it a go, see how it does! And if you look at the code, don't laugh too hard; I was learning as I went.

You can download CivilAI from Bananas - the current version is version 6. It has no dependencies except the default road pathfinder, but it does enjoy a good road vehicle set and some eyecandy town cars. OpenTTD 1.4 or later is required.

It works, it connected nearby town - but instead of adding some bus service it started connecting next towns. Is it expected ("builds an inter-city road network and entraffics it with buses")?

Due to low number of RV it was unable to sustain itself in my test.

It's hard to tell without a save game or screenshot, but perhaps its initial town was too small or hilly to build its bus stops. In that case, if it manages to connect to another large town before it runs out of money, it will try building a bus network there. If not, oh well; not much it can do.

It constructed bus stops in initial town but it was not enough to survive burden of 500k initial loan used to build roads. Are you interested in save where this happens or is it something expected for this special purpose AI?

_________________Correct me If I am wrong - PM me if my English is badAIAI - AI for OpenTTD

It constructed bus stops in initial town but it was not enough to survive burden of 500k initial loan used to build roads. Are you interested in save where this happens or is it something expected for this special purpose AI?

Ah. Well, it certainly can overextend itself if it builds roads faster than it builds buses. Especially with a high initial loan and infrastructure maintenance costs turned on.

It really is a special purpose AI, so I'm not too worried about it. One thing I might do in future versions is randomise the starting location slightly, so that if it does start somewhere difficult and go bankrupt its replacement may try and start in a better place.

I tried this particular AI to use within multiplayer game (dedicated server 1.4.3, see signature), but it fails.One company slot is occupied by AI, but this company is "Unnamed" and do nothing (in multiplayer game).If saved gamestate is loaded in singleplayer mode, AI works fine.Of course Allow AIs in multiplayer is On, Disable road vehicles for computer: Off.I'm not user if this particular IS failed, or it is my mistake.I didn't tried others AIs, I just need one to build roads and use buses.

EDIT: I discovered, that ai_in_multiplayer = false is set in my server cfg - I set it true in scenario editor, probably it is ignored and taken from server cfg.I never know which setting is client/company/server/game related.

I tried this particular AI to use within multiplayer game (dedicated server 1.4.3, see signature), but it fails.One company slot is occupied by AI, but this company is "Unnamed" and do nothing (in multiplayer game).If saved gamestate is loaded in singleplayer mode, AI works fine.Of course Allow AIs in multiplayer is On, Disable road vehicles for computer: Off.I'm not user if this particular IS failed, or it is my mistake.I didn't tried others AIs, I just need one to build roads and use buses.

EDIT: I discovered, that ai_in_multiplayer = false is set in my server cfg - I set it true in scenario editor, probably it is ignored and taken from server cfg.I never know which setting is client/company/server/game related.

It's a bit tricky, but on the other hand it's not:every setting which describes the map to some extend, which every player needs in order to continue the game is found in the savegame. All settings which are related to server operation, thus server-specific are not stored in the savegame. Neither are stored those settings which are player-specific (like language, unit settings, money settings, signal density...). There are only very few company-specific things, like company colour, which actually need exchange.

I got similar error, moving library from content_download/ai/library to ai/library solved problem.

On the other hand, AI still is refusing to build anything, despite of proper settings of ai_in_multiplayer = true both for server config.cfgand scenario (server is starting with -g "scenario.scn" option).

Who is online

Users browsing this forum: Google Adsense [Bot] and 1 guest

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum