Help with adjusting food growth

ScouserAnt23

Chieftain
Joined
Oct 10, 2016
Messages
3
Is there a way of adjusting food growth for all players similar to civic/technology.

For example instead of update Technologies set Cost = Cost*2 something like update Growth set cost = cost*2

or will i have to edit every leader and give them a -200% growth ability?
 
GlobalParameters.xml

These are the values you want to test:

CITY_GROWTH_EXPONENT 1.5
CITY_GROWTH_MULTIPLIER 8

CITY_HOUSING_LEFT_25PCT_GROWTH 0
CITY_HOUSING_LEFT_50PCT_GROWTH 1
CITY_HOUSING_LEFT_ZERO_GROWTH -4

As for Modifiers -- when you want to attach something to every civilization in the game, there is no need to edit every leader individually. Attach your modifiers to the following trait:

TRAIT_LEADER_MAJOR_CIV

And to attach a modifier to every City State:

MINOR_CIV_DEFAULT_TRAIT
 
thank you!

Is there anywhere i can find a list of potential instructions such as what parameters i can change. So far i've had to search random tutorials to find snippets of parameters (not sure it is the right word but i mean for example CITY_HOUSING_LEFT or CITY_GROWTH etc) i can edit and change.
 
I changed city growth for my personal "Slower progress" mod. I googled a bit to find that the following formula applies to city growth (as it did in CiV, apparently):
Code:
fn = Math.Floor(BASE_CITY_GROWTH_THRESHOLD + (CITY_GROWTH_MULTIPLIER * i) + Math.Pow(i, CITY_GROWTH_EXPONENT));
... where "i" is the current city size, results in food needed for next city level.

BASE_CITY_GROWTH_THRESHOLD = the base value for each city level
CITY_GROWTH_MULTIPLIER = level multiplier to each subsequent city level
CITY_GROWTH_EXPONENT = effects the later stages, adjust with care

I only changed the first two values in my mod:

Code:
-- Changes to GlobalParameters table
-- Changes to City Pop Growth Rate
UPDATE GlobalParameters SET [Value] = 21 WHERE Name = 'CITY_GROWTH_THRESHOLD'; -- original value: 15
UPDATE GlobalParameters SET [Value] = 12 WHERE Name = 'CITY_GROWTH_MULTIPLIER'; -- original value: 8
-- Changes to City Border Growth Rate
UPDATE GlobalParameters SET [Value] = 1.2 WHERE Name = 'CULTURE_COST_LATER_PLOT_EXPONENT'; -- original value: 1.3

However, the formula for cultural border expansion rate basically works the same way, there I changed the third parameter for faster late era plot acquisition.

Following is an output of the original versus the changed values as posted above (first column is city size):
Code:
1 = 24 = 34
2 = 33 = 47
3 = 44 = 62
4 = 55 = 77
5 = 66 = 92
6 = 77 = 107
7 = 89 = 123
8 = 101 = 139
9 = 114 = 156
10 = 126 = 172
11 = 139 = 189
12 = 152 = 206
13 = 165 = 223
14 = 179 = 241
15 = 193 = 259
16 = 207 = 277
17 = 221 = 295
18 = 235 = 313
19 = 249 = 331
20 = 264 = 350
21 = 279 = 369
22 = 294 = 388
23 = 309 = 407
24 = 324 = 426
25 = 340 = 446
 
Last edited:
  • Like
Reactions: TC_
Back
Top Bottom