Civic upkeep explained

Joined
Apr 29, 2003
Messages
4,292
Location
the Netherlands
This article is a joint contribution to this community by colony and Roland Johansen. We had some trouble getting the formulas in this article exactly right, but after correcting each other a few times, the correct formulas are now known. The article provides information for Civilization 4 versions 1.09 and 1.52 but mainly for version 1.52.

The article is divided in a few sections. The first section is a general introduction in the civic upkeep cost and probably contains no new information for most civilization 4 players. The second section explains how the game determines these costs. If you don't like mathematics and mathematical formulas, then you might want to skip this section and go on to the third section. The third section is about some strategic consequences of the way civilization 4 determines the civic upkeep cost. The fourth section gives some information to modders. It talks about the files where they can change the civic upkeep cost and about the consequences of adding more categories of civics. The last section mentions a utility created by Qitai that can calculate the civic upkeep cost.


Introduction

The civic upkeep cost can be found in the financial advisor (F2) and in the change civics menu (F3), but the financial advisor is more useful to get a clear overview of the costs. If you mouse over the civic upkeep section of the financial advisor (F2), then the civic upkeep cost is broken down into the five well known sections: government, legal, labor, economy and religion. The upkeep cost of a civic is largely determined by its upkeep classification: no upkeep, low, medium or high. A low upkeep labor civic will cost about the same amount in upkeep as a low upkeep economy civic and a high upkeep government civic will cost about the same as a high upkeep religion civic. The change civics menu (F3) allows you to see the upkeep cost of another set of civics when you mouse over or select these civics. You can always cancel the revolution, so there's no risk in doing so.

When a set of civics is chosen, then the upkeep cost is largely determined by the size of your empire: the number of cities in your empire (M) and the total size of your population (N). Also the organized trait (O) and the difficulty level (D) will have a large effect on the final upkeep cost. How the game determines the civic upkeep cost from these variables, can be found in the next section.


How the game calculates the civic upkeep cost.

The civic upkeep cost is dependent on some factors in the game. To make the description of the civic upkeep cost short and hopefully clear, a set of variables is introduced below.
The upkeep of a civic is largely determined by its upkeep classification in the game (no upkeep, low, medium or high) in combination with the size of your empire. We denote the number of cities in your empire by M and the total size of your population by N (the sum of the population from all of your cities). The population modifier P determines the civic upkeep of running a civic of a certain upkeep classification in an empire of a certain population size (N). In civilization 4 version 1.09, the variable P is equal to 0 for civics with no upkeep cost, 0.05 for civics with low upkeep cost, 0.10 for civics with medium upkeep cost and 0.15 for civics with high upkeep cost. In civilization 4 version 1.52, the variable P is equal to 0 for civics with no upkeep cost, 0.08 for civics with low upkeep cost, 0.12 for civics with medium upkeep cost and 0.16 for civics with high upkeep cost.
Likewise the number-of-cities modifier C dictates the civic upkeep cost of running a civic of a certain upkeep classification in an empire consisting of a certain number of cities (M). In civilization 4 version 1.09, the variable C is equal to 0 for civics with no upkeep cost, 0.2 for civics with low upkeep cost, 0.4 for civics with medium upkeep cost and 0.6 for civics with high upkeep cost. In civilization 4 version 1.52, the variable C is equal to 0 for civics with no upkeep cost, 0.4 for civics with low upkeep cost, 0.5 for civics with medium upkeep cost and 0.6 for civics with high upkeep cost.
Last but not least are the effect of the organized trait, denoted by O and the effect of the difficulty level, denoted by D. The variable O is 1/2 if your civilization is organized and 1 if your civilization is not organized. The difficulty level modifier for the human player is 1 at deity, immortal or emperor level, 0.95 at monarch level, 0.9 at prince level, 0.8 at noble level, 0.7 at warlord level, 0.6 at chieftain level and finally 0.5 at settler level.
The difficulty level modifier for the AI is 0.6 at deity level, 0.8 at immortal level, 0.85 at emperor level, 0.9 at monarch level, 0.95 at prince level and 1 at the levels below prince.
It's a bit strange, but the civic upkeep cost is also dependent on the type of civic. A medium cost economy civic is close in upkeep to a medium cost government civic but not exactly the same. I think this was done to avoid the situation where one of your cities grows one unit in population or you build one additional city and suddenly all of your civics will rise in upkeep cost. Because of the small differences in the formulas, this will seldom happen. Take a look at the formulas below and you'll see that there are some minor differences:

