Are you, in fact, a pregnant lady who lives in the apartment next door to Superdeath's parents? - Commodore

Create an account  

 
AI resource advantages

Since I discovered this bug today : http://www.realmsbeyond.net/forums/showt...p?tid=8238 , I think it's a good time to rethink what type of resource advantage the AI needs, and how much of it.

Population growth
As of now AI receives some of this advantage but not too much, they grow 1.5 times faster on impossible than default. I believe this is good as is, and they definitely need this, since they waste quite some population on settlers and ofc the human player is more creative at killing population in cities than the AI.

Outpost growth
This was removed from the advantage tables and hardcoded to be +25% per level of difficulty. Not much to say here, the AI cities are extremely vulnerable while outposts, since the AI generally does not garrison them. The advantage is needed both to help the AI spread and to reduce the window when they are vulnerable.

Overland Casting cost discount
This one was added for the mod and works really well. It effectively allows the AI to cast more overland spells, since they lack the tactical ability to focus on one goal and use appropriate spells, instead do a little bit of everything with some weighting, an advantage is definitely needed here to be able to build scary fantastic unit armies, or use enough curses to actually hurt another player, etc. The AI casts twice as much spells on extreme than on normal, and 2.5 times on impossible.

Production multiplier
The AI builds buildings and produces units faster. Not much to say about this,it's needed, this is the main source of game difficulty afterall. It scales from 75% on easy to 250% on impossible currently.

Gold multiplier
How much gold the AI gets from their cities through taxes and whatever else. Has no effect on Noble heroes or leftover food converted into gold, but affects everything else. Uses the same values as production at the moment. If the AI's maintenance discount is fixed, this might need a major reduction.

Power multiplier
Multiplies the power from all cities and nodes. Has no effect on volcanoes (making Armageddon a pretty crappy spell for an AI wizard, except for wrecking the economy of others). Has no effect on Ritual Master hero ability because it would be difficult to squeeze that into the code and it's insignificant.
This advantage scales from 75% on easy to 300% on impossible currently.

Reseach multiplier
Multiplies all research obtained from cities. Has no effect on any other research income. Since research is a very important, game changing effect, this has been toned down to a maximal value of 130% at impossible.
The AI has more than enough research advantage from having a larger power base, this part only really matters if the AI spends all their power on producing mana due to constant fighting, in that case they have to rely on research they produce from buildings.

Food multiplier
How much extra food AI cities produce. This directly reduces the effectiveness of employing city curses against AI players, since cities will need fewer farmers to avoid starving.
At the same time it doesn't do anything meaningful aside from that. AI receives a huge discount on food maintenance, so the amount they produce is mostly irrelevant, and excess food converts poorly to gold as well.
I think this modifier should not exist - it should be set to 100% on all levels of difficulty.

Maintenance multiplier
See the link above, this one is buggy.
It reduces the maintenance cost for checks on disbanding units, so the AI can keep larger armies and more spells, however it does not reduce the actual cost subtracted from their gold and mana reserves, so even if they can keep their units, they'll be left with zero gold or mana each turn. While the latter is rare as they can raise their mana production to compensate, the former is frequent. It also reduces food maintenance but since food only matters for the disbanding of units, and does not produce an actual income (well aside from that few pieces of gold from the excess), the bug didn't affect the food part of the multiplier.
This multiplier is definitely needed, since we want the AI to be able to afford and maintain large armies - as AI players are way less efficient at moving them around and using them for any purpose than a human player is. They also need it to be able to utilize the advantage of higher production, without this they couldn't afford those extra units.
However, if I fix the bug, that'll have a major impact. Gold not lost on the maintenance, and will effectively raise the AI's income per turn, allowing them to rush buy more buildings and units. It also makes it harder to tribute gold to them, since they have more of it. But this is the small part of it. Mana not lost of maintenance not just means more mana crystals piling up, no it means the AI can reduce mana production and push their research or skill higher, both of which can have a major impact on the game. Imagine if the AI researched Armageddon 40% faster than usual due to not wasting that power on maintenance.
So if the bug is fixed, most likely all gold and power income numbers need to be lowered...and I have no idea by how much. It is already surprising the AI can operate well with only 200% gold and mana when vanilla game used 400% for the highest difficulty, and not just well but far more effectively, as current extreme - heck even hard - is more difficult than old impossible ever was.
Reply

It's not that surprising to me. The old impossible gave the enemies infinite resources but they never really tried to expand or use their armies aggressively.
Reply

