Some Mod questions

Thandor

Chieftain
Joined
Mar 1, 2019
Messages
21
How can I change which barbarian units are spawned?

Where can I find the values for city tile production?

thanks!

Edit: I just found where to change production from city center tile
 
Last edited:
How can I change which barbarian units are spawned?
In Assets\XML\Civilizations\Civ4CivilizationInfos.xml under CIVILIZATION_BARBARIAN, <Units>. That section normally specifies unique units, but, in the case of the Barbarian civilization, it just makes certain units unavailable. This can be undone by simply deleting <Unit> elements. However, only units that are able to attack will be spawned (by the DLL – CvGame::createBarbarianUnits).
 
In Assets\XML\Civilizations\Civ4CivilizationInfos.xml under CIVILIZATION_BARBARIAN, <Units>. That section normally specifies unique units, but, in the case of the Barbarian civilization, it just makes certain units unavailable. This can be undone by simply deleting <Unit> elements. However, only units that are able to attack will be spawned (by the DLL – CvGame::createBarbarianUnits).

I see.. I was hoping I could make some changes because some mods use to spawn the same unit over and over, but it seems that must be changed within the DLL file
 
The (unmodified) DLL chooses at random from among the units that Barbarians are able to train. If only one type of unit appears, then it could be that Barbarian research (diffusion really; BARBARIAN_FREE_TECH_PERCENT in GlobalDefines.xml) is too slow.
 
Moderator Action: Moved to the general Creation & Customization forum. The Tutorials and References forum is just for complete tutorials, not for asking questions.
 
Back
Top Bottom