Government civics upkeep:
[D * [ O * ( [ P * (N-8) ] + [ C * (M-1) ] ) ] ]
Legal civics upkeep:
[D * [ O * ( [ P * (N-9) ] + [ C * M ] ) ] ]
Labor civics upkeep:
[D * [ O * ( [ P * (N-10) ] + [ C * (M+1) ] ) ] ]
Economy civics upkeep:
[D * [ O * ( [ P * (N-11) ] + [ C * (M+2) ] ) ] ]
Religion civics upkeep:
[D * [ O * ( [ P * (N-12) ] + [ C * (M+3) ] ) ] ]

Terms between brackets [....] are to be rounded down. So there is a lot of rounding down in these formulas. Note that there is a clear pattern in these formulas, but to keep the format of the formulas somewhat readable, the formulas were presented independently and not in one big formula.

Of course, the total upkeep cost for civics is determined by adding the costs of all of the chosen civics.

An example (for civilization 4 version 1.52):

You are playing a game at Noble difficulty level and own 11 cities of sizes: 9, 7, 12, 8, 15, 14, 12, 11, 11, 15 and 14. So your total population is 128. You're running the civics representation, bureaucracy, serfdom, decentralization and organized religion. Your leader has the organized trait.
Then according to the formulas, the upkeep cost for representation (low upkeep) is:
[0.8 * [ 0.5 * ( [ 0.08 * (128-8) ] + [0.4 * (11-1) ] ) ] ] = [0.8 * [ 0.5 * (9 + 4) ] ] = [0.8 * 6] = 4.
The upkeep cost for bureaucracy (medium upkeep) is:
[0.8 * [ 0.5 * ( [ 0.12 * (128-9) ] + [0.5 * 11 ] ) ] ] = [0.8 * [ 0.5 * (14 + 5) ] ] = [0.8 * 9] = 7.
The upkeep cost for serfdom (low upkeep) is:
[0.8 * [ 0.5 * ( [ 0.08 * (128-10) ] + [0.4 * (11 +1) ] ) ] ] = [0.8 * [ 0.5 * (9 + 4) ] ] = [0.8 * 6] = 4.
The upkeep cost for decentralization (low upkeep) is:
[0.8 * [ 0.5 * ( [ 0.08 * (128-11) ] + [0.4 * (11 +2) ] ) ] ] = [0.8 * [ 0.5 * (9 + 5) ] ] = [0.8 * 7] = 5.
The upkeep cost for organized religion (high upkeep) is:
[0.8 * [ 0.5 * ( [ 0.16 * (128-12) ] + [0.6 * (11 +3) ] ) ] ] = [0.8 * [ 0.5 * (18 + 8) ] ] = [0.8 * 13] = 10.
And thus the total civic upkeep is: 4+7+4+5+10=30.


Some repercussions of the way the game calculates the civic upkeep (for civilization 4 version 1.52)

The above formulas are all nice and such, but nobody is really going to use them when playing a game of civilization 4. But they can offer a deeper insight into the workings of the game. This might help you play the game a little better or help create a nice balanced mod for the game.

- The no upkeep classification is a pretty big advantage for a civic. The difference in upkeep between no upkeep and low upkeep is larger than the difference between low upkeep and high upkeep. Especially in empires with lots of large cities, the no upkeep classification is very powerful.

- In empires with small cities, the differences in upkeep classification don't mean very much (with exception of the above noted no upkeep classification). In empires with large cities, the high upkeep civics cost almost twice as much as the low upkeep civics. The medium upkeep civics have a cost halfway the low and high upkeep civics.

