Adding in New Eras

KarstenChu

Chieftain
Joined
Apr 26, 2006
Messages
61
Is this possible? In my searching, all I can pull is some two year old info that indicates that it's difficult and/or pointing me to the visual tech tree editor, which I can't figure out how to use!
 
It's not difficult, you probably just have to add the new era in and reshuffle the IDs.
 
Where are these ID's located? I'm tracking that the game basically just counts through the ID's, but besides the number in the TXT_KEY_ERA_#, I don't see anything to do with the ID number of the era.

Also, what's the deal with all the <_______Percent> attributes?
 
Code:
<Row>
			[B]<ID>0</ID>[/B]
			<Type>ERA_ANCIENT</Type>
			<Description>TXT_KEY_ERA_0</Description>
			<Strategy>TXT_KEY_ERA_ANCIENT_STRATEGY</Strategy>
			<ArtPrefix>ANCIENT </ArtPrefix>
			<NoGoodies>false</NoGoodies>
			<NoBarbUnits>false</NoBarbUnits>
			<NoReligion>false</NoReligion>
			<ResearchAgreementCost>150</ResearchAgreementCost>
			<EmbarkedUnitDefense>3</EmbarkedUnitDefense>
			<StartingUnitMultiplier>1</StartingUnitMultiplier>
			<StartingDefenseUnits>1</StartingDefenseUnits>
			<StartingWorkerUnits>0</StartingWorkerUnits>
			<StartingExploreUnits>0</StartingExploreUnits>
			<StartingGold>0</StartingGold>
			<StartingCulture>0</StartingCulture>
			<FreePopulation>0</FreePopulation>
			<LaterEraBuildingConstructMod>0</LaterEraBuildingConstructMod>
			<StartPercent>0</StartPercent>
			<BuildingMaintenancePercent>100</BuildingMaintenancePercent>
			<GrowthPercent>100</GrowthPercent>
			<TrainPercent>100</TrainPercent>
			<ConstructPercent>100</ConstructPercent>
			<CreatePercent>100</CreatePercent>
			<ResearchPercent>100</ResearchPercent>
			<BuildPercent>100</BuildPercent>
			<ImprovementPercent>100</ImprovementPercent>
			<GreatPeoplePercent>100</GreatPeoplePercent>
			<CulturePercent>100</CulturePercent>
			<EventChancePerTurn>1</EventChancePerTurn>
			<SpiesGrantedForPlayer>0</SpiesGrantedForPlayer>
			<SpiesGrantedForEveryone>0</SpiesGrantedForEveryone>
			<FaithCostMultiplier>100</FaithCostMultiplier>
			<DiploEmphasisReligion>0</DiploEmphasisReligion>
			<DiploEmphasisLatePolicies>0</DiploEmphasisLatePolicies>
			<SoundtrackSpace>0</SoundtrackSpace>
			<FirstSoundtrackFirst>false</FirstSoundtrackFirst>
			<CityBombardEffectTag>CITY_BOMBARD_EARLY</CityBombardEffectTag>
			<AudioUnitVictoryScript>AS2D_VICTORY_EARLY</AudioUnitVictoryScript>
			<AudioUnitDefeatScript>AS2D_LOSS_EARLY</AudioUnitDefeatScript>
		</Row>
		<Row> 
                        [B]<ID>1</ID>[/B]
			<Type>ERA_CLASSICAL</Type>
			<Description>TXT_KEY_ERA_1</Description>
			<Strategy>TXT_KEY_ERA_CLASSICAL_STRATEGY</Strategy>
			<ArtPrefix>CLASSICAL </ArtPrefix>
			<NoGoodies>false</NoGoodies>
			<NoBarbUnits>false</NoBarbUnits>
			<NoReligion>false</NoReligion>
			<ResearchAgreementCost>200</ResearchAgreementCost>
			<EmbarkedUnitDefense>4</EmbarkedUnitDefense>
			<StartingUnitMultiplier>1</StartingUnitMultiplier>
			<StartingDefenseUnits>1</StartingDefenseUnits>
			<StartingWorkerUnits>1</StartingWorkerUnits>
			<StartingExploreUnits>1</StartingExploreUnits>
			<StartingGold>10</StartingGold>
			<StartingCulture>100</StartingCulture>
			<FreePopulation>0</FreePopulation>
			<LaterEraBuildingConstructMod>0</LaterEraBuildingConstructMod>
			<StartPercent>10</StartPercent>
			<BuildingMaintenancePercent>100</BuildingMaintenancePercent>
			<GrowthPercent>100</GrowthPercent>
			<TrainPercent>80</TrainPercent>
			<ConstructPercent>85</ConstructPercent>
			<CreatePercent>85</CreatePercent>
			<ResearchPercent>67</ResearchPercent>
			<BuildPercent>100</BuildPercent>
			<ImprovementPercent>100</ImprovementPercent>
			<GreatPeoplePercent>100</GreatPeoplePercent>
			<CulturePercent>100</CulturePercent>
			<EventChancePerTurn>2</EventChancePerTurn>
			<SpiesGrantedForPlayer>0</SpiesGrantedForPlayer>
			<SpiesGrantedForEveryone>0</SpiesGrantedForEveryone>
			<FaithCostMultiplier>100</FaithCostMultiplier>
			<DiploEmphasisReligion>2</DiploEmphasisReligion>
			<DiploEmphasisLatePolicies>0</DiploEmphasisLatePolicies>
			<SoundtrackSpace>400</SoundtrackSpace>
			<FirstSoundtrackFirst>false</FirstSoundtrackFirst>
			<CityBombardEffectTag>CITY_BOMBARD_EARLY</CityBombardEffectTag>
			<AudioUnitVictoryScript>AS2D_VICTORY_EARLY</AudioUnitVictoryScript>
			<AudioUnitDefeatScript>AS2D_LOSS_EARLY</AudioUnitDefeatScript>
		</Row>

They're located right there (bolded). You simply update and add IDs as you see fit, making sure they're incremental.
 
The game will add the era, but will break the display if the technology isn't properly placed on the tree with correct eras.
 
Haha, yup, the display broke. I tried placing one of my new techs in my 7th era and I just get a blank screen. By correct placement, do you mean like the x and y coords?
 
I'm going to assume you are adding an era in the middle of the tech tree.

Let's place it between Ancient and Classical.

So now I have Anc - New - Cla - Med - Ren - Ind - Mod - Ato - Inf
The IDs need to match so that it's Anc(0) - New(1) - Cla(2) - Med(3) - Ren(4) - Ind(5) - Mod(6) - Ato(7) - Inf(8)

I need all the techs in Anc to be set to ERA_ANCIENT and within the correct x coordinates
I need all the techs in New to be set to ERA_NEW and within the correct x coordinates
...
Likewise for the rest

If you have an ERA_NEW somewhere where the ERA_MEDIEVAL is supposed to be, then the display will break.

Make sure your X coordinates are correct.
 
OK, I am actually trying to just append eras onto the end. I have a new era, ERA_TERRAN, that I've given <ID>7</ID>. I have a single technology that I'm trying to put into the tech tree in this new slot, so I gave it the x coordinate of 18 since Future Tech is in 17. This seems to have broken it.

Is there a range of acceptable x coordinates? Can the game understand more than 17?
 
Yes it does. How is your screen broken? Can you post a SS?
 
Like this.
 

Attachments

  • 2012-08-19_00002.jpg
    2012-08-19_00002.jpg
    96.6 KB · Views: 86
Well I'll admit it. I didn't expect that.

Let me check the Eras.xml real quick...

Is this Gods and Kings? Or vanilla?
 
Gods and Kings, sir.

Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 8/18/2012 11:08:46 PM -->
<GameData>
<Eras>
<Row>
<ID>7</ID>
<Type>ERA_TERRAN</Type>
<Description>TXT_KEY_ERA_7</Description>
<Strategy>TXT_KEY_ERA_TERRAN_STRATEGY</Strategy>
<ArtPrefix>FUTURE </ArtPrefix>
<NoGoodies>true</NoGoodies>
<NoBarbUnits>true</NoBarbUnits>
<NoBarbCities>true</NoBarbCities>
<ResearchAgreementCost>450</ResearchAgreementCost>
<StartingUnitMultiplier>4</StartingUnitMultiplier>
<StartingDefenseUnits>4</StartingDefenseUnits>
<StartingWorkerUnits>4</StartingWorkerUnits>
<StartingExploreUnits>3</StartingExploreUnits>
<StartingGold>500</StartingGold>
<StartingCulture>700</StartingCulture>
<FreePopulation>6</FreePopulation>
<LaterEraBuildingConstructMod>0</LaterEraBuildingConstructMod>
<StartPercent>80</StartPercent>
<BuildingMaintenancePercent>40</BuildingMaintenancePercent>
<GrowthPercent>50</GrowthPercent>
<TrainPercent>18</TrainPercent>
<ConstructPercent>21</ConstructPercent>
<CreatePercent>21</CreatePercent>
<ResearchPercent>5</ResearchPercent>
<BuildPercent>60</BuildPercent>
<ImprovementPercent>60</ImprovementPercent>
<GreatPeoplePercent>60</GreatPeoplePercent>
<CulturePercent>60</CulturePercent>
<EventChancePerTurn>10</EventChancePerTurn>
<SoundtrackSpace>40</SoundtrackSpace>
<FirstSoundtrackFirst>false</FirstSoundtrackFirst>
<CityBombardEffectTag>CITY_BOMBARD_LATE</CityBombardEffectTag>
<AudioUnitVictoryScript>AS2D_VICTORY_LATE</AudioUnitVictoryScript>
<AudioUnitDefeatScript>AS2D_LOSS_LATE</AudioUnitDefeatScript>
</Row>
</Eras>
<Language_en_US>
<Row Tag="TXT_KEY_ERA_7">
<Text>The Age of Terra</Text>
</Row>
<Row Tag="TXT_KEY_ERA_TERRAN_STRATEGY">
<Text>The Age of Terra</Text>
</Row>
</Language_en_US>
</GameData>
 
Try making that ID 8. ERA_FUTURE should be 7.

And again, TXT_KEY_ERA_7 should be TXT_KEY_ERA_8
 
No love...my tech tree is still blank. I have a technology at x=18 and y=1 to try and populate this era, but no love :(
 
Hm. Weird. You should be able to add a new era into the game. :/

Don't know what to tell you. D:
 
Am I missing something here? What's your step by step for putting a tech in? Does it matter that Future Tech is in an era prior to the final era of the game?
 
It shouldn't matter. I've never had a problem adding techs in before. Adding eras should be a similar process. I don't know why it's crashing. :/
 
No, Future Tech isn't a prereq. This is the tech I'm trying to add to the ERA_TERRAN. The prereqs go back a little...

Spoiler :
<Technologies>
<Row>
<Type>TECH_/Page2/_EGOVERNMENT</Type>
<Cost>5000</Cost>
<Description>TXT_KEY_TECH_EGOVERNMENT_TITLE</Description>
<Civilopedia>TXT_KEY_TECH_EGOVERNMENT_DESC</Civilopedia>
<Quote>TXT_KEY_TECH_EGOVERNMENT_QUOTE</Quote>
<Help>TXT_KEY_TECH_EGOVERNMENT_HELP</Help>
<Era>ERA_TERRAN</Era>
<Trade>true</Trade>
<GoodyTech>true</GoodyTech>
<GridX>18</GridX>
<GridY>1</GridY>
<PortraitIndex>10</PortraitIndex>
<IconAtlas>TECH_ATLAS_2</IconAtlas>
<AudioIntro>AS2D_TECH_EGOVERNMENT</AudioIntro>
<AudioIntroHeader>AS2D_HEADING_TECH_EGOVERNMENT</AudioIntroHeader>
</Row>
</Technologies>
<Technology_PrereqTechs>
<Row>
<TechType>TECH_/Page2/_EGOVERNMENT</TechType>
<PrereqTech>TECH_GLOBALIZATION</PrereqTech>
</Row>
</Technology_PrereqTechs>
<Technology_PrereqTechs>
<Row>
<TechType>TECH_/Page2/_EGOVERNMENT</TechType>
<PrereqTech>TECH_COMPUTERS</PrereqTech>
</Row>
</Technology_PrereqTechs>
<Technology_Flavors>
<Row>
<TechType>TECH_/Page2/_EGOVERNMENT</TechType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>10</Flavor>
</Row>
</Technology_Flavors>
<Language_en_US>
<Row Tag="TXT_KEY_TECH_EGOVERNMENT_TITLE">
<Text>E-Government</Text>
</Row>
<Row Tag="TXT_KEY_TECH_EGOVERNMENT_DESC">
<Text>E-democracy (a combination of the words electronic and democracy) refers to the use of information technologies and communication technologies and strategies in political and governance processes. "e-democracy is concerned with the use of information and communication technologies to engage citizens, support the democratic decision- making processes and strengthen representative democracy."[1] Democratic actors and sectors in this context include governments, elected officials, the media, political organizations, and citizens/voters.[2] E-democracy aims for broader and more active citizen participation enabled by the Internet, mobile communications, and other technologies in today's representative democracy, as well as through more participatory or direct forms of citizen involvement in addressing public challenges.</Text>
</Row>
<Row Tag="TXT_KEY_TECH_EGOVERNMENT_HELP">
<Text>Enter Help text...</Text>
</Row>
<Row Tag="TXT_KEY_TECH_EGOVERNMENT_QUOTE">
<Text>[NEWLINE]"If liberty and equality, as is thought by some, are chiefly to be found in democracy, they will be best attained when all persons alike share in government to the utmost."[NEWLINE] - Aristotle[NEWLINE]</Text>
</Row>
</Language_en_US>
 
Top Bottom