 |
|  |
 |
|
alexman
|
 |
Hunt Valley, MD
Jan 1970 time: 00:18
|
|
After some additional testing, I revised the formula for corruption due to number of cities, and updated the initial post.
It turns out that the commercial trait is equivalent to increasing the optimal number of cities by one. But for some crazy reason if you edit the percent of optimal cities in the editor, the commercial trait no longer has any effect. I was testing at Regent with 100%, that's why I missed the commercial civ effect.
It also turns out that after the optimal number of cities, the corruption due to number of cities increases at twice the rate as it does before that.
Anyway, I've had enough of this. The formula doesn't need to be 100% correct. My only goal was to investigate in what way each parameter affects corruption, not to duplicate the entire Civ3 game engine!! Besides, because of this thread I haven't been playing enough Civ lately!!
Last edited by alexman on 12-04-2002 at 18:19
|
|
|  |
 |
|
Caesar, EMF
|
|
Giessen (Germany), and anywhere I can conquer
Apr 2002 time: 06:18
|
|
This is THE thread I've been looking for! Thumbs WAY up, my friends (and if I could figure out how to get those smilies in here, you'd get a few of those as well...)
GAWD, I love this site! If I didn't also "have" to play CIV once in a while, I'd be here 24/7.
TC
ME
|
|
|  |
 |
|
vulture
|
 |
Leeds, UK
Jun 2001 time: 05:18
|
|
I wrote a small c program to encode Alexman's findings on the civ 3 corruption model, primarily to look at what spacing between cities would work best. As it happens, the main result is that even in despotism, corruption due to number of cities is the dominant factor, and distance corruption is comparatively small. So in terms of city spacing, you don't lose anything by spreading your cities out, but you do lose out via overlap if you have them too close together, at least when your cities start to grow to respectable sizes.
Of more general applicability is the observation that since distance corruption is usually small is that courthouses have a very small effect (not that that's news to anyone). As an illustrative example, consider a democracy, standard map, cities spaced 5 squares apart., all connected by roads. The optimal number of cities on this map is 16 (so says the editor). Cities 1-9 produce 55% of the output of the empire (assuming each city in the empire is more or less equally productive, ignoring corruption - if your core cities are larger and have better developed land, this figure is larger). Corruption in these cities is less than 30%, and corruption due to distance is only about 10% in the worst case. Building a courthouse one of these cities will improve its output by all of 5% (half that if in WLTKD day) or less (that's 5% of the city's total trade - trade received plus trade lost to corruption). Cities 10-17 have 40-60% corruption, and 15-20% of that is due to distance. They produce about 35% of the total output of the empire. Building a courthouse will gain you no more than a 10% improvement, so you need about 15 trade in the squares around the city to break even or make a small gain from a courthouse. It's more worthwhile building in the further away cities, particularly the ones with a very high trade (25+). Cities 18-22 are generally highly corrupt, but can show about a 10% improvement with a courthouse (as always, half that if WLTKD is being celebrated). These will often be fairly recent cities (or ones founded by the AI in stupid places an subsequently captured) and not have enough trade to be worthwhile. Cities 23-25 are 95% corrupt, but can show some improvement with a courthouse (to 88%, 90%, 92% in this example) with a courthouse, and are probably not worth it. Cities 26 and up are terminally corrupt - the corruption due to number of cities takes it to 95% corrupt, and this is unaffected by courthouses, so nothing you can do will improve these cities.
So, if the optimal number of cities for a given map size is N, then your core of N/2 cities do most of the production, and don't have much distance corruption, so it's rarely worth building a courthouse. cities N/2 to N can generally redeem 5-10% of their total trade through building a courthouse (or WLTKD, in which case the courthouse saves a additional 2.5-5%). Cities N and up are capable of saving about 10%, until you get to the 95% corrupt ones (at about 1.5 N), but will generally have too small a total production (ignoring corruption) in the first place to make it worthwhile.
Of course, if you have the time, you can work it all out with Alexman's formula to see how much benefit you gain, but the above rule of thumb seems a reasonably good guide (subject to the proviso that Alexman is right, I didn't mess up writing the program, and that the results for the city grid also apply in actual games with different distributions).
EDIT: a few further thoughts. I just ran a comparison of what would happen if there was a government which completely eliminated distance corruption (or if courthouses were 100% effective at this) so that only the corruption due to the number of cities was left. The results, on a standard map, are as follows. For a civ of 26 cities (beyond that they are all 95% corrupt even for this ideal government), the effective number of cities in the empire is:
despotism: 10.0
democracy: 13.1
ideal: 16.2
(Each additional city past 26 adds 0.05 on to these values).
So, with the corruption model in the game at the moment, despotism averages 62% corruption over the whole empire, and even the ideal government is 38% corrupt, averaged over the whole empire. In the actual game, choice of government limits you to the 50-62% range with no improvements built (yup, that's the difference between minimal and catastrophic corruption), and building 2 improvements plus WLTKD can take you to 39-42% corruption, averaged over the whole empire (which incidentally shows that building courthouses in every city gains you about 10% in despotism and 5% in democracy).
Last edited by vulture on 11-04-2002 at 18:42
|
|
|  |
 |
|
alexman
|
 |
Hunt Valley, MD
Jan 1970 time: 00:18
|
|
Most parts of the formula still work under 1.21f. It seems that they didn't change anything except the effect of police stations, courthouses, and WLTK on corruption due to number of cities.
For each one of those things, add one fourth [edit: of Nopt] to the optimal number of cities for that city. As always, WLTK affects shield waste only.
In the chat, Soren mentioned that the FP had a similar effect on the optinal number of cities, but I didn't see it. It looks like its effect is identical to 1.17f: a second palace with a new set of cities with low Nopt. Note that if a city is close to both the palace and the FP, there is no extra benefit. You just take the smallest Nopt of the two.
A couple more notes:
1) To clarify, marketplaces, factories, libraries, et cetera, do not affect the number of red shields or commerce, but their bonus is applied to the uncorrupted part of the city's production or commerce. This means that these buildings ARE actually affected by corruption. It just looks as though they are not because the number of red shields (or commerce) remains the same, but the number of blue shields is reduced instead.
2) I found a bug that will annoy mod-makers. If you make a custom map, the game uses the optimal number of cities for a standard-sized map, no matter what the size of your actual map. For example, a tiny user-created map will have optimal number of cites = 16 instead of 12 (if you don't change anything else in the editor). I'm pretty sure this didn't happen before 1.21f
Last edited by alexman on 26-04-2002 at 14:19
|
|
|  |
 |
|  |
 |
|
phunny_pharmer
|
|
quote: Distance factor, Fd
This is 3.6 times the distance divided by the map size. So for a standard map size (100x100) this factor would be 0.36 for a city 10 tiles away from the capital. For a tiny map (60x60), it would be 0.6. It looks like the capital is taken as a distance 1 tile (not zero) from itself, that's why there is some corruption there. Communism is a special case, because corruption does not depend on distance. For communism replace the distance factor by the value 1.0. |
I went into the editor the other day and messed with the map size. I didn't like how Firaxis cut the huge map size down to something less...huge. So, I decided that I wanted to try and play on the biggest map that I could. I set the map at 240 by 240 and doubled the number of cities before corruption sets in (my value now is 64 as opposed to the normal one of 32).
Now, however, I have a bunch of cities that are *several* screens away that have about 50% waste. I don't have the actual map in front of me now, but some of my farthest cities haven't reached the crap level yet. Let's assume the value of 30 squares.
I don't believe that I've maxed out the 64 limit (but I've got more cities than I can count). So, I wonder how that optimal number of cities thng works with map sizes. So, as 240 x 240 is 57600 squares...I have to belive that the corruption factir is based on area, not linear map size. The jump between 60 and 240 seems too great to be based on a linear size function. I believe it must be a function of squares.
But... intersting post!
|
|
|  |
 |
|
phunny_pharmer
|
|
Thanks for the quick responce, Alexman! Great job! 
My estimate was off...it's (almost) 30 by the long way of getting there (i.e.- my circuitous road network). My capital @ x=99, y=191, my city @ x=70, y=178.
However, it's producing 11 shields & has 3 waste. The level is emperor, and it's a size 8 city w/o courthouse or marketplace. It only has a temple, aqueduct, and cathedral, plus barracks and granary from wonders. I have a save, if needed for other information
Also, I was wondering if city size affected corruption. I know it sounds stupid, but if you could produce, say 20 shields in a size 5 city would it have the same rate of corruption as a size 25 city? Will a small town have more or less corruption than a big city if they are both the same distances from FP/capital? What happens? Are there disadvantages to having larger cities if they won't produce more shields?
|
|
|  |
 |
|
alexman
|
 |
Hunt Valley, MD
Jan 1970 time: 00:18
|
|
quote:
Originally posted by Catt
Does the OCN factor determine which cities receive its benefits based on proximity to the palace / FP? Meaning, if the OCN is 16, do the closest 16 cities to the palace enjoy lower corruption due to OCN and due to the distance factor? Or is there some other manner of determining the OCN effects (or lack thereof). Put another way, once you've blown past the OCN, does the OCN factor largely go away and now corruption is down to pure distance / improvements / WLTKD?
|
The rank of each city for corruption due to number of cities is indeed determined by its distance to the capital/FP.
But once you blow past the OCN, the OCN factor does not go away. On the contrary, it increases at an even greater rate. At the limit, once you reach about 1.5 times the modified OCN (modified by corruption buildings, WLTK, commercial civ, etc) you will always get maximum corruption (95%), no matter what the distance from the capital.
|
|
|  |
 |
|
andrewlpc
|
|
Hi,
I have a city that is 11 sqares away from my capital. It has 22 corruption and 1 gold. I have a total of 15 cities and I'm using the standard map. I'm pretty sure I'm using the original version of Civ3 (no patches). I am playing emperor. I used your formula, and I found that the city should only have 65% corruption, but somhow it has pretty close to 95%!
here's my questions:
1) do rivers with roads over them allow you toget the 15% bonus for being connected to the capital?
2) is it possible that the optimal number of cities in the map i'm on is less than 15 (and I have gone over)?
3) could I be counting the distance incorrectly?
thanks,
Andrew
|
|
|  |
 |