- Because the civic upkeep is higher at the higher difficulty levels, the organized trait is a more interesting trait at these higher difficulty levels. You can already notice this right from the start of the game. Normally at the highest difficulty levels, you can not set your research slider at 100%. But if you start with the organized trait, you can research at 100% getting those first few technologies a bit sooner. Later in the game, you will probably also be able to set the research slider at a higher rate thanks to the reduced cost of civic upkeep.

- Civic upkeep limits fast expansion. When you start developing your empire, then your cities tend to be small and don't make a lot of money. Still a lot of small cities tend to cost a considerable amount in civic upkeep. When the cities grow, the civic upkeep also grows, but not as fast as the commerce production of well developed cities. A city of size 10 will produce far more commerce than a city of size 1 (say 5-20 times as much, depending on how well it is developed), but it will cost less than 3 times as much in civic upkeep. Clearly large cities can cope with civic upkeep cost better than small cities.

- The organized trait has an effect that tends to be a bit larger than halving the civic upkeep, especially at the beginning of the game when the civic upkeep is still low (the reason is the rounding down in the formulas). This can make this trait very interesting for warmongers who tend to get lots of small cities early in the game. The low commerce production of these cities combined with a high upkeep, high civic upkeep and high unit upkeep can spell disaster for warmongers who are a bit too successful in their wars.

- The civic upkeep for human players is lower than the civic upkeep for AI's at the levels settler, chieftain, warlord, noble and prince. So while the AI has some advantages at noble level, it also has some disadvantages.

- Inflation is a percentage that adds to all types of costs and rises uncontrollably throughout the game. Because inflation can rise as high as 100%, the costs of civics can be doubled in the late game. This might make you rethink using those expensive civics.

- Free unit support also grows with population size. So while the cost of maintaining your civics grows when your cities grow, the free support for your units also grows. This means that a growing empire's expenditures don't necessarily increase that fast. If your leader is organized and you're running low cost civics, then the effect of the increase in free unit support could even be greater then the effect of the increase in civic upkeep.

- A rule of thumb for the costs of running the lowest cost civics, the highest cost civics and an average cost example. This can be useful to estimate the profitability of a city in the long run before you even found it. You can estimate the amount of cottages needed to make a single city a profitable entity. Of course, not every city has to pay for itself.
If you use the civics in the game with the lowest possible cost (2 low cost civics and 3 no cost civics), then the civic upkeep cost will be 0.16 gold for each point of population and 0.8 gold for each city.
If you use the civics in the game with the highest cost (3 high cost civics and 2 medium cost civics), then the civic upkeep cost will be 0.72 gold for each point of population and 2.8 gold for each city.
If you use my favourite civics (universal suffrage, free speech, emancipation, state property and organized religion) which have an average cost, then the civic upkeep cost will be 0.44 gold for each point of population and 1.9 gold for each city.
Note that these costs are reduced at the lower difficulty levels and are halved by the organized trait. Also note that the inflation percentage can increase the costs considerably and almost double these costs in the late game.


Some information for modders

I guess most people who mod civ4 will find the files by themselves. Still, these files were useful to find some numbers and might as well be mentioned. The modifiers for difficulty level are of course in the file CIV4HandicapInfo.xml named iCivicUpkeepPercent for human players and iAICivicUpkeepPercent for AI's. In the file CIV4UpKeepInfo.xml, the numbers can be found that determine the effects of low, medium and high upkeep costs. In the file CIV4CivicInfos.xml, the upkeep classifications (no upkeep, low, medium, high), can be set for each civic. Also every other effect of civics can be changed in that file.

If more categories of civics are added, then it can be expected that the formulas that determine civic upkeep costs will follow the same pattern. So a sixth category of civics will probably have the following upkeep costs:
[D * [ O * ( [ P * (N-13) ] + [ C * (M+4) ] ) ] ]


Utility for calculating civic upkeep costs

Qitai has created an excel spreadsheet which can calculate the civic upkeep cost for you. It can be used to see how civic upkeep cost will develop while you expand your empire. You can find it in post no 24 of this thread. Thanks Qitai!
 
Roland Johansen said:
An example:

