Company of Heroes

Company of Heroes

335 ratings
How to use console commands on Company of Heroes
By son of a shepherd
a guide on how to use console commands if you dont know how to use them.
2
6
2
2
   
Award
Favorite
Favorited
Unfavorite
{First Step}
Seting the game up for console commands


  • Step 1 Go to the game.
  • Step 2 Right click on the game select game properties.
  • Step 3 Click on launch options.





















  • Step 4 Type this exactly as i do -dev and then hit the enter key.













  • And that's it now when you start a match that's not online hit
  • ctrl+shift+` For U.S keyboards
  • German keyboards it will be ctrl+shift+ö
  • Spanish keyboards ctrl+shift+Ñ and ctrl+shift+ ¬
  • You can also use ctrl+shift and ` or ¬ and for some ctrl+shift and ' or @




{First Step For Non Steam Users}
How to set game up without steam


  • Edit your games shortcut executable and then add -dev to the target line
    "C:\Program Files\...\RelicCOH.exe" -dev).

    But just get steam it makes it alot easier.

  • looking at the non steam users like.












  • Driving by on the superior steam war machine
{Second step now you can use console}
Now you can use console here are a few commands


1.Change Popcap } Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

2.Change Resources} Player_SetResource(Game_GetLocalPlayer(),RT_Fuel, 9999)

3.Change Resources} Player_SetResource(Game_GetLocalPlayer(),RT_Manpower, 9999)

4.Change Resources} Player_SetResource(Game_GetLocalPlayer(),RT_Munition, 9999)

5.Toggle FOW On/Off} FOW_RevealAll

6.Toggle Taskbar Off} Taskbar_hide

7. Toggle Taskbar On} Taskbar_show


In order for this to work you need to type it in exactly like i did use uppercase letter where there's uppercase letters also the } is not included in the first part of the console is the first uppercase letter for EX Player.




{Other Useful Commands}
Cheats

  • Change command point values}And for Command points replace RT_ Manpower with RT_Command
  • Big Head Mode} ee_bigheadmode(1/0) – Toggles the Big Head mode on (1) or off (0) if you want your infantry or units to look ridiculous.

    Technical console commands
  • Set your game to custom speed} setsimrate(x)Sets the game speed, where X represents a number (i.e. setsimrate (3)) and the default speed is 10.
  • Toggle taskbar Off} taskbar_hide – Hides the Taskbar
  • Toggle taskbar On} taskbar_show – Shows the Taskbar
  • Toggle messages Off} Message_Hide – Hides all incoming messages
  • Toggle messages Off} Message_Show – Shows all incoming messages
  • Toggle FPS} statgraph_channel("fps") – Displays how many frames-per-second your game is running at, useful.
  • Restart Game} restart
  • Leaves Current Game}abort
  • statgraph() – Enables the "statgraph_channel" codes
    Camera_SetTuningValue(TV_DistMax, 2048)


