Announcement

Collapse
No announcement yet.

Everything you wanted to know about corruption

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    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; April 12, 2002, 09:19.

    Comment


    • #32
      I think your formula is about as close as we can get without Firaxis actually disclosing the calculations going on. Good work Alexman! The information about how changing the Percent of Optimal Cities affects the Commercial bonus is interesting as well.

      Comment


      • #33
        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

        Comment


        • #34
          I knew it!

          Marketplaces ARE the best buildings in Civ 3...Happiness enhancer, cash-producer, and now corruption-reducer? I still can't believe there was a thread a few weeks ago complaining that these things were over-priced.

          Now does the presence/absence of a bank/market have any bearing on the shield output of a city? I'm still not clear on this point due to the ambiguous use of the word "corruption".
          -CC

          Comment


          • #35
            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; April 11, 2002, 09:42.

            Comment


            • #36
              Nice analysis, vulture. It seems to confirm what players experience with courthouses, in general: most effective at the outskirts of your productive region.

              For cities close to you capital, it might be more worthwhile building a courthouse than you suggest, because of factories and plants. Unlike marketplaces, factories are taxed by corruption. So a 10% improvement in corruption translates to 5 shields if your city is producing 50 shields (quite common after power plants, especially for your initial cities). I would gladly pay 1 gold per turn for the courthouse to get 5 extra shields...

              Carbon Copy: To clarify, banks and marketplaces have no effect on shield production. They also have no effect on the commerce lost to corruption. But because they increase the gold produced by the city, they reduce the percentage of commerce lost to corruption.

              Comment


              • #37
                1.21f update

                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; April 26, 2002, 05:19.

                Comment


                • #38
                  When you say 'add one fourth to the optimal number of cities for that city', do you mean add 0.25 , or add 0.25 of Nopt? On a standard map (Nopt = 16) does building a courthouse change Nopt to 16.25 or 20 for that city?

                  Comment


                  • #39
                    Originally posted by vulture
                    When you say 'add one fourth to the optimal number of cities for that city', do you mean add 0.25 , or add 0.25 of Nopt? On a standard map (Nopt = 16) does building a courthouse change Nopt to 16.25 or 20 for that city?
                    That's 0.25 of Nopt. So on a standard map, the courthouse makes Nopt=20, adding a police station to that makes Nopt=24, and WLTK on top of it makes Nopt=28. Quite a difference from 1.17f!

                    Comment


                    • #40
                      Only thing I think they need to adress is to tweak distance factor reduction by corthouse.

                      Now it's 50% reduction in distance.

                      However some cities are just too much far away form capitol, so this doesn't help them at all.

                      But, why not add an effect of "maximum distance".
                      Let's say that corthouse reduced distance for 50%, but also gives effect that every city more then N tiles away (should depended from map size) is treated as N tiles away from capitol.

                      This would effectively solve "95% corrupt cities" problem.

                      Comment


                      • #41
                        Originally posted by alexman

                        That's 0.25 of Nopt. So on a standard map, the courthouse makes Nopt=20, adding a police station to that makes Nopt=24, and WLTK on top of it makes Nopt=28. Quite a difference from 1.17f!
                        Wow again. Congrats on figuring that out, since it is very different from the stuff you found before. I guess the courthouse is still most useful in cities on the periphery of either of the 2 clumps of cities though.

                        Comment


                        • #42
                          Originally posted by DrSpike


                          Wow again. Congrats on figuring that out, since it is very different from the stuff you found before. I guess the courthouse is still most useful in cities on the periphery of either of the 2 clumps of cities though.
                          This was said by Soren in recent chat.

                          Comment


                          • #43
                            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!
                            They're coming to take me away, ha ha...

                            Comment


                            • #44
                              For your map size (240x240) and optimal number of cities (64), assuming Regent level, Monarchy, and that the 50th rank city at 30 tiles away is connected to your empire and has a courthouse, the formula gives 44% corruption.

                              Comment


                              • #45
                                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?
                                They're coming to take me away, ha ha...

                                Comment

                                Working...
                                X