View Full Version : XML Or PYTHON question for modders


Riker13
Mar 13, 2006, 10:14 AM
Dear All

Quick bit of help, I want one of my civs I have created to only have 1 tech only.

In XML I can disable techs but it means disabling a lot, is there a quicker way in XML to do this or can it be a Python thing, and if it is Python any idea how to do it.

Many Regards :crazyeye:

IVZanIV
Mar 13, 2006, 03:54 PM
Do you mean 1 tech total or 1 tech at the start of the game?

SailorLazarus
Mar 13, 2006, 04:45 PM
Wow. Now that would restrict the game. Only one tech throughout all the game. :lol:

But seriously, if you just mean that you want them to start with only one tech, then only list one under the <FreeTechs> tag in the Civ4CivilizationInfos.xml file.

IVZanIV
Mar 13, 2006, 05:38 PM
Heh, I know Sailor... I was like... Whoa.

But yeah, if that's what you were looking for, Sailor is right.

Riker13
Mar 14, 2006, 02:42 AM
Yep its just one tech throughout the whole game, what I want it for is the Zulus, I only want them to have the Zuluwarrior and thats it, ok maybe I will let them have a few more techs but no more units just the Zuluwarrior.

I know you can do this in XML but it means listing loads of techs, just thought there might be an easier way.....maybe not.

Oh well thanks for your help anyway.

If anyone does know a easier way please let me know.

Belizan
Mar 14, 2006, 05:08 AM
You can put a line in CannotResearch (in your customized version of GameUtils) to test if the civilization type is zulus and then return True (disallowing all tech research by the zulus).

Riker13
Mar 14, 2006, 05:33 AM
Thanks Belizan, I will give it a go.