AI building problems |
Hello,
I've been running into a problem with how the AI is constructing ships. I have been editing the components and tech areas files, so I image that's where the problem is coming from, but I can't figure out why or how.
Anyway, what's happening is that the AI are not installing offensive weapons on their ships. They are installing them on things like defense platforms (so their planets fire at me), but their ships get loaded up with supply and ordnance but nothing else (except for the basic sensors, engines, etc.)
I had an earlier problem with them not installing engines. I figured out that this was because I had re-named the engine components in the components and tech areas files. I was wondering if there is some file that influenced how the AI builds, and since the names weren't matching it couldn't find the engines to install. If that is the case, perhaps the problem now is that the AI is prioritizing the ship layouts weirdly. The missiles are not modded at all, but I have changed the names of the beam weapons (and added a new one), and before modding I noticed the AI heavily favored anti-proton beams, so maybe it's trying to follow that structure, but can't find the beams to do it with.
Anyway, does this ring any bells for anyone? Or does anyone know what file influences how the AI builds?

You're compiling the wrong file.
You don't compile the design creation file itself. You only compile the Empire script files -i.e. Abbidon_Main_Script and so on. I usually compile Default_Main_Script.txt first, which is used by the player's ministers.
You can also click on "Make All Files" and load the All Races MakeFile.txt file to generate all the AI scripts at once.
-----




Scripts need to be updated...
Most of the AI design algorithm is built on the names of the components/weapons rather than the abilities. The file Script_AI_DesignCreation.txt has most of the relevant entries, but also Script_AI_GlobalSettings.txt (Engine, LS, CQ amounts, and extra componenets to add) and lastly most weapons for designs to use are stored in each of the [Empire]_Main_Script.txt files...
You could probably fix most of it by changing the names of the items in the above mentioned files to your new ones and then re-compiling the scripts and placing the compiled scripts .csf into their approriate empire folders.
-----
Space Empires Depot | Space Food Empires!