Announcement

Collapse
No announcement yet.

How to make city-placement remove all tile improvements?

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

  • How to make city-placement remove all tile improvements?

    When I build a city ingame, it keeps all the terrain inprovements on that tile intact.

    I want this to change, when a city is placed I want it to remove all tile improvements present.

    I am not succesfull in making the game doing this, here is what I tried so far :

    I edited some txt files in the folder :
    C:/program files/Activision/Call to Power 2/CtP2_Data/Default/Gamedata

    In the file :
    terrain.txt
    Spoiler:

    I changed :
    EnvCity {
    Score 10
    Food 20
    Shield 25
    Gold 15
    Defense 0.75
    Movement 50
    Freight 50
    }

    into :
    EnvCity {
    Score 10
    Food 20
    Shield 25
    Gold 15
    Defense 0.75
    Movement 50
    Freight 50

    Excludes:Road
    Excludes:Farm
    Excludes:Mine
    Excludes:ATM
    Excludes:LandDetector
    Excludes:OceanRoad
    Excludes:OceanFarm
    Excludes:OceanMine
    Excludes:OceanATM
    Excludes:OceanDetector
    Excludes:Structure2
    Excludes:Structure1
    }


    This gave an error, and caused game not to start.

    Next I changed the file Units.txt
    Spoiler:

    I changed this :

    ## UNIT 13
    UNIT_CITY {
    Description DESCRIPTION_UNIT_CITY
    DefaultIcon ICON_UNIT_CITY
    DefaultSprite SPRITE_CITY
    Category UNIT_CATEGORY_GENERIC
    Attack 0
    Defense 0
    ZBRangeAttack 0
    Firepower 0
    Armor 0
    MaxHP 0
    ShieldCost 0
    PowerPoints 1000
    ShieldHunger 0
    FoodHunger 0
    MaxMovePoints 0
    VisionRange 2
    ActiveDefenseRange 0
    LossMoveToDmgNone
    MaxFuel 0
    HasPopAndCanBuild
    CantBuild
    CityGrowthCoefficient 1
    NoIndex
    GLHidden
    CantCaptureCity
    NeedsNoSupport
    SoundSelect1 SOUND_SELECT1_CITY
    SoundSelect2 SOUND_SELECT2_CITY
    SoundMove SOUND_MOVE_CITY
    SoundAcknowledge SOUND_ACKNOWLEDGE_CITY
    SoundCantMove SOUND_CANTMOVE_CITY
    SoundAttack SOUND_ATTACK_CITY
    SoundWork SOUND_WORK_CITY
    SoundVictory SOUND_VICTORY_CITY
    SoundDeath SOUND_DEATH_CITY
    CanAttack: Land
    CanAttack: Mountain
    CanSee: Standard
    MovementType: Land
    MovementType: Mountain
    Size: Medium
    VisionClass: Standard

    Revolution {
    Sound SOUND_ID_REVOLUTION
    Effect SPECEFFECT_REVOLUTION
    }
    }

    Into this :

    UNIT_CITY {
    Description DESCRIPTION_UNIT_CITY
    DefaultIcon ICON_UNIT_CITY
    DefaultSprite SPRITE_CITY
    Category UNIT_CATEGORY_GENERIC
    Attack 0
    Defense 0
    ZBRangeAttack 0
    Firepower 0
    Armor 0
    MaxHP 0
    ShieldCost 0
    PowerPoints 1000
    ShieldHunger 0
    FoodHunger 0
    MaxMovePoints 0
    VisionRange 2
    ActiveDefenseRange 0
    LossMoveToDmgNone
    MaxFuel 0
    HasPopAndCanBuild
    CantBuild
    CityGrowthCoefficient 1
    NoIndex
    GLHidden
    CantCaptureCity
    NeedsNoSupport
    SoundSelect1 SOUND_SELECT1_CITY
    SoundSelect2 SOUND_SELECT2_CITY
    SoundMove SOUND_MOVE_CITY
    SoundAcknowledge SOUND_ACKNOWLEDGE_CITY
    SoundCantMove SOUND_CANTMOVE_CITY
    SoundAttack SOUND_ATTACK_CITY
    SoundWork SOUND_WORK_CITY
    SoundVictory SOUND_VICTORY_CITY
    SoundDeath SOUND_DEATH_CITY

    Excludes:Road
    Excludes:Farm
    Excludes:Mine
    Excludes:ATM
    Excludes:LandDetector
    Excludes:OceanRoad
    Excludes:OceanFarm
    Excludes:OceanMine
    Excludes:OceanATM
    Excludes:OceanDetector
    Excludes:Structure2
    Excludes:Structure1

    CanAttack: Land
    CanAttack: Mountain
    CanSee: Standard
    MovementType: Land
    MovementType: Mountain
    Size: Medium
    VisionClass: Standard

    Revolution {
    Sound SOUND_ID_REVOLUTION
    Effect SPECEFFECT_REVOLUTION
    }
    }


    This too caused the game to fail at startup.


    I'm out of idea's : any suggestions please?
    Last edited by DutchGamer; February 18, 2012, 13:36.

  • #2
    Neither the Terrain nor the Units database knows the Excludes, so you can't use them there, in the standard game you could remove the terrain improvements via slic. In in the Apolyton Edition it is possible that they are removed or have no effect, but I don't remember.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • #3
      good answer, I also benefit from it

      Comment


      • #4
        yes very good answer..thanks

        Comment

        Working...
        X