Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

80 ratings
AI ECO+ - AI Economy Improvements
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
144.938 KB
6 Sep, 2024 @ 7:52pm
3 Jun @ 10:47pm
5 Change Notes ( view )

Subscribe to download
AI ECO+ - AI Economy Improvements

Description
After some observation I've realized that the Gladius AI has some extreme deficiencies in how it manages cities:
1. It can't 'see' the loyalty bonus it has from difficulty. This is why it spams loyalty buildings and never rapidly expands despite having +100 loyalty on every city.
2. It doesn't end up building enough economic buildings at any point in the game, and it often just spams production buildings forever.
3. Instead of building research early it builds it at random points in the game, and it often heavily overbuilds it in the late game.

This mod is my attempt to rectify these problems in a way that's fun for people to engage with. Here is what the mod actually does and my rationale for the changes. Keep in mind that my tools are extremely limited, especially since I attempted to keep this mod compatible with every other mod that doesn't touch the AI's building priorities.

1. I've added a ~+10 loyalty bonus to the headquarters of most AI factions.

This change makes them expand early and often because this is loyalty the AI can 'see' since it comes from a city. Each AI ends up with 3 or 4 cities within 50 turns instead of basically capping out at 2. They will have significantly more stuff at any given difficulty even when the total loyalty cheats are lower than before; AI ECO+ Ultra Hard Necrons can beat base Impossible Astra Militarum.

2. The AI will now spam both production and economy buildings when it's done expanding (turn ~45). You can see what this looks like in the picture above, which is two Ultrahard AI going at it.

This section has a bit of depth required to explain it. First, Gladius' AI is a black box that we basically can't actually interact with. This is why very few 'AI improvement' mods exist. Our only mechanism for interacting with the AI is changing how it sees certain buildings and units. For example, the loyalty building appears as 'loyalty building' and it will build that during a loyalty shortage. One of the highest priority actions is 'stop a shortage'. It is basically impossible to stop it from building ore when it's negative as the Necrons, for example. This is the core mechanism my AI improvements exploit.

Mechanically, I made the AI think that the game's loyalty buildings are actually simultaneously production buildings and economic buildings instead of the actual loyalty building. The idea here is that once the AI is done expanding (it has burned through the initial loyalty on the HQ) it will think it's in a loyalty shortage and alternate between spamming eco + production as hard as possible with bouts of trying to fix all the other shortages it has going on.

On lower difficulties its late game potential is throttled significantly. On and above Very Hard it will basically be at full mechanical effectiveness unless the game goes extremely long.

3. The AI can no longer build research buildings nor influence buildings unless the faction requires it (Tyranids, etc).
Instead, every headquarters has an additional +6 science baked into it (+18 for Space Marines).

Combined with the Headquarters spam, this means that the AI wastes significantly less production while giving it a smoother research curve throughout the game that more closely match the research-heavy openings people use into the AI. It'll still make heroes and have some influence to use abilities just from having multiple headquarters.

Misc notes:
- The Tau AI is still extremely inconsistent and janky and can't hold a candle to the others. I recommend playing vs other factions or cranking up the difficulty to shore up its weaknesses while I figure out what I'm going to do here.
- Just like the base game, the AI can play some factions better than others.
- Some factions with simple lategame plans have a skew to certain kinds of production: Astra Militarum will end up going heavily into vehicles, etc.
- I have not touched the AI's poor unit choice because people have already made mods for that.

Rarely their early expansion can bug out and make their start slower than usual, this is mostly seen with Necrons because they've got extremely strange settler pathfinding I can't do anything about. This mod SHOULD be compatible with basically everything unless it touches the AI's building priorities. I however don't use any mods and haven't tested this at all.

Lastly, huge shout out to Gladius-modding channel on the Proxy Studios Discord and Vaeki in particular for the significant help they've offered. Enjoy!
39 Comments
AKaI996 20 Jun @ 2:26am 
@Vaeki
You are amazing, this MOD is useful! (GOOGLE translation)
AKaI996 20 Jun @ 2:21am 
@Darko M Thank you for responding to me,Overall your MOD is very useful :D
(Google Translate)
Darko M  [author] 19 Jun @ 11:43pm 
@AKal996
我不確定我該如何解決這個問題。很抱歉,但我認為你不能對陣Tau。

(翻譯軟體)
Vaeki 19 Jun @ 8:31am 
AKaI996 - the Tau influence bug is real even without Eco+. In the Worthy Tau, I add some conditions to reduce this over-spending.
AKaI996 17 Jun @ 11:55pm 
重大bug,Tau會無意義的消耗影響力,而這個mod禁止了建造生產影響力的建築,或者在高花費或者高消耗的地圖條件且一些ai過度製造英雄的情況下,只要ai沒有快速建造出第二座城市將會陷入負影響力的死局,連第二座城市都建造不出來。
Darko M  [author] 3 Jun @ 10:49pm 
@KKaikorea
It should be updated now. Sorry again for the delay!
KKaikorea 29 May @ 9:21pm 
@Darko M. No worries :) I will wait for your work.
Darko M  [author] 29 May @ 2:10pm 
@KKaikorea. Sorry for the delay in seeing this. Yeah, I'll get that fixed for you after work today.

Sorry, I haven't been on steam much!
KKaikorea 23 May @ 5:39am 
Hello! Darko M. Can you please check? SLITHERINE just released just released Onslaught DLC. Which add new units for many of the factions but I found bug with your mod. I can't build units from this dlc when your mod is active. It's a bit strange because your mod doesn't change units but I tested it with other mods and didn't found any problem.
Verkava 21 Feb @ 3:39am 
Dis-able producing transport aircraft for IG =valkyrie, Mechanicus, Necrons. And some other? Those have other second or third better choice fliers to replace the worst starting aircraft they have.

If you want to make enemy end-game even better, dis-able low-tier 1-4 transport production off from AI. Like Chaos Rhino, SM Rhino?, Eldar tier 4, IG Chimera, Mechanicus tier 2 and some others. AI spams them even in end-game when they are obsolite. Or making this as own separate compatible mod.

I do miss the enemy attack planes. But this mod AI smartness boost is noticeable.