It's debatable whether the AI actually needs a gold bonus at all. The only uses for gold are upkeep (AI has upkeep bonus), converting it to mana (AI has mana bonus), converting it to production (AH has production bonus), merchants (probably not a big deal), and mercenaries (heroes are nice, other mercenaries are nbd).
Reply

(June 22nd, 2016, 18:08)Anthony Wrote: It's debatable whether the AI actually needs a gold bonus at all. The only uses for gold are upkeep (AI has upkeep bonus), converting it to mana (AI has mana bonus), converting it to production (AH has production bonus), merchants (probably not a big deal), and mercenaries (heroes are nice, other mercenaries are nbd).
upkeep, mana - agreed
production - don't agree. For gold you can "produce" more of the same unit you otherwise couldn't afford. Like, buy a new paladin every turn. I guess at impossible (maybe even extreme) production bonus is high enough to just finish any unit in a turn, but hard and below gold matters. Ofc the AI isn't intelligent enough to take much advantage of it now (only has like 5 things on the "must buy" list for CoM and even less in 1.50) but that can be improved (though space is an issue).
merchants - also don't agree. expensive artifacts can turn heroes into unstoppable forces that can easily decide the game, and creating these artifacts is much less likely. Even having 3 mid tier artifacts on all heroes instead of nothing makes a big difference, especially if it lets the hero survive more battles and gain levels.
mercenaries - these are not very important in general indeed, aside from heroes (HUGE benefit if the AI doesn't need to cast Summon Hero 10+ times each game to refill their hero slots, as they will eventually die), and engineers which are cheap but roads are quite important to have - not having gold to hire an early engineer can make a difference.
also there are two more things the AI can do with their gold :
make it harder for the player to "Offer tribute" - it is silly if a player can bribe a 5 times stronger wizard with 200 gold just because the other spent theirs and has no resource advantage
and let the AI offer lager sums of gold to the player in diplomacy - which is ofc not helping the AI at all (unless the player gets greedy and lets their guard down, thinking the AI will always just be their to give them money) but helps the game as a whole by making diplomacy more interesting and worthwhile. Which would you prefer an ally who gives you 1429 gold reward after you win a major battle, or one that gives you 73?
Reply

btw do we want to make volcanoes produce more power based on difficulty? It's weird that one those are left out.
Reply

(June 23rd, 2016, 16:45)Seravy Wrote: btw do we want to make volcanoes produce more power based on difficulty? It's weird that one those are left out.
You mean, for the AI? Does the AI cast volcanoes for power in the first place, or does it just use them like glorified Corruption?
Reply

(June 24th, 2016, 11:57)Anthony Wrote:
(June 23rd, 2016, 16:45)Seravy Wrote: btw do we want to make volcanoes produce more power based on difficulty? It's weird that one those are left out.
You mean, for the AI? Does the AI cast volcanoes for power in the first place, or does it just use them like glorified Corruption?

Yes for the AI.
The AI uses volcanoes to hurt a target player's city so it's like corruption - the AI must have an enemy to even cast it.

However, the AI casts Armageddon just like any other global enchantment - the logic there being as simple as "Cast it if I haven't yet". Ofc Armageddon has a nasty effect on other players, but the main selling point of it is the power gained, and a few hundred extra on a typical extreme AI with a power base of 1-3 thousand is nothing.
At the very least in vanilla MoM and by the human player, casting an Armageddon raises power to several times the original if left unchecked, and wins the game. It still does that to some extent for the human player, although power is more abundant in the mod so it merely doubles a typical power base over long term, but for the AI, that amount is way too small to really matter.
So in the end the question boils down to "Do we want the AI's Armageddon to be a larger threat"? I'd say yes, as is Great Wasting hurts more which is not how it should be.

Besides, it being the only thing left out kinda feels like as if it was a bug.

Edit : I made it work meanwhile. Unfortunately it's not going to be compatible with the vanilla game so it can't be added to 1.5
Reply

are you saying that AI don't benefit from a power difficulty increase for volcanoes?
whatever their base difficulty percent bonuses are I think should apply to volcanoes. If they don't it's probably an oversight? If they already get that bonus, why would they need more?
Reply

(June 24th, 2016, 16:51)namad Wrote: are you saying that AI don't benefit from a power difficulty increase for volcanoes?
Exactly
(June 24th, 2016, 16:51)namad Wrote: whatever their base difficulty percent bonuses are I think should apply to volcanoes. If they don't it's probably an oversight?
Most likely, so I already made it apply.
Reply



Forum Jump: