• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

Company of Heroes 2 - Increased Population Cap Modification

zimbrax

Enthusiast
Question about this mod.

Does this mod, also affects the AI, because I would like to have more units and AI aswell because I want fair fights.
 

Tommy

Founder
Does this mod, also affects the AI, because I would like to have more units and AI aswell because I want fair fights.

Read the main post, it tells you everything. Yes, this increases the Population Cap, as shown in the title and main post. :p
 

zimbrax

Enthusiast
I know that it increases the population cap, but in the main post it doesn't say, if this mod affects the AI aswell, or just the player, and thats what i asked ?

Ohh and I have the same problem that Psycho ghost has. Bug Splat thing on steam.
 
Last edited:

Hyperion

Founder
The answer is no. It is only for the one player using it.

If you want to increase the AI's then edit the mod and add the same line as the players but
just replace 'player' with World_GetPlayerAt(index)
replace index with 1-8 of how many AI's get it (dont use 1 if you're adding yourself)
 

Hyperion

Founder
I have updated the main thread with the following:

UPDATE:
There has been some updates to WorldBuilder so when you edit the Player_SetPopCapOverride() you need to
completely remove that line and add this:
Code:
g_popCapOverRide = 500
for i = 1, World_GetPlayerCount() do
	local player = World_GetPlayerAt(i)
	Player_SetPopCapOverride(player, g_popCapOverRide)
end

Obviously change the g_popCapOverRide amount to what you prefer.

You can also add when you are making a custom map. You simply add it to the (mapname)_ID.scar under
function OnInitID() AFTER you save the map and BEFORE you export the map package.
 
Last edited:
Top