Announcement

Collapse
No announcement yet.

PROJECT: City Limits defined by Map size

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

  • PROJECT: City Limits defined by Map size

    Okay I see that we have this in the Const.txt

    Code:
    MAP_SIZE_SMALL		26	52	2
    MAP_SIZE_MEDIUM		48	96	2
    MAP_SIZE_LARGE		64	128	2
    MAP_SIZE_GIGANTIC	70	140	2

    Does anyone know what the '2's do in this context?

    I'm thinking that if nots used in a special way that we can use that as a variable to adjust city limits based on map size

    the other option I'm think is to do something in Const.txt

    Code:
    MAP_SIZE_SMALL_CITIES        1
    MAP_SIZE_MEDIUM_CITIES	1
    MAP_SIZE_LARGE_CITIES        2
    MAP_SIZE_GIGANTIC_CITIES	3

    Essentially this would be a number that you would mutliply to this in government.txt
    Code:
       TooManyCitiesThreshold 35
       TooManyCitiesCoefficient 1

    I think the easy part (for me) is getting all the spots where the threshold is evaluated. the hard part isthat I haven't seen how the game access map data so I'd have to find a GetMapSize-like function somewhere and match that up.

    but I know people have different preferences here so please add your input.
    Formerly known as "E" on Apolyton

    See me at Civfanatics.com

  • #2
    The 2's are unused, and should actually be 1's for CTP2. Have a look at e.g. MapPoint.h to see why.

    Maybe you should consider adding a map.cdb to generate a new database handler for map.txt, and add it there.

    Comment


    • #3
      How do I get the compiler to recognize new cdb's? I added a religion.cdb but it won't compile.
      Formerly known as "E" on Apolyton

      See me at Civfanatics.com

      Comment


      • #4
        Sounds great! Changing the maxium cities possible by each goverment depending on the map size is a great idea indeed

        (and the AI @ lastest playtest works pretty well with different map sizes, for example, in Regular maps the AI makes the cities away of another in an average of 3-4 tiles and in gigantic, 4-5)

        Comment

        Working...
        X