Announcement

Collapse
No announcement yet.

How to make Terraforming tile speciffic?

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

  • How to make Terraforming tile speciffic?

    I tried to make the game terraform only certain tiles into other types and to exclude others

    Like this :

    dead-> tundra -> desert -> plains -> grass
    dead -> tundra -> swamp -> jungle -> forest
    dead -> glacier -> white hill -> brown hill -> hill
    dead -> glacier -> white mountain -> brown mountain -> mountain

    To this end I changed some .txt files in the folder

    C:/program files/activision/Call to Power 2/CtP2_Data/Default/Gamedata

    I tried editing the file tileimp.txt

    Spoiler:

    I changed :

    TILEIMP_TERRAFORM_WHITE_MOUNTAIN {
    Icon ICON_TILEIMP_FARMS
    Tooltip TOOLTIP_TILEIMP_SELECT_WHITE_MOUNTAIN_BUTTON
    Statusbar STATUSBAR_TILEIMP_SELECT_WHITE_MOUNTAIN_BUTTON
    TerraformTerrain TERRAIN_WHITE_MOUNTAIN
    Level 3
    Column 3
    Class:Terraform
    GLHidden
    ConstructionTiles 1
    ConstructionTiles 1
    ConstructionTiles 1

    CantBuildOn TERRAIN_WATER_BEACH
    CantBuildOn TERRAIN_WATER_DEEP
    CantBuildOn TERRAIN_WATER_KELP
    CantBuildOn TERRAIN_WATER_REEF
    CantBuildOn TERRAIN_WATER_RIFT
    CantBuildOn TERRAIN_WATER_SHALLOW
    CantBuildOn TERRAIN_WATER_SHELF
    CantBuildOn TERRAIN_WATER_TRENCH
    CantBuildOn TERRAIN_WATER_VOLCANO

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

    TerrainEffect {
    Terrain TERRAIN_WHITE_MOUNTAIN
    EnableAdvance ADVANCE_FUSION
    TilesetIndex 1
    }

    into :
    TILEIMP_TERRAFORM_WHITE_MOUNTAIN {
    Icon ICON_TILEIMP_FARMS
    Tooltip TOOLTIP_TILEIMP_SELECT_WHITE_MOUNTAIN_BUTTON
    Statusbar STATUSBAR_TILEIMP_SELECT_WHITE_MOUNTAIN_BUTTON
    TerraformTerrain TERRAIN_WHITE_MOUNTAIN
    Level 3
    Column 3
    Class:Terraform
    GLHidden

    ConstructionTiles 1
    ConstructionTiles 1
    ConstructionTiles 1

    CantBuildOn TERRAIN_GRASSLAND
    CantBuildOn TERRAIN_SPECIAL1
    CantBuildOn TERRAIN_PLAINS
    CantBuildOn TERRAIN_DESERT
    CantBuildOn TERRAIN_SPECIAL2
    CantBuildOn TERRAIN_TUNDRA
    CantBuildOn TERRAIN_FOREST
    CantBuildOn TERRAIN_JUNGLE
    CantBuildOn TERRAIN_SWAMP
    CantBuildOn TERRAIN_HILL
    CantBuildOn TERRAIN_BROWN_HILL
    CantBuildOn TERRAIN_WHITE_HILL
    CantBuildOn TERRAIN_MOUNTAIN
    CantBuildOn TERRAIN_BROWN_MOUNTAIN
    CantBuildOn TERRAIN_WHITE_MOUNTAIN
    CantBuildOn TERRAIN_WATER_BEACH
    CantBuildOn TERRAIN_WATER_DEEP
    CantBuildOn TERRAIN_WATER_KELP
    CantBuildOn TERRAIN_WATER_REEF
    CantBuildOn TERRAIN_WATER_RIFT
    CantBuildOn TERRAIN_WATER_SHALLOW
    CantBuildOn TERRAIN_WATER_SHELF
    CantBuildOn TERRAIN_WATER_TRENCH
    CantBuildOn TERRAIN_WATER_VOLCANO

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

    TerrainEffect {
    Terrain TERRAIN_WHITE_MOUNTAIN
    EnableAdvance ADVANCE_FUSION
    TilesetIndex 1
    }
    }


    The game starts without problems, but when trying to terraform this white mountain still can be placed on all land tiles.

    I kept this file intact and tried editing terrain.txt as well

    Spoiler:

    I changed

    TERRAIN_WHITE_MOUNTAIN {
    TilesetIndex 21
    Icon ICON_TERRAIN_WMOUNTAIN
    InternalType: WhiteMountain

    AddAdvance ADVANCE_FUSION
    TransformAdd {
    Time 2
    Materials 800
    }

    RemoveAdvance ADVANCE_FUSION
    TransformRemove {
    Time 3
    Materials 1400
    }

    EnvBase {
    Score 20
    Food 0
    Shield 10
    Gold 0
    Defense 1
    Movement 600
    Freight 600
    DeadFood 0
    DeadShield 0
    DeadGold 0
    }

    EnvCity {
    Score 50
    Food 30
    Shield 20
    Gold 30
    Defense 0
    Movement 50
    Freight 50
    }

    EnvRiver {
    Score 30
    Food 5
    Shield 5
    Gold 5
    Movement 50
    Freight 50
    }

    Resources TERRAIN_ARCTIC_MOUNTAIN_GOOD_ONE
    Resources TERRAIN_ARCTIC_MOUNTAIN_GOOD_TWO

    MovementType: Air
    MovementType: Mountain
    }

    To :

    TERRAIN_WHITE_MOUNTAIN {
    TilesetIndex 21
    Icon ICON_TERRAIN_WMOUNTAIN
    InternalType: WhiteMountain

    AddAdvance ADVANCE_FUSION
    TransformAdd {
    Time 2
    Materials 800
    CantBuildOn TERRAIN_GRASSLAND
    CantBuildOn TERRAIN_SPECIAL1
    CantBuildOn TERRAIN_PLAINS
    CantBuildOn TERRAIN_DESERT
    CantBuildOn TERRAIN_SPECIAL2
    CantBuildOn TERRAIN_TUNDRA
    CantBuildOn TERRAIN_FOREST
    CantBuildOn TERRAIN_JUNGLE
    CantBuildOn TERRAIN_SWAMP
    CantBuildOn TERRAIN_HILL
    CantBuildOn TERRAIN_BROWN_HILL
    CantBuildOn TERRAIN_WHITE_HILL
    CantBuildOn TERRAIN_MOUNTAIN
    CantBuildOn TERRAIN_BROWN_MOUNTAIN
    CantBuildOn TERRAIN_WHITE_MOUNTAIN
    CantBuildOn TERRAIN_WATER_BEACH
    CantBuildOn TERRAIN_WATER_SHALLOW
    CantBuildOn TERRAIN_WATER_REEF
    CantBuildOn TERRAIN_WATER_KELP
    CantBuildOn TERRAIN_WATER_SHELF
    CantBuildOn TERRAIN_WATER_DEEP
    CantBuildOn TERRAIN_WATER_RIFT
    CantBuildOn TERRAIN_WATER_TRENCH
    CantBuildOn TERRAIN_WATER_VOLCANO
    }

    RemoveAdvance ADVANCE_FUSION
    TransformRemove {
    Time 3
    Materials 1400
    CantBuildOn TERRAIN_GRASSLAND
    CantBuildOn TERRAIN_SPECIAL1
    CantBuildOn TERRAIN_PLAINS
    CantBuildOn TERRAIN_DESERT
    CantBuildOn TERRAIN_SPECIAL2
    CantBuildOn TERRAIN_TUNDRA
    CantBuildOn TERRAIN_GLACIER
    CantBuildOn TERRAIN_DEAD
    CantBuildOn TERRAIN_FOREST
    CantBuildOn TERRAIN_JUNGLE
    CantBuildOn TERRAIN_SWAMP
    CantBuildOn TERRAIN_HILL
    CantBuildOn TERRAIN_BROWN_HILL
    CantBuildOn TERRAIN_WHITE_HILL
    CantBuildOn TERRAIN_MOUNTAIN
    CantBuildOn TERRAIN_WHITE_MOUNTAIN
    CantBuildOn TERRAIN_WATER_BEACH
    CantBuildOn TERRAIN_WATER_SHALLOW
    CantBuildOn TERRAIN_WATER_REEF
    CantBuildOn TERRAIN_WATER_KELP
    CantBuildOn TERRAIN_WATER_SHELF
    CantBuildOn TERRAIN_WATER_DEEP
    CantBuildOn TERRAIN_WATER_RIFT
    CantBuildOn TERRAIN_WATER_TRENCH
    CantBuildOn TERRAIN_WATER_VOLCANO
    }

    EnvBase {
    Score 20
    Food 0
    Shield 10
    Gold 0
    Defense 1
    Movement 600
    Freight 600
    DeadFood 0
    DeadShield 0
    DeadGold 0
    }

    EnvCity {
    Score 50
    Food 30
    Shield 20
    Gold 30
    Defense 0
    Movement 50
    Freight 50
    }

    EnvRiver {
    Score 30
    Food 5
    Shield 5
    Gold 5
    Movement 50
    Freight 50
    }

    Resources TERRAIN_ARCTIC_MOUNTAIN_GOOD_ONE
    Resources TERRAIN_ARCTIC_MOUNTAIN_GOOD_TWO

    MovementType: Air
    MovementType: Mountain
    }


    This caused an errormessage and a fail to startup the game.

    This clearly was not the solution, however I do not know what is.

    Any suggestions towards the solution of this problem are greatly apreciated.

  • #2
    For that you have to edit the AddAdvance, TransformAdd, RemoveAdvance, TransformRemove fields in the terrain.txt. If I remember correctly there was also a bug in the standard version of the game I fixed in the Apolyton Edition, I just don't remember what it was.

    You can't add any stuff from the tileimp.txt into the terrain.txt. AddAdvance is the advance you need so that you can change a file to that terrain type. RemoveAdvance is the advance you need so that you can terraform a tile that has that terrain type. You should be able to delete AddAdvance, TransformAdd, RemoveAdvance, and TransformRemove.

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

    Comment

    Working...
    X