How to mod pre-reqs for Iron Working

shanepg

Chieftain
Joined
Nov 9, 2011
Messages
30
Gents,

Thanks for all your help so far with my on going mod - I am slowly making the Civ 5 I want to play (once it's ready and tested I'll share it).

Another question though...
How do you modify the pre requisite of a specific tech?
In the tech XML I see only a grid X and Y reference.
I would like to make it so that Iron Working has more pre-req techs - Bronze working, Construction and Mathematics. This way I can have a decent period of using spearmen horsemen etc before getting iron units, rather than rushing for iron working. (I'm using extended era mod as a base).

Thanks for any help
 
Gents,

Thanks for all your help so far with my on going mod - I am slowly making the Civ 5 I want to play (once it's ready and tested I'll share it).

Another question though...
How do you modify the pre requisite of a specific tech?
In the tech XML I see only a grid X and Y reference.
I would like to make it so that Iron Working has more pre-req techs - Bronze working, Construction and Mathematics. This way I can have a decent period of using spearmen horsemen etc before getting iron units, rather than rushing for iron working. (I'm using extended era mod as a base).

Thanks for any help

Scroll down in the Techs XML and you'll see a <Technology_PrereqTech> field.

Okay, sorry, that's the short answer. If you want to mod them, you follow the same steps as normal. Using your example, I'd just add:

Code:
 <Technology_PrereqTechs>
  <Row>
   <TechType>TECH_IRON_WORKING</TechType>
   <PrereqTech>TECH_CONSTRUCTION</PrereqTech>
  </Row>
  <Row>
   <TechType>TECH_IRON_WORKING</TechType>
   <PrereqTech>TECH_HORSEBACK_RIDING</PrereqTech>
  </Row>
 </Technology_PrereqTechs>

Just keep in mind that the techs have to be aligned properly or the bars won't show up correctly.
 
Thanks,

I'll give it a go.

I'm not sure what you mean by

Just keep in mind that the techs have to be aligned properly or the bars won't show up correctly.
 
Thanks,

I'll give it a go.

I'm not sure what you mean by

Putmalk said:
Just keep in mind that the techs have to be aligned properly or the bars won't show up correctly.

Essentially, for example, if Iron Working is right below Construction on the tech tree, and you try to have Construction be the prereq, the prerequisite will work correctly but the bars on the tech tree that you see in game will look corrupted. You have to make sure the prereqtech is always before the regular tech. It was just a simple reminder. :)
 
I get it.
Best to make the pre-reqs all of the ancient era techs ie sailing, calendar, writing, trapping, wheel, masonary and bronze working rather than a couple of techs from the classical era eg construction and mathematics.
I'll let you know how I get on.

Thanks again
 
Also note that you can't really have lines cross each other. You CAN do it, but it'll nearly always look horrible.
 
FYI

I made all the ancient era techs pre-req's for Iron Working and it was only ever the first 3 in the list (Bronze Working and the next 2) that were considered by the game as pre-reqs. I then made Bronze Working, HorseBack Riding and Philosophy the pre reqs.
Code:
<GameData>
	<Technology_PrereqTechs>
		<Row>
			<TechType>TECH_IRON_WORKING</TechType>
			<PrereqTech>TECH_BRONZE_WORKING</PrereqTech>
		</Row>
		<Row>
			<TechType>TECH_IRON_WORKING</TechType>
			<PrereqTech>TECH_HORSEBACK_RIDING</PrereqTech>
		</Row>
		<Row>
			<TechType>TECH_IRON_WORKING</TechType>
			<PrereqTech>TECH_PHILOSOPHY</PrereqTech>
		</Row>
	</Technology_PrereqTechs>
</GameData>
The gameplay is fine, but as mentioned the graphic on the techtree doesn't work.

I will also need to tinker with some other advances or else I'll end up being able to get knights before swordsmen!
 
Back
Top Bottom