Modding the AI

Apologies if this is obvious with the game installed, but I'm at work...

I'm most interested in messing with the AI. Nothing I've seen online says it's possible for users to directly mod the AI, but there's heaps of developer tweakage and Metaverse "evolved" AI trading.

Can we mod AI?

---

(I want to add - I know, it's embarassing to use scripts, but... - a simple script for the AI to detect that it's blockaded. If there's an enemy fleet of X firepower within Y distance, stop building suicidal non-combatants over and over. Well ok, maybe try one or two to see if they get out if that's what the build priorities want, but stop after a failure or two and make some combat ships.

Blockading the AI is easier than it should be, especially when their tech and economy is better than the player's but they've lost to a bit of a rush. A human would realise that they could whittle the blockade down by building damaging ships. The AI seems to get stuck on its normal build priorities which leaves it building constructors or troopships over and over while my paltry survivors from the earlier fleet battles can sit and blockade forever.

So check for blockade: no friendly ships in orbit, damaging enemy close by, last ship to be built got slaughtered. If blockaded, try ship design X (tending to try whatever has the current highest success rate, which'll probably be a big bruiser, but also giving a chance to a small/cheap/all-weapon design, and a chance for a new design as per whatever the present system is). Did it do damage? Yes: build more. No: try something else. If there are non-blockaded planets in empire, cease production at the blockaded port if a couple of builds there fail, until the blockade is lifted. If everything is blockaded, go for broke).
6,618 views 7 replies
Reply #1 Top
I don't think AI modding is going to make it into the game. From my understanding of things, each AI is its own class running in its own thread.
Reply #2 Top
Play higher difficulties, have you beaten the most extreme level? You're wanting to mod the AI and you probably haven't even touched on most of the AI's in the game yet.
Reply #3 Top
What I'd like to know, is it possible to swap the AI's with respect to the races. If I edit the Yor into a different race am I still stuck with the default Yor AI?

Reply #4 Top
The AI is internal to the game code and there is no interface for adding external DLLs, so the AI cannot be modded by end-users.
Reply #5 Top
Well damn. I hope they add the option later. I don't care if I can edit the actual AI, but a drop down menu that lets me choose or an XML tag I can set to pick one of the default AI's would be nice.
Reply #6 Top
If you wanna mod AI you could check out Dawn of War... but thats an RTS - dont know if thats your thing.
The AI there is written in Lua.
Anyway, just thought you might wanted to know.
Reply #7 Top
Just messing around with random things in the scenaro files.

[MORALITY]
Human=3
Drengin=0
Altarian=4
..
etc etc


What does this do exactly? At first I thought it was for alignment, but all the scenarios have the same values. Even Mirror Universe which is suspose to have the Drengin as "good" still has them listed as "0" here.