change the resource bonus the ai gets myself, need help.

normal ai gets the same income as me, hard ai gets double that currently. i want to change the hard ai to get a different level of resource bonus, this difference seems too extreme.

Does a mod that does this exist already?

is there a file where a variable can be changed to change this?

Is this even possible?

 

i've looked through some 30-40 game files so far and not found a variable that lets me do this. Have i missed it or is it hidden in a .dll or .exe file?

If so how do i get into them to change it?

 

any help is awesome as this has been doing my nut for a few days now.

 

thnx

2,860 views 2 replies
Reply #1 Top

Hard AI, from what I can tell, actually gets 1.5x income, not 2x income.

There is only one setting you can change that affects AI difficulty levels: scalar bonuses to diplomatic points for diplomatic victory, adjustable as aiDiplomaticPointBonusScalar under playerDiplomacyAIDef in gameplay.constants. There are no other ways to modify the differences between AI difficulty levels.

However, there are ways to make AI-only techs, so if the mod will be for personal use only, you can create a 0-cost, first tier tech that gives an income penalty. The AI will usually tend to research all tier 0 techs (so one lab required) regardless of preset, especially if said techs cost nothing. As a human player, you can either choose to not research the tech yourself, or you can place the tech in an out-of-bounds location: the AI will still research the tech even if you cannot click on it in the UI. AI-only bonuses and penalties in other mods are all done this way (effects are tied to a 0-cost, first tier tech that the AI will always research within the first few minutes of the game).

 
Reply #2 Top

The AI level modifiers are inaccessible in from the game files. No mod can change it, and no one but the devs know how to do it. The best you can do is make your own cheat for the AI via a tech that only it can research.