Adding in New Eras

Forget prereqs for now. Focus on getting the new era + a tech in there first.
 
I tried adding a new Era for a mod and kept failing.
I read in an older thread here on the forum that it is not possible to add Eras without LUA. A new Era will always break the Tech Tree, according to the thread's info - because the IDs and their order are fixed outside xml (or something like that).

I ended up making the Ancient Era longer and renaming it, to create a "Prehistoric Era".
Not perfectly smooth, but at least it got the techs in the tree.
 
<Type>TECH_/Page2/_EGOVERNMENT</Type>

Um I do not think that is correct? the /Page2/ part, maybe that is why your tech is not showing up? or am I missing something? Also postign some logs of you failed ingame try would help alot :)
 
Anyone else have any idea on how to add another era onto the end of the tech tree?

Edit : Sorry, didn't see second page before asking for help again! Which logs are we looking for here? I keep looking at the logfiles generated in My Games/Civ V/Logs and they seem to be the same everytime!
 
I removed the /Page2/ nonsense. The techs appeared fine in the civopedia, at least the ones assigned to the original eras. That was just part of the code-snippet I downloaded. Removing it, however, did not fix the tech-tree being blank.

If LUA is the way i have to go...I'll try and learn it, haha. I really wouldn't know where to start.
 
This is what FireTuner tells me when I try to open the tech-tree.

TechTree: popupInfo.Data1: 0
TechTree: popupInfo.Data2: -1
TechTree: popupInfo.Data3: 0
TechTree: REFRESHING TECH DISPLAY
Runtime Error: [string "Assets\DLC\Expansion\UI\InGame\TechTree\Tec..."]:79: attempt to index local 'thisTechButtonInstance' (a nil value)
 
Ok, so I was able to get a technology to appear in Column 18 by making it a part of the Information Era. I then added in my Terran Era, but didn't give it any technologies. The tech tree showed in both of these cases. Once I assigned this new tech to this new era, then the tech tree shows up blank like that and, curiously enough, when I choose which tech to research, it says that the tech that I put into this new era was just finished!
 

Attachments

  • 2012-08-20_00001.jpg
    2012-08-20_00001.jpg
    201.9 KB · Views: 54
You need to turn on debugging for stuff too get printed to your logs, you can do that in Config.ini, do debugging and fire tuner options.

If you would be willing, anychance you can post your files, sooo much easier to take a look see than a broken up convo in a forum :)
 
Hey, thanks for offering to check it out. I've attached my work thus far. Instead of trying to add a Terran era after Future, I tried going through and giving all the eras <ID>'s and then trying to insert my new era before Future just in case the game needs Future era and that stupid Future tech in that Future era.
 

Attachments

Right, you are adding things in your xml's that already there in the database:-

Spoiler :
Code:
<GameData>
	<Technologies>
		<Row>
			<Type>TECH_FUTURE_TECH</Type>
			<Cost>9500</Cost>
			<Description>TXT_KEY_TECH_FUTURE_TECH_TITLE</Description>
			<Civilopedia>TXT_KEY_TECH_FUTURE_TECH_DESC</Civilopedia>
			<Help>TXT_KEY_TECH_FUTURE_TECH_HELP</Help>
			<Era>ERA_FUTURE</Era>
			<Repeat>true</Repeat>
			<Trade>true</Trade>
			<GridX>18</GridX>
			<GridY>4</GridY>
			<Quote>TXT_KEY_TECH_FUTURE_TECH_QUOTE</Quote>
			<PortraitIndex>10</PortraitIndex>
			<IconAtlas>TECH_ATLAS_2</IconAtlas>
			<AudioIntro>AS2D_TECH_FUTURE_TECH</AudioIntro>
			<AudioIntroHeader>AS2D_HEADING_TECH_FUTURE_TECH</AudioIntroHeader>
		</Row>
	</Technologies>
</GameData>

This Tech is already present so you need to use Update to alter the database to reflect you changes, like so:-

Spoiler :
Code:
<GameData>
	<Technologies>
		<Update>
			<Set GridX="18"/>
			<Where Type="TECH_FUTURE_TECH"/>
		</Update>
	</Technologies>
</GameData>

Same goes for the changes you made to CivVEras.xml, the rest of you files look fine :)

Hey, thanks for offering to check it out. I've attached my work thus far. Instead of trying to add a Terran era after Future, I tried going through and giving all the eras <ID>'s and then trying to insert my new era before Future just in case the game needs Future era and that stupid Future tech in that Future era.

Eras already have ID's defined, you just dont see them all. And I'd go back to how you were doing it tbh, you encountered problems due to you duplicating entires as explained above.
 
Back
Top Bottom