Long time reader here, just managed to finally get my account activated. I've been playing TTD since it came out and when OpenTTD first appeared I was pleased to see some progression in my favourite game.
As the game no longer has an intrinsic AI however, I often find my games are a bit... one-sided.
To be fair, I have installed AdmiralAI and found it's very good at developing its bottom line, but I wouldn't say that it competes directly with you.
So I took the brave step of branching into AI development last weekend. I'm quite good at C, so writing Squirrel doesn't represent a challenge, learning the concepts however takes more time.
At this point, I have an AI that:-
- Upon startup, scans for the most populous town above 500 and designates it "home", setting its name to <town> + " Transport".
- Attempts to build a HQ there that satisfies some rules (flat land, adjacent to a road that is within the local authority's influence).
My main motivation for this is that I find that most AIs build terrible roads and railways, not taking the lie of the land into account.
It also highlights to human players how they are not exploiting their own infrastructure properly.
I think that I need to get a list of all industries, and each tick scan for one falling within range of a road and building a lorry station there.
However, I have a couple of Q's:-
- Is there away for an AI to cleanly "abort" itself if it doesn't think that it'll be much good on a particular map? (I would like my AI to refuse to start at a time when there are no towns above 500 pop.)
- If more than one instance of my AI is generated in game, its company usually takes on the name of the manager, for some reason. Why?
- Is there a standard company name generator available? I'm honestly not bothered what it calls itself, only how it plays.