How to remove technologies or units ONLY for one civilization?

Andrew Harlane

Chieftain
Joined
Nov 30, 2016
Messages
7
Hello everybody:
I'm new at this wonderful game. I was thinking about creating a mod so that technologies and units are not available for all civilizations. I know it is possible to remove a technology or unit for all factions by modifying the XML files, but I do not figure out how to make a technology/unit unavailable for one or two civs but not for the rest, for example, the gunpowder. I do not know if it is even technically possible.
Could you help me please, or provide me with some examples? I think this idea would allow to make extremely custom games.
Thank you so much in advance.
 
Hello everybody:
I'm new at this wonderful game. I was thinking about creating a mod so that technologies and units are not available for all civilizations. I know it is possible to remove a technology or unit for all factions by modifying the XML files, but I do not figure out how to make a technology/unit unavailable for one or two civs but not for the rest, for example, the gunpowder. I do not know if it is even technically possible.
Could you help me please, or provide me with some examples? I think this idea would allow to make extremely custom games.
Thank you so much in advance.
I think that is done using the XML in the XML/Civilizations folder. You can exclude units and buildings from a nation using those files.

The Ancient Europe by pie_at mod does limit technologies by nation but I have not looked into how it is done.
 
The only all XML solution to limit techs by civilisations is to make a TECH_SPAIN, let Spain start with it and make it unresearchable (cost -1). Then all techs that have TECH_SPAIN as a prereq can only be researched by Spain. Conversely, let everyone else start with TECH_NOT_SPAIN and Spain cannot research techs that require it.
 
Unless I misunderstand the request, the DisableTech tag in Civ4CivilizationInfos.xml should do the job:
Code:
<DisableTechs>
   <DisableTech>
       <TechType>TECH_GUNPOWDER</TechType>
       <bDisableTech>1</bDisableTech>
   </DisableTech>
</DisableTechs>
 
Duh. Now I feel stupid, I didn't know about this tag.
 
Back
Top Bottom