You are playing a game at Noble difficulty level and own 11 cities of sizes: 9, 7, 12, 8, 15, 14, 12, 11, 11, 15 and 14. So your total population is 128. You're running the civics representation, bureaucracy, serfdom, decentralization and organized religion. Your leader has the organized trait.
Then according to the formulas, the upkeep cost for representation (low upkeep) is:
[0.8 * [ 0.5 * ( [ 0.05 * 1 * (128-8) ] + [0.2 * 1 * (11-1) ] ) ] ] = [0.8 * [ 0.5 * (6 + 2) ] ] = [0.8 * 4] = 3.
The upkeep cost for bureaucracy (medium upkeep) is:
[0.8 * [ 0.5 * ( [ 0.05 * 2 * (128-9) ] + [0.2 * 2 * 11 ] ) ] ] = [0.8 * [ 0.5 * (11 + 4) ] ] = [0.8 * 7] = 5.
The upkeep cost for serfdom (low upkeep) is:
[0.8 * [ 0.5 * ( [ 0.05 * 1 * (128-10) ] + [0.2 * 1 * (11 +1) ] ) ] ] = [0.8 * [ 0.5 * (5 + 2) ] ] = [0.8 * 3] = 2.
The upkeep cost for decentralization (low upkeep) is:
[0.8 * [ 0.5 * ( [ 0.05 * 1 * (128-11) ] + [0.2 * 1 * (11 +2) ] ) ] ] = [0.8 * [ 0.5 * (5 + 2) ] ] = [0.8 * 3] = 2.
The upkeep cost for serfdom (high upkeep) is:
[0.8 * [ 0.5 * ( [ 0.05 * 3 * (128-12) ] + [0.2 * 3 * (11 +3) ] ) ] ] = [0.8 * [ 0.5 * (17 + 8) ] ] = [0.8 * 12] = 9.
And thus the total civic upkeep is: 3+5+2+2+9=21.

Very nice article. Btw in the example last civic should be organized religion, not serfdom.
 
Nice work. I tried to work this out on my own using the info from the .xml files a little while ago, but I wasn't completely successful. Specifically, I couldn't figure out why, given 2 civic options of the same cost, one would cost slightly more than the other. Looking at your formulas clears that up nicely though. :)
 
josephstalin said:
Very nice article. Btw in the example last civic should be organized religion, not serfdom.

Changed, thank you!


Nice work. I tried to work this out on my own using the info from the .xml files a little while ago, but I wasn't completely successful. Specifically, I couldn't figure out why, given 2 civic options of the same cost, one would cost slightly more than the other. Looking at your formulas clears that up nicely though.

That was unexpected for colony and me too, so it took us a while before we figured it out.
 
Civics seem cheap to me. The (generally) one turn anarchy makes it practical to chop and change. As I understand it, anarchy is mostly at our choice. We can struggle to keep individual citizens and cities happy, but our civics won't move to Anarchy instigating change unless we press the button.
Given that the Pyramids allows all government civics, is this a must have Wonder?
 
Well patch 1.52 seems to have changed the costs of civics (maybe making Organised a much more useful trait), not sure by how much yet. I'll have a look in the XML files in a bit.

Edit: Found them, and checked them, check your PMs Roland

The main impact seems to be that low upkeep civics are a lot more expensive than before, but that the cost of high upkeep civics has only changed slightly. This, combined with making Free Speech and Emancipation Low upkeep might make the cost of civics a bigger factor for players
 
Looks like they've modded the population factor cost to .08, .12, .16 (for low, medium, and high civic costs respectively) and the city cost to .4, .5, .6. In terms of the formulas, I suppose

0.05 * C (for population) would change to 0.04 * (C+1)

and 0.2 * C (for cities) would change to 0.1 * (C+3)

That appears to be an across the board increase. The difficulty modifiers also appear unchanged. Is there any indication that the corresponding M & N terms have been reduced to counterract this?

EDIT: I found my old data laying around and fired up the same save to compare. It looks like *all* the civic costs increased. The 'high' cost civics increased only slightly (from 18 to 20 in this case.) While the increase for the 'low' cost civics was startling - nearly doubled.
 
