Company of Heroes 2

Company of Heroes 2

View Stats:
more manpower WITHOUT trainer?!
I have followed this guide to get higer popcap and i works very good ( http://www.coh2.org/topic/12410/how-to-custom-population-cap )

but after having 100/300 popcap the manpower is down at like 91.. Which isn´t fun.
is there some code that let´s me adjust the manpower rate?

i DO NOT want any trainer

Thanks
< >
Showing 1-15 of 20 comments
Pinhead Mar 17, 2014 @ 4:02pm 
This involves a little modding, so here it is. Plus this is completely safe, as the power to mod was given to us by Relic. In your Steam Games Library, right click on "Company of Heroes 2" and open up properties. Under the 'General' tab, click on 'set launch properties', and enter this exactly: -dev
What this does is enable developer mode where an ingame SCAR command console can be used. Once this is done, start up the game and set up a custom game (you will notice that Automatching is disabled, because only other players with the -dev command line can play with you). After the map loads, press 'ALT+SHIFT+TILDE(~)'. This will open up the SCAR command console. Then enter this following line EXACTLY, otherwise you'll get a SCAR error and the game will pause (not freeze or hang, just press ESC and then again to unpase):

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Munitions, 9999)

You can replace 9999 with any number between 0 and 9999. It wont go higer or lower.
Here is the command to set your commander points.
Player_SetResource(Game_GetLocalPlayer(), RT_Command, 16)
I believe you can set the command points to however many you want, but you shouldn't go too high, perhaps staying below 20 should be fine.
I'm still trying to figure out how to change the resource gain per minute, instead of just instantly increasing it. I'll let you know when I get it to work.

Here's how to change the resource rate per minute.
Modify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Manpower, 2)
Modify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Fuel, 2)
Modify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Munition, 2)
This will multiply the resource per minute rate by 2. So lets say, you start with +292 Manpower income per minute, entering the line above will times that number by 2 and make it +592. The same thing with Fuel and Munitions. There is a limit I believe. I haven't been able to go above +1200, or about there. It can also be done to other AI players in the game. Just replace 'Game_GetLocalPlayer()', with 'World_GetPlayerAt(index). Replace 'index' with a player number between 1 and 8. This will make for some intense battles.

Here's the full thread on this.
http://steamcommunity.com/workshop/discussions/-1/648814841518164863/?appid=231430
Last edited by Pinhead; Mar 17, 2014 @ 4:03pm
Rainbow Dash Apr 28, 2014 @ 12:06pm 
thank you very much!! best instructions too! :)
striking_koga Oct 25, 2014 @ 2:06am 
so i cant seem to get any of the other munitions stuff to work everything else does and i also cant get the resource rate stuff to work i have been just copy and pasting but even when i type it in manually it still doesnt work any suggestions
Trigg Oct 25, 2014 @ 9:11am 
Change RT_Munitions to RT_Munition in the example code above.
Pinhead Oct 25, 2014 @ 12:50pm 
Originally posted by striking_koga:
so i cant seem to get any of the other munitions stuff to work everything else does and i also cant get the resource rate stuff to work i have been just copy and pasting but even when i type it in manually it still doesnt work any suggestions


Originally posted by Trigg:
Change RT_Munitions to RT_Munition in the example code above.

Trigg is correct. Make sure you don't add any extra letters at the end of the resource name.

If you still can't get it to work, here's a link to the Cheat Commands mod.
http://www.moddb.com/mods/cheatcommands-mod

It simplifies those SCAR commands to keyboard commands. It also adds a TON of new features, like the ability to increase a units damage, instantly heal units, spawn any unit at the press of a key, and much more. Follow the installation instructions to get it to work.
Last edited by Pinhead; Oct 25, 2014 @ 12:53pm
Aetheogh Oct 26, 2015 @ 11:06am 
Are there any more of these or listing of update SCAR command Codes for SINGLEPLAYER ONLY. Been looking for modifying the recharge timers for abilities, increasing the building rate for troops. Majority of informaiton looked at via search engines has eithier been false, misleading or outdated. Not looking to mod anything, just something to use ingame singleplayer player via the SCAR Console.

Thx
Pinhead Oct 26, 2015 @ 11:54am 
Originally posted by Aetheogh:
Are there any more of these or listing of update SCAR command Codes for SINGLEPLAYER ONLY. Been looking for modifying the recharge timers for abilities, increasing the building rate for troops. Majority of informaiton looked at via search engines has eithier been false, misleading or outdated. Not looking to mod anything, just something to use ingame singleplayer player via the SCAR Console.

Thx
That's a good question. I don't know. I found these SCAR lines on this website http://fortresseuropemod.com/scardoc/frameset.htm
You'll notice that this table is from COH 1, but the commands I posted here work with COH 2 because its pretty much the same engine. Good luck trying to find anything, took me a while to find what I was looking for.

