Heya.
I had some fun with 'era restricting' mods nowadays, i sometimes edit stuff like technologies for my own use in order to fit some specific eras, in this case i tried editing Bloublou's "Era - industrial" in order to 'fit' into napoleonic wars/english empire eras. I did throw away artilery technology, now im trying to disable few units types (particulary gatling gun and ironclad) with no success.
Red colour is the added part of code which refuses to work. Of course there is no [color= command in the original code:
[code] <?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 7/29/2012 9:38:30 AM -->
<GameData>
<Civilizations>
<Update>
<Set AIPlayable="0"/>
</Update>
<Update>
<Where Type="CIVILIZATION_AMERICA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_ETHIOPIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_KOREA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_OTTOMAN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_ENGLAND"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_FRANCE"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_NETHERLANDS"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_AUSTRIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_SPAIN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_RUSSIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_SWEDEN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_JAPAN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_CHINA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_GERMANY"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_ARABIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_INDIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_DENMARK"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
</Civilizations>
<!--<Delete Type="CIVILIZATION_AMERICA" />
<Delete Type="CIVILIZATION_AZTEC" />
<Delete Type="CIVILIZATION_BABYLON" />
<Delete Type="CIVILIZATION_CARTHAGE" />
<Delete Type="CIVILIZATION_CHINA" />
<Delete Type="CIVILIZATION_DENMARK" />
<Delete Type="CIVILIZATION_EGYPT" />
<Delete Type="CIVILIZATION_ETHIOPIA" />
<Delete Type="CIVILIZATION_GERMANY" />
<Delete Type="CIVILIZATION_GREECE" />
<Delete Type="CIVILIZATION_HUNS" />
<Delete Type="CIVILIZATION_INCA" />
<Delete Type="CIVILIZATION_INDIA" />
<Delete Type="CIVILIZATION_IROQUOIS" />
<Delete Type="CIVILIZATION_JAPAN" />
<Delete Type="CIVILIZATION_KOREA" />
<Delete Type="CIVILIZATION_MAYA" />
<Delete Type="CIVILIZATION_PERSIA" />
<Delete Type="CIVILIZATION_POLYNESIA" />
<Delete Type="CIVILIZATION_ROME" />
<Delete Type="CIVILIZATION_SIAM" />
<Where Type="CIVILIZATION_ARABIA" />
<Where Type="CIVILIZATION_OTTOMAN" />
<Where Type="CIVILIZATION_SONGHAI" />
<Where Type="CIVILIZATION_ENGLAND" />
<Where Type="CIVILIZATION_FRANCE" />
<Where Type="CIVILIZATION_CELTS" />
<Where Type="CIVILIZATION_NETHERLANDS" />
<Where Type="CIVILIZATION_AUSTRIA" />
<Where Type="CIVILIZATION_SPAIN" />
<Where Type="CIVILIZATION_RUSSIA" />
<Where Type="CIVILIZATION_BYZANTIUM" />
<Where Type="CIVILIZATION_SWEDEN" />
CIVILIZATION_MONGOL-->
<Units>
<Update>
<Set Cost="-1"/>
<Where Type="UNIT_GATLINGGUN"/>
</Update>
<Update>
<Set Cost="-1"/>
<Where Type="UNIT_IRONCLAD"/>
</Update>
</Units>
<Technologies>
<Update>
<Set Disable="1" />
<Where Era="ERA_MODERN" />
</Update>
<Update>
<Set Disable="1" />
<Where Era="ERA_POSTMODERN" />
</Update>
<Update>
<Set Disable="1" />
<Where Era="ERA_FUTURE" />
</Update>
<Update>
<Set Disable="0" />
<Where Type="TECH_FUTURE_TECH" />
</Update>
<Update>
<Set Disable="1" />
<Where Type="TECH_DYNAMITE" />
</Update>
<Update>
<Where Type="TECH_FUTURE_TECH"/>
<Set PortraitIndex="39" IconAtlas="TECH_ATLAS_1" GridX="10" GridY="8" Cost="24000" Era="ERA_INDUSTRIAL"/>
</Update>
<Update>
<Where Type="TECH_DYNAMITE"/>
<Set GridY="9" />
</Update>
</Technologies>
<Technology_PrereqTechs>
<Delete TechType="TECH_FUTURE_TECH" />
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_STEAM_POWER</PrereqTech>
</Row>
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_DYNAMITE</PrereqTech>
</Row>
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_BIOLOGY</PrereqTech>
</Row>
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_ELECTRICITY</PrereqTech>
</Row>
</Technology_PrereqTechs>
<GameSpeeds>
<Update>
<Set DealDuration="30" GrowthPercent="100" TrainPercent="100" ConstructPercent="100" CreatePercent="100" ResearchPercent="100" GoldPercent="100" GoldGiftMod="100" BuildPercent="100" ImprovementPercent="100" GreatPeoplePercent="100" CulturePercent="100" FaithPercent="100" BarbPercent="100" FeatureProductionPercent="100" UnitDiscoverPercent="100" UnitHurryPercent="100" UnitTradePercent="100" GoldenAgePercent="100" HurryPercent="100" InflationPercent="30" InflationOffset="-90" ReligiousPressureAdjacentCity="6" VictoryDelayPercent="100" MinorCivElectionFreqMod="100" OpinionDurationPercent="100" SpyRatePercent="100" />
</Update>
</GameSpeeds>
<GameSpeed_Turns>
<Delete GameSpeedType="GAMESPEED_QUICK" />
<Delete GameSpeedType="GAMESPEED_EPIC" />
<Delete GameSpeedType="GAMESPEED_STANDARD" />
<Delete GameSpeedType="GAMESPEED_MARATHON" />
<Row>
<GameSpeedType>GAMESPEED_QUICK</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_QUICK</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_STANDARD</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_STANDARD</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MARATHON</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MARATHON</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
</GameSpeed_Turns>
<Eras>
<Update>
<Set SpiesGrantedForEveryone="1" SpiesGrantedForPlayer="0" />
<Where Type="ERA_MEDIEVAL" />
</Update>
<Update>
<Set SpiesGrantedForEveryone="0" SpiesGrantedForPlayer="1" />
<Where TYPE="ERA_RENAISSANCE" />
</Update>
</Eras>
<Language_en_US>
<Update>
<Where Tag="TXT_KEY_TECH_FUTURE_TECH_TITLE"/>
<Set Text="Advancement"/>
</Update>
</Language_en_US>
</GameData>
[/code]
Can anyone tell me where's the problem and help me fix it?
I had some fun with 'era restricting' mods nowadays, i sometimes edit stuff like technologies for my own use in order to fit some specific eras, in this case i tried editing Bloublou's "Era - industrial" in order to 'fit' into napoleonic wars/english empire eras. I did throw away artilery technology, now im trying to disable few units types (particulary gatling gun and ironclad) with no success.
Red colour is the added part of code which refuses to work. Of course there is no [color= command in the original code:
[code] <?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 7/29/2012 9:38:30 AM -->
<GameData>
<Civilizations>
<Update>
<Set AIPlayable="0"/>
</Update>
<Update>
<Where Type="CIVILIZATION_AMERICA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_ETHIOPIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_KOREA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_OTTOMAN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_ENGLAND"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_FRANCE"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_NETHERLANDS"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_AUSTRIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_SPAIN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_RUSSIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_SWEDEN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_JAPAN"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_CHINA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_GERMANY"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_ARABIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_INDIA"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
<Update>
<Where Type="CIVILIZATION_DENMARK"/>
<Set Playable="1" AIPlayable="1"/>
</Update>
</Civilizations>
<!--<Delete Type="CIVILIZATION_AMERICA" />
<Delete Type="CIVILIZATION_AZTEC" />
<Delete Type="CIVILIZATION_BABYLON" />
<Delete Type="CIVILIZATION_CARTHAGE" />
<Delete Type="CIVILIZATION_CHINA" />
<Delete Type="CIVILIZATION_DENMARK" />
<Delete Type="CIVILIZATION_EGYPT" />
<Delete Type="CIVILIZATION_ETHIOPIA" />
<Delete Type="CIVILIZATION_GERMANY" />
<Delete Type="CIVILIZATION_GREECE" />
<Delete Type="CIVILIZATION_HUNS" />
<Delete Type="CIVILIZATION_INCA" />
<Delete Type="CIVILIZATION_INDIA" />
<Delete Type="CIVILIZATION_IROQUOIS" />
<Delete Type="CIVILIZATION_JAPAN" />
<Delete Type="CIVILIZATION_KOREA" />
<Delete Type="CIVILIZATION_MAYA" />
<Delete Type="CIVILIZATION_PERSIA" />
<Delete Type="CIVILIZATION_POLYNESIA" />
<Delete Type="CIVILIZATION_ROME" />
<Delete Type="CIVILIZATION_SIAM" />
<Where Type="CIVILIZATION_ARABIA" />
<Where Type="CIVILIZATION_OTTOMAN" />
<Where Type="CIVILIZATION_SONGHAI" />
<Where Type="CIVILIZATION_ENGLAND" />
<Where Type="CIVILIZATION_FRANCE" />
<Where Type="CIVILIZATION_CELTS" />
<Where Type="CIVILIZATION_NETHERLANDS" />
<Where Type="CIVILIZATION_AUSTRIA" />
<Where Type="CIVILIZATION_SPAIN" />
<Where Type="CIVILIZATION_RUSSIA" />
<Where Type="CIVILIZATION_BYZANTIUM" />
<Where Type="CIVILIZATION_SWEDEN" />
CIVILIZATION_MONGOL-->
<Units>
<Update>
<Set Cost="-1"/>
<Where Type="UNIT_GATLINGGUN"/>
</Update>
<Update>
<Set Cost="-1"/>
<Where Type="UNIT_IRONCLAD"/>
</Update>
</Units>
<Technologies>
<Update>
<Set Disable="1" />
<Where Era="ERA_MODERN" />
</Update>
<Update>
<Set Disable="1" />
<Where Era="ERA_POSTMODERN" />
</Update>
<Update>
<Set Disable="1" />
<Where Era="ERA_FUTURE" />
</Update>
<Update>
<Set Disable="0" />
<Where Type="TECH_FUTURE_TECH" />
</Update>
<Update>
<Set Disable="1" />
<Where Type="TECH_DYNAMITE" />
</Update>
<Update>
<Where Type="TECH_FUTURE_TECH"/>
<Set PortraitIndex="39" IconAtlas="TECH_ATLAS_1" GridX="10" GridY="8" Cost="24000" Era="ERA_INDUSTRIAL"/>
</Update>
<Update>
<Where Type="TECH_DYNAMITE"/>
<Set GridY="9" />
</Update>
</Technologies>
<Technology_PrereqTechs>
<Delete TechType="TECH_FUTURE_TECH" />
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_STEAM_POWER</PrereqTech>
</Row>
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_DYNAMITE</PrereqTech>
</Row>
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_BIOLOGY</PrereqTech>
</Row>
<Row>
<TechType>TECH_FUTURE_TECH</TechType>
<PrereqTech>TECH_ELECTRICITY</PrereqTech>
</Row>
</Technology_PrereqTechs>
<GameSpeeds>
<Update>
<Set DealDuration="30" GrowthPercent="100" TrainPercent="100" ConstructPercent="100" CreatePercent="100" ResearchPercent="100" GoldPercent="100" GoldGiftMod="100" BuildPercent="100" ImprovementPercent="100" GreatPeoplePercent="100" CulturePercent="100" FaithPercent="100" BarbPercent="100" FeatureProductionPercent="100" UnitDiscoverPercent="100" UnitHurryPercent="100" UnitTradePercent="100" GoldenAgePercent="100" HurryPercent="100" InflationPercent="30" InflationOffset="-90" ReligiousPressureAdjacentCity="6" VictoryDelayPercent="100" MinorCivElectionFreqMod="100" OpinionDurationPercent="100" SpyRatePercent="100" />
</Update>
</GameSpeeds>
<GameSpeed_Turns>
<Delete GameSpeedType="GAMESPEED_QUICK" />
<Delete GameSpeedType="GAMESPEED_EPIC" />
<Delete GameSpeedType="GAMESPEED_STANDARD" />
<Delete GameSpeedType="GAMESPEED_MARATHON" />
<Row>
<GameSpeedType>GAMESPEED_QUICK</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_QUICK</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_EPIC</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_STANDARD</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_STANDARD</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MARATHON</GameSpeedType>
<MonthIncrement>345</MonthIncrement>
<TurnsPerIncrement>200</TurnsPerIncrement>
</Row>
<Row>
<GameSpeedType>GAMESPEED_MARATHON</GameSpeedType>
<MonthIncrement>1</MonthIncrement>
<TurnsPerIncrement>1300</TurnsPerIncrement>
</Row>
</GameSpeed_Turns>
<Eras>
<Update>
<Set SpiesGrantedForEveryone="1" SpiesGrantedForPlayer="0" />
<Where Type="ERA_MEDIEVAL" />
</Update>
<Update>
<Set SpiesGrantedForEveryone="0" SpiesGrantedForPlayer="1" />
<Where TYPE="ERA_RENAISSANCE" />
</Update>
</Eras>
<Language_en_US>
<Update>
<Where Tag="TXT_KEY_TECH_FUTURE_TECH_TITLE"/>
<Set Text="Advancement"/>
</Update>
</Language_en_US>
</GameData>
[/code]
Can anyone tell me where's the problem and help me fix it?