How can I make a new tech?

Lonkut

..--""--..
Joined
Jul 13, 2004
Messages
862
Location
......
I tryed pasting a tech, change its name and giving it to the romans. But now everybody has that tech. How can I make a tech_none like in c3c and give it to one civ?
 
Haven't tested it, but I'd go to Civ4CivilizationInfos.xml and fiddle with this bit:
Code:
<FreeTechs>
	<FreeTech>
		<TechType>TECH_FISHING</TechType>
		<bFreeTech>1</bFreeTech>
	</FreeTech>
</FreeTechs>
Obviously replace TECH_FISHING with whatever your tech is called.

The line just below that
Code:
<DisableTechs/>
I would guess makes it so that civ cannot have the tech specified. It'd be in the same format as the free techs bit probably.
 
I haven't tried it but maybe <bDisable> will make it impossible to research?
Or possibly setting <iCost> to -1.
 
Those are not my problems the thing that I can't get around is that ALL civs start with the tech even though I put in <Era>NONE</Era>.
 
Well, <Era>NONE</Era> might not be doing what you want it to be doing.

If you want a Civ to start with a certain tech, then the way I posted, I'm almost positive, is the way to do it - as that is the part of code which specifies which civilizations start with which technology.
 
My guess: since you can choose which age to start in if you start in any age it'll give all techs before that one... and none comes before the ancient age. So, since you can't choose to start in age none, everyone will get it.
 
yeah snarko's right but what do I put then? if I put none then everybody gets it so what do I put that nobody can get it?
 
WTH nobody knows how to make a civ-specific tech?
EDIT:Nope it doesn't work the civ with the disabled tech can still research that tech.
I wrote:
<DisableTechs>
<Type>TECH_MINING_1</Type>
</DisableTechs>


"TECH_MINING_1" is the new tech I made.
 
I would assume you need to do it exactly like freetechs work:
<DisableTechs>
<DisableTech>
<Type>TECH_MINING_1</Type>
<bDisableTech>1</bDisableTech>
</DisableTech>
</DisableTechs>
 
<bDisable> - in CIV4TechInfos.xml - will make it impossible to research. So if you want a civilization to start with it and then noone else ever getting it you can use that. Saves you the trouble of having to disable it for all the civs ;)

Ofcourse, if you want only one civ to be able to research it, then you'll have to use the long way around with disabletechs for all other civs. I haven't tested that.
 
Back
Top Bottom