Edit: WAIT! Scratch that! I just found what you might be looking for. It's under the Modifiers subfolder branch, here's an example of one: Modify_AbilityDelayTime.
Last edited by Pinhead; Oct 26, 2015 @ 11:56am
Rabidnid Oct 26, 2015 @ 1:06pm 
In the options settings of you map selection choose Rome annhiliation no upkeep pop cap 999 for a straight 300 manower though the whole game.
Last edited by Rabidnid; Oct 26, 2015 @ 1:07pm
Veks May 26, 2016 @ 2:31pm 
Can anyone help the game keeps crasging when i put in the commands in a multiplayer game
Last edited by Veks; May 26, 2016 @ 2:31pm
Pinhead May 26, 2016 @ 6:42pm 
Originally posted by Vexingly SecC:
Can anyone help the game keeps crasging when i put in the commands in a multiplayer game
What? Why would you even try using these in a multiplayer game? First of all, it's cheating, and it is not even possible. It causes a sync error. Only works in custom games against AI.
Last edited by Pinhead; May 26, 2016 @ 6:43pm
Black Horse Jul 13, 2016 @ 4:03am 
Originally posted by Antares30:
This involves a little modding, so here it is. Plus this is completely safe, as the power to mod was given to us by Relic. In your Steam Games Library, right click on "Company of Heroes 2" and open up properties. Under the 'General' tab, click on 'set launch properties', and enter this exactly: -dev
What this does is enable developer mode where an ingame SCAR command console can be used. Once this is done, start up the game and set up a custom game (you will notice that Automatching is disabled, because only other players with the -dev command line can play with you). After the map loads, press 'ALT+SHIFT+TILDE(~)'. This will open up the SCAR command console. Then enter this following line EXACTLY, otherwise you'll get a SCAR error and the game will pause (not freeze or hang, just press ESC and then again to unpase):

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Munitions, 9999)

You can replace 9999 with any number between 0 and 9999. It wont go higer or lower.
Here is the command to set your commander points.
Player_SetResource(Game_GetLocalPlayer(), RT_Command, 16)
I believe you can set the command points to however many you want, but you shouldn't go too high, perhaps staying below 20 should be fine.
I'm still trying to figure out how to change the resource gain per minute, instead of just instantly increasing it. I'll let you know when I get it to work.

Here's how to change the resource rate per minute.
Modify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Manpower, 2)
Modify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Fuel, 2)
Modify_PlayerResourceRate(Game_GetLocalPlayer(), RT_Munition, 2)
This will multiply the resource per minute rate by 2. So lets say, you start with +292 Manpower income per minute, entering the line above will times that number by 2 and make it +592. The same thing with Fuel and Munitions. There is a limit I believe. I haven't been able to go above +1200, or about there. It can also be done to other AI players in the game. Just replace 'Game_GetLocalPlayer()', with 'World_GetPlayerAt(index). Replace 'index' with a player number between 1 and 8. This will make for some intense battles.

Here's the full thread on this.
http://steamcommunity.com/workshop/discussions/-1/648814841518164863/?appid=231430



Hey Guys,

I'm Playing this on mac, and the first set of codes works (Player_SetResource...) apart from munitions, which returns an 'attempt to call a nil value' error. The Modify_PlayerResourceRate ones all return that same error, is there anything I'm doing wrong? I've typed them perfectly and all variations of them I've found online such as trying World_GetPlayerAt(1), etc but nothing's working! This is all I want from life haha.

Thank you very much, forums are awesome, this is where the internet lives.
Fokkas Dec 11, 2016 @ 10:07pm 
Is there a way to get this in a mod? I'm aware of the cheatmod but I don't want a whole bunch of cheats and stuff that act like a trainer. I just want a simple mod that automatically increases pop cap, starting resources, and resource gain rate for the player but I would like it to be automatic without requiring me to put in a console command or hitting keys for each offline skirmish that I do.
citizenbfk Jan 28, 2017 @ 6:28am 
when I press press 'ALT+SHIFT+TILDE(~)' I get just a black half screen. It won't take text. Is This the SCAR command console. (It's 2017 and I'm on a Mac). --- BTW, if there's a trainer I'd like one.
A Table Jan 28, 2017 @ 6:30am 
Originally posted by citizenbfk:
when I press press 'ALT+SHIFT+TILDE(~)' I get just a black half screen. It won't take text. Is This the SCAR command console. (It's 2017 and I'm on a Mac). --- BTW, if there's a trainer I'd like one.
Dont necro. Pleas.
Pinhead Jan 28, 2017 @ 9:59am 
Originally posted by citizenbfk:
when I press press 'ALT+SHIFT+TILDE(~)' I get just a black half screen. It won't take text. Is This the SCAR command console. (It's 2017 and I'm on a Mac). --- BTW, if there's a trainer I'd like one.
That is not the scar console. The SCAR console should be grey, not black. Plus I don't have a mac so not sure if I can help much.
Last edited by Pinhead; Jan 28, 2017 @ 9:59am
< >
Showing 1-15 of 20 comments
Per page: 1530 50

Date Posted: Jan 5, 2014 @ 4:56am
Posts: 20