|
Ekanata
|
|
I'm playing diety on tiny map and doesn't have FP. Beside capital, assume that I have 8 other city. 4 are located at 5,1 from capital while the other 4 at 4,3. For that case, what are their ranks ? Is it :
a. 1,2,3,... based on distance and year they are founded
b. 1,2,2,2,2,6,6,6,6 or
c. 1,5,5,5,5,9,9,9,9
If the answer is c, then those 4 city is beyond Nopt of tiny deity 
Great thread, btw 
|
|
|  |
 |
|
One_Brow
|
|
My guess would be c as the formula seems more likely to be "number of cities of smaller or equal distance to the capitol" (c) than "number of cities of smaller distance to the capital, plus one" (b).
It could also be :
1,3,3,3,3,7,7,7,7
which would be "number of cities of smaller distance to the capital plus half the number of cities an equal distance to the capital", which would be a little more balanced.
|
|
|  |
 |
|
Ekanata
|
|
I think it's (c). In my game last week, I cancel founding a city because on the next turn (almost) all of my other city getting more corrupt. I usually arrange my city at (4,2), (4,3), or (5,0) from capital and the one I cancel was the seventh (including capital). Btw, I haven't patch mine.
Edit : I forgot the location of the seventh city. On my last game, it doesn't occur anymore. 
Last edited by Ekanata on 22-10-2002 at 08:24
|
|
|  |
All times are GMT. The time now is 05:18. Apolyton Time is 00:18. |
top of page
|
|
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|