How can I decrease the unit limit?

Rowger

Warlord
Joined
Jul 3, 2017
Messages
103
You know how depending on how many cities/pop you have theres a specific number of units your empire can handle? How do you lower that? For me and the AI.
 
Moderator Action: The "modding tutorial and reference" sub-forum is for completed modding tutorials and reference guides only. All queries and requests for help go in the main Creation and Customisation forum. I've moved this thread to there.
 
I don't remember if there's a way to explicitly disable the system, but this:
Code:
UPDATE Defines
SET Value = 0
WHERE Name = 'MAX_UNIT_SUPPLY_PRODMOD';

should make it so that the production penalty can't be larger than zero - as such effectively disabling it. Ofc there is also a chance that I've got it backwards, and it should be set to 100 instead :p

inb4 complaint about XML:
Code:
<GameData>
    <Defines>
        <Update>
            <Where Name = "MAX_UNIT_SUPPLY_PRODMOD"/>
            <Set Value = "0"/>
        </Update>
    </Defines>
</GameData>

...probably
...idk
...just use the SQL :p

[EDIT]Ooooooh you wanna make it kick in earlier, not remove it! Well, maybe you can't do that then...
 
Last edited:
Code:
<GameData>
	<HandicapInfos>
		<!-- default ProductionFreeUnits at SETTLER is 10 -->
		<!-- default ProductionFreeUnitsPerCity at SETTLER is 3 -->
		<Update>
			<Set ProductionFreeUnits="20" ProductionFreeUnitsPerCity="4"/>
			<Where Type="HANDICAP_SETTLER"/>
		</Update>
		<!-- default ProductionFreeUnits at CHIEFTAIN is 7 -->
		<!-- default ProductionFreeUnitsPerCity at CHIEFTAIN is 3 -->
		<Update>
			<Set ProductionFreeUnits="15" ProductionFreeUnitsPerCity="4"/>
			<Where Type="HANDICAP_CHIEFTAIN"/>
		</Update>
		<!-- default ProductionFreeUnits at WARLORD is 7 -->
		<!-- default ProductionFreeUnitsPerCity at WARLORD is 2 -->
		<Update>
			<Set ProductionFreeUnits="15" ProductionFreeUnitsPerCity="3"/>
			<Where Type="HANDICAP_WARLORD"/>
		</Update>
		<!-- default ProductionFreeUnits at PRINCE + is 5 -->
		<!-- default ProductionFreeUnitsPerCity at PRINCE + is 2 -->
		<Update>
			<Set ProductionFreeUnits="10" ProductionFreeUnitsPerCity="3"/>
			<Where Type="HANDICAP_PRINCE"/>
		</Update>
	</HandicapInfos>
</GameData>
This is for increasing the limits, but all you have to do is alter the numbers being used so that they are lower than normal. And you would have to add in <Update> statements for HANDICAP_KING, HANDICAP_EMPEROR, HANDICAP_IMMORTAL, and HANDICAP_DEITY.

In BNW the AI uses HANDICAP_AI_DEFAULT which has
Code:
<ProductionFreeUnits>7</ProductionFreeUnits>
<ProductionFreeUnitsPopulationPercent>50</ProductionFreeUnitsPopulationPercent>
<ProductionFreeUnitsPerCity>3</ProductionFreeUnitsPerCity>
<ProductionFreeUnitsPopulationPercent> is "50" for all Handicap levels, including the AI one. And each human-playable difficulty level also has a value for <AIUnitSupplyPercent>.

All of this is found in file C:\Program Files (x86)\Steam\SteamApps\common\Sid Meier's Civilization V\assets\DLC\Expansion2\Gameplay\XML\GameInfo/CIV5HandicapInfos.xml for BNW
 
Top Bottom