Quote:
|
Originally posted by The Big Mc
I want some help I am having a hard time putting in my own new technologies and buildings they work in the main directory but not in the scenario directory I have made.
|
It is allways a pain to use the scenario file structure, so if you are making a mod you should rather use ModSwapper than the scenario file structure. I don't explain ModSwapper now so if you need help to get your mod working as a ModSwapper mod please ask.
Here is an example from the CRA_tileimp.txt:
Code:
|
## 43 ##########################################################
TILEIMP_UNDERSEA_FORTIFICATIONS {
Icon ICON_TILEIMP_UNDERSEA_FORTIFICATIONS
Tooltip TOOLTIP_TILEIMP_SELECT_FORT_BUTTON
Statusbar STATUSBAR_TILEIMP_SELECT_FORT_BUTTON
Level 2
IntBorderRadius 2
SquaredBorderRadius 5
Class:OceanDetector
ConstructionTiles 50
ConstructionTiles 911
ConstructionTiles 914
CantBuildOn TERRAIN_BROWN_HILL
CantBuildOn TERRAIN_BROWN_MOUNTAIN
CantBuildOn TERRAIN_DESERT
CantBuildOn TERRAIN_FOREST
CantBuildOn TERRAIN_GLACIER
CantBuildOn TERRAIN_GRASSLAND
CantBuildOn TERRAIN_HILL
CantBuildOn TERRAIN_JUNGLE
CantBuildOn TERRAIN_MOUNTAIN
CantBuildOn TERRAIN_PLAINS
CantBuildOn TERRAIN_SWAMP
CantBuildOn TERRAIN_TUNDRA
CantBuildOn TERRAIN_WHITE_HILL
CantBuildOn TERRAIN_WHITE_MOUNTAIN
Excludes:Farm
Excludes:LandDetector
Excludes:Mine
Excludes:OceanFarm
Excludes:OceanDetector
Excludes:Structure1
Excludes:Structure2
Excludes:OceanMine
TerrainEffect {
Terrain TERRAIN_WATER_BEACH
Terrain TERRAIN_WATER_DEEP
Terrain TERRAIN_WATER_RIFT
Terrain TERRAIN_WATER_SHALLOW
Terrain TERRAIN_WATER_SHELF
Terrain TERRAIN_WATER_TRENCH
Terrain TERRAIN_WATER_VOLCANO
VisionRange 2
DefenseBonus 0.5
EnableAdvance ADVANCE_NANO_ASSEMBLY
ProductionCost 3600
ProductionTime 6
TilesetIndex 913
}
}
## 44 ########################################################## |
The first line contains the name of your tileimprove. This tileimprove is based on the land fort. In the second line you find Icon it refferes to the uniticon.txt for a default game in Cradle this file is called CRA_uniticon.txt. Tooltip and StatusBar refferes to the tips_str.txt (in Cradle CRA_tips_str.txt). The first line (TILEIMP_UNDERSEA_FORTIFICATIONS) reffers to entries that can be found in a file called gl_str.txt in your ..\ctp2_data\english\gamedata\ directory (for Cradle CRA_gl_str.txt) if you have a non english version of the game than there is also a file called str_loc.txt for the correct grammer. The gl_str.txt contains all the names for advances, buildings, tileimprovements.... Is there a tile improvement in the tileimp.txt that has no entry in the gl_str.txt. Then the name in the tileimp.txt is used in the above example it would be TILEIMP_UNDERSEA_FORTIFICATIONS that you will see in the Great Library.
If you need I could be more detailed please ask.
-Martin