{Updates for your new and improved guide}



  • Fixed minor spelling errors 2/17/16
  • Added picture of keyboard 2/17/16
  • ]Added new keboard options 2/19/16
  • Added new consol commands 2/19/16
  • Allso a special thanks to my friend mackmudge 2/19/16
  • Added to other categories moding configuration 5/15/16
  • New categore added new commands found 12/29/16
  • Added bulet points 1/14/17
  • Added new art 1/14/17
  • Fixed headings 1/14/17
  • Updated guide photo 1/14/17
  • Fixed punctuation and spelling errors 1/14/17
  • Added new section Big thanks 1/14/17
  • Added new keyboard Info 9/9/18
  • Added New section for non steam users fr just download steam tho. 1/8/19
  • Change format of some parts of the guide 1/8/19
  • New keyboard info 1/8/19
  • Fixed punctuation errors 1/8/19
  • Changed section name from new commands found to other useful commands 1/8/19



    Thanks also let me know about any issues you have.
{Big Thanks To Everyone}
  • Thank all of you for your insite and feed back i wouldent be doing this without you guys and gals.
  • If you ever find new comands or find errors just message me or let me know in the coments
  • 192 Comments
    luansergiovc1 Feb 19 @ 5:14am 
    Command to turn the player into AI during the match:

    To let AI take over local player:
    Misc_AIControlLocalPlayer()

    To enable player AI:
    AI_Enable(Game_GetLocalPlayer(), true)

    To enable all AI players:
    AI_EnableAll(true)

    To disable player AI:
    AI_Enable(Game_GetLocalPlayer(), false)

    To disable all AI players:
    AI_EnableAll(false)

    To set the difficulty level of this AI player:
    AI_SetDifficulty(Game_GetLocalPlayer(), AD_Easy)
    AI_SetDifficulty(Game_GetLocalPlayer(), AD_Standard)
    AI_SetDifficulty(Game_GetLocalPlayer(), AD_Hard)
    AI_SetDifficulty(Game_GetLocalPlayer(), AD_Hardest)

    Note: The player AI is set to Hard difficulty by default.
    Note: The player AI will not get boosts on: resources, stats and modifiers.

    Source: https://scardoc.coh.fi/function_list.htm
    NoBenNotAgain Jan 20 @ 4:55pm 
    These don't work, now. I get the "nil value" message for all of them. Also needed to use "dev-" instead of "-dev."
    Aspius Aug 9, 2023 @ 7:52am 
    All options below end up with a game mode without live players...
    LEMAN_RUSS Mar 14, 2023 @ 7:42pm 
    Alright i found out why the cheats was not working seems like -dev is not working BUT dev- is
    Why did it change? i have no clue but it looks like it change over to dev- so type in dev- in the launch thing and all the commands above me should work as normal no need to go into the files to make a short cut
    Linrox Mar 6, 2023 @ 10:23pm 
    Cheats didn't work for me. I just get 1: attempt to call global 'Game_GetLocalPlayer' (a nil value)

    Gives the same in main menu and ingame
    jfer23 Nov 11, 2022 @ 3:39pm 
    Kudos to TheUnknownDude!

    Your hack worked. For other players still having a hard time, try this.

    step 6. C: Program Files - Steam - steamapps - common - Company of Heroes

    Once there, right click on RelicCOH (application) go to properties, select create shortcut, right click on that shortcut and go to the shortcut tab.

    Where it says target, you will see: "C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes\RelicCOH.exe"

    This is where you add the (space) -dev to the end.

    To start the game, launch COH from that shortcut and go to the cheat menu.

    Now you can enter the cheat codes and they should work.

    Have fun guys.
    TheUnknownDude Nov 10, 2022 @ 12:32am 
    I want to add this down here.

    2022/11/10, How to enable Console command (Mainly the Cheat commands)

    1. Go to Library, Find Company of Heroes
    2. Right click on it, Go to Properties
    3.Go to Local Files, Click Browse
    4. Find RelicCOH.exe
    5. Right click on it, Make a "RelicCOH.exe shortcut"

    6. Find this line of words
    "C:\Program Files (x86)\Steam...RelicCOH.exe"
    Add -dev behind it with a Space between like this.
    "C:\Program Files (x86)\Steam...RelicCOH.exe" -dev

    7. Launch the game from the Shortcut
    8. Use the Console commands as above shows.


    I found out that Steam's Launch Option NO LONGER WORKS With "-dev" to enable Cheat console commands.
    So if anyone sees this, Enjoy.

    If the Original Guide Post sees this, Idk if you want to remove that Steam launch option as it doesn't work for me at all.

    P.S
    If you're an EAW Enjoyer and want to use Console commands.
    Add -applaunch 228200 -mod europe_at_war -dev
    and yes, Launch the Mod via the same shortcut of "RelicCOH.exe shortcut"
    wallst Oct 20, 2022 @ 10:45am 
    OK I am very frustrated, I cannot find the answer to this anywhere. I need some help PLEASE. I can access the console but, when the commands are entered I get the "attempt to call global 'Game Get LocalPlayer' (a nil value)". Yes I have tried several times with just about all the resource commands. I even tried the "FOW_RevealAll" but got something like "EOF" which Im assuming is end of file. I would very much appreciate someone to tell me what the "F**k I'm doing wrong. I've even copied and pasted the commands as others have typed.

    Help please.
    Starker May 10, 2022 @ 1:37am 
    Can we use console commands to change the keybindings?
    UNITED-STATES-EMPIRE!!! Dec 29, 2021 @ 11:13pm 
    TemplarKnightAc

    PLEASE MESSAGE ME

    i know how to do it for eaw