Grogs said:
Looks like they've modded the population factor cost to .08, .12, .16 (for low, medium, and high civic costs respectively) and the city cost to .4, .5, .6. In terms of the formulas, I suppose

0.05 * C (for population) would change to 0.04 * (C+1)

and 0.2 * C (for cities) would change to 0.1 * (C+3)

That appears to be an across the board increase. The difficulty modifiers also appear unchanged. Is there any indication that the corresponding M & N terms have been reduced to counterract this?

That's correct, thank you. My co-author, colony already pm-ed me about it. It's going to be changed soon, but I have to check the rest of the formula too. Maybe more things were changed. And checking for other changes takes a little bit more time (although probably nothing else was changed, still it has to be checked). I also have to change some of the repercussions in the article. Expect an update soon.
 
Good explanation and analysis. Emancipation has been changed from No Upkeep to Low Upkeep with the new patch (1.52) so as Free Speech. I lost around 75 from my gold cashflow once I installed the new patch so the impact is pretty severe. Inflation doesn't help either, don't if the civic costs have an impact on inflation but I suspect it does. Civic costs are 81 gold, inflation at 89.
 
Roland Johansen said:
That's correct, thank you. My co-author, colony already pm-ed me about it. It's going to be changed soon, but I have to check the rest of the formula too. Maybe more things were changed. And checking for other changes takes a little bit more time (although probably nothing else was changed, still it has to be checked). I also have to change some of the repercussions in the article. Expect an update soon.

It looks like it's just the 'C' values have changed. :( I checked civic costs using your formulas and the new equations for C. I left everything else alone (the values of M & N) and it was dead on (although I only checked a single case - there may be subtle differences I would see with more extensive testing.)

Here's an example of the difference: For a 'settler' difficulty with a non-organized civ (Spain), 14 cities, 213 Pop running Hereditary Rule (M), Vassalage (H), Caste System (M), Decentralization (L), and Paganism (L) the values changed from 11, 18, 12, 6, 6 -to- 15, 20, 15, 11, 11.
 
I checked the new costs on all the late game saves I have left, and it does indeed look like only the cost factors have changed, but this has had a big impact on the cost of civics, with the change to Emancipation/Free Speech

Zanmato said:
Good explanation and analysis. Emancipation has been changed from No Upkeep to Low Upkeep with the new patch (1.52) so as Free Speech. I lost around 75 from my gold cashflow once I installed the new patch so the impact is pretty severe. Inflation doesn't help either, don't if the civic costs have an impact on inflation but I suspect it does. Civic costs are 81 gold, inflation at 89.

The cost due to inflation is simply a percentage of your total costs, with the percentage increasing throughout the game. With the increased civic costs in one of my games I'm near the domination limit, running Universal Suffrage/Free Speech/Emancipation/State Prop./Org. Rel, and the total cost is 125 gold, with an Organised leader (just for a quick comparison with 44 cities the city maintenance due to the number of cities is 165, inflation of 166). So without an Organised leader, using the same civics (which are the ones I generally seem to use most during peace anyway) the cost would be about 250 gold, which is starting to get very high.

Overall I think (in a probably badly thought out way:p ), that the changes are going to make Organised a better trait for warmongers, especially considering the lack of free civics now, and that a large non-Organised empire could get very expensive in terms of civics.
 
I see. Thanks colony for that. I think they're just possibly trying to string the end game out alittle further. Increasing civic costs coupled with the increased late-game tech costs might slow the research down alittle and makes the 'Organised' trait more useful. Will certainly make larger empires far more costly in any case.
 
The question is if the 'No Upkeep' setting still means actually 0 upkeep (if that (C+1) could actually be 1 for a No Upkeep Civic)
If No upkeep is still true to its name, then they have just strengthened State Property a lot. Relative to the FM+Merc.
 
Krikkitone said:
The question is if the 'No Upkeep' setting still means actually 0 upkeep (if that (C+1) could actually be 1 for a No Upkeep Civic)
If No upkeep is still true to its name, then they have just strengthened State Property a lot. Relative to the FM+Merc.


It's still 0. Don't let the C+1 I wrote fool you - it's just an empirical formula that I came up with to match the formula to the data - there should really be an OR statement in there that says OR 0, if the civic cost is none. The game actually pulls the values from the xml file (.08, .12, etc.) for the civic costs. Civics with no upkeep are defined as having an upkeep of 'NONE' rather than one of the defined categories.
 
That's what I Figured. They're probably going to have to add some penalty to SP then. Before the No Maintanence v. Low Maintenance was worth about 1.2 Gold/ Large City, Now its worth about 2 Gold / Large City, State Property already seems over balanced, this only magnifies it.

I'd personally favor making State Property High Maintenance and eliminating all City upkeep costs with it (Distance and Number)... That way a Large population city would cost about 4 gold upkeep (a little bit more than the 'number effect' but not reducable with courthouses)


Other adjustment ideas, Nationalism (a looked down on civic) No upkeep
 
I updated the article with the new modifiers for population and number of cities. There were no further changes to the formulas (according to tests by Grogs, colony and myself). I didn't try to get 1 variable that represented the population and number of cities effect of the upkeep classifications (no upkeep, low, medium, high), although it is possible to do so. I don't think it would have made the formulas any easier to read or understand.

I also modified some of the repercussions as the population and number of cities modifiers have changed quite a bit, especially for the low cost civics. I agree with most posters here that with the present civics costs, State Property seems very powerfull. But, they might change the costs again in another patch. Modding these costs is of course also very easy, but some people want to play the original game in multiplayer.

I do like it that the civic upkeep has become higher and for me they may increase it further. In most games (in 1.09), I can run an 80-100% science rate after growing large cities (depending on shrine income) and this means that gold-increasing buildings are less usefull than science increasing buildings (except for the short periods of time where you upgrade your military or want to cash-rush some buildings). The civic costs are the best way to change this because choosing cheap civics should mean something for your research rate. That's why I don't like it that Firaxis reduced the differences between high and low upkeep costs.
 
I see some very interesting trends here.

- Because of the greatly increased cost for the number of cities portion of the equation, players at Emperor+ difficulty will immediately incur a 2 gpt civic cost when they found their first city. This means that, right out of the gate you're limited to 80% research on the higher difficulty levels.

- Related to that last point, because of the rounding, the early-game civics have hugely different costs between Monarch and Emperor+. At first glance, 0.95 and 1 (the respective difficulty factors) are almost identical, but as an example, a 3-city, 9-pop empire will cost a Monarch player 2gpt, while it will cost an Emperor player 6. As the empire gets larger, the difference will lessen.

- Again, related to the rounding, it's actually possible to run 'high' costs civics at the same price as 'low' cost ones in a small empire. In the same 3-city, 9-pop empire above at Monarch level above, you can switch from despotism to police state at no extra civic cost. This is also largely due to the large negatives in the population portion of the equation. Switching to Organized religion *would* cost extra.

The first effect (immediate civics costs for Emp+) is a direct result of the changed values in the 1.52 patch. The other 2 aren't, but the increased per city cost (especially) makes them much more noticable.
 
One thing I have noticed, that I should have noticed earlier but didn't, is that with an Organised leader you can keep research at 100% after founding your first city on Emperor and higher, because of the rounding down. This is a nice advantage whilst researching your first couple of techs and before you found another city.
 
Just created an excel spreadsheet with a table of the total civic upkeep cost against city and pop size. Think some may find it useful. So, I am sharing it here.

For different settings, just enter the values in the yellow portion. The output is in the blue portion. I have also size it so that it fits exactly to a page for printing.

Edit: Spreadsheet has been updated. See 5 post below. :confused: How do I delete this old attachment? :confused:
 

Attachments

  • Civic cost table.zip
    13.6 KB · Views: 535
Qitai said:
Just created an excel spreadsheet with a table of the total civic upkeep cost against city and pop size. Think some may find it useful. So, I am sharing it here.

For different settings, just enter the values in the yellow portion. The output is in the blue portion. I have also size it so that it fits exactly to a page for printing.

Thanks a lot, that table will be very helpful in planning early expansion, mainly for making it easier to see when the upkeep will increase a lot:)
 
Top Bottom