Results 1 to 2 of 2

Thread: How to make Terraforming tile speciffic?

  1. #1
    DutchGamer
    Settler
    Join Date
    16 Feb 2012
    Posts
    22
    Thanks
    0
    Thanked 2 Times in 1 Post
    Local Date
    November 27, 2014
    Local Time
    18:01

    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. #2
    Martin Gühmann
    Administrator Martin Gühmann's Avatar
    Join Date
    02 Mar 2001
    Location
    Tübingen, Germany
    Posts
    7,254
    Country
    This is Martin Gühmann's Country Flag
    Thanks
    2
    Thanked 4 Times in 4 Posts
    Local Date
    November 27, 2014
    Local Time
    18:01
    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!"

Similar Threads

  1. How to make city-placement remove all tile improvements?
    By DutchGamer in forum Call to Power 2
    Replies: 2
    Last Post: September 1, 2012, 13:12
  2. DEBUG: MP Terraforming & Tile Imp
    By Maquiladora in forum CtP2 Source Code Project
    Replies: 2
    Last Post: December 14, 2003, 20:25
  3. Using terraforming to make canals?
    By MKSheppard in forum Call to Power 1
    Replies: 5
    Last Post: July 4, 2001, 09:00
  4. How to make tile improvements outside the scope of the city
    By RedArmy in forum CtP2-Creation/AI/Mods/Scenarios-Archive
    Replies: 3
    Last Post: May 15, 2001, 03:31
  5. how to make new tile improvements? somebody?
    By BUSHIDO in forum Scenario League / Civ2-Creation -Archive
    Replies: 1
    Last Post: January 6, 2001, 17:07

Bookmarks

Posting Permissions