Company of Heroes

Company of Heroes

View Stats:
fnoigy Oct 10, 2020 @ 12:21pm
Cheat codes not working
I'm a big baby and sometimes I like to play with crazy cheats. However, whenever I do a google search and try to use the commands for additional resources, the console just spits back an error. Anybody got actual working commands?
< >
Showing 1-6 of 6 comments
warthorn Oct 11, 2020 @ 12:16am 
Maybe getting something else with the copy, like an extra space or missing bracket? These all work for me, I keep em in a notepad and use them from time to time when the cheating AI gets too annoying.

Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)

Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)

Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

Player_SetResource(Game_GetLocalPlayer(), RT_Command, 5)
fnoigy Oct 11, 2020 @ 6:57am 
Just copy-pasted those. I get
[string "Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)
al 'Game_GetLocalPlayer' (a nil value)
fnoigy Oct 11, 2020 @ 7:11am 
Originally posted by warthorn:
Maybe getting something else with the copy, like an extra space or missing bracket? These all work for me, I keep em in a notepad and use them from time to time when the cheating AI gets too annoying.

Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)

Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)

Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

Player_SetResource(Game_GetLocalPlayer(), RT_Command, 5)
AHA!!! I ignored the directions to add "-dev" after the path in the shortcut. I figured it was already enabled since I could access the dev console already.

Thanks for the help, though! If it 'twern't for your reply, I probably wouldn't have looked into this anymore. And your codes work th' charm!
Truly Rudly Nov 29, 2020 @ 10:54am 
Hey, I get the same error and I can't figure out how to add "-dev" like you said. Any chance you could post some brief instructions? Everywhere else I've looked has just said to "do it" but never how. Big thanks in advance, you're quite literally my last hope!

EDIT: Forget editing the command line, I own it on steam and was able to go into the properties and add "-dev" to "set launch options" and now the cheats work. Hopefully this helps anyone dim like me who took a couple hours to figure that out.
Last edited by Truly Rudly; Nov 29, 2020 @ 11:37am
Exfilton Apr 28, 2024 @ 6:16am 
Originally posted by Truly Rudly:
Hey, I get the same error and I can't figure out how to add "-dev" like you said. Any chance you could post some brief instructions? Everywhere else I've looked has just said to "do it" but never how. Big thanks in advance, you're quite literally my last hope!

EDIT: Forget editing the command line, I own it on steam and was able to go into the properties and add "-dev" to "set launch options" and now the cheats work. Hopefully this helps anyone dim like me who took a couple hours to figure that out.

You find your game's file location

You create a shortcut of the RelicCOH.exe file

You go into properties of the shortcut (by right-clicking)

You put at the end of the "target" bar the "-dev" line (make sure you dont delete the text thats already in the "target" bar)

Apply and save

Run the shortcut and enjoy ;)
Exfilton Apr 28, 2024 @ 6:16am 
Originally posted by Exfilton:
Originally posted by Truly Rudly:
Hey, I get the same error and I can't figure out how to add "-dev" like you said. Any chance you could post some brief instructions? Everywhere else I've looked has just said to "do it" but never how. Big thanks in advance, you're quite literally my last hope!

EDIT: Forget editing the command line, I own it on steam and was able to go into the properties and add "-dev" to "set launch options" and now the cheats work. Hopefully this helps anyone dim like me who took a couple hours to figure that out.

You find your game's file location

You create a shortcut of the RelicCOH.exe file

You go into properties of the shortcut (by right-clicking)

You put at the end of the "target" bar the "-dev" line (make sure you dont delete the text thats already in the "target" bar)

Apply and save

Run the shortcut and enjoy ;)

Forgot to add that you should put a space between the -dev and the already stated text
< >
Showing 1-6 of 6 comments
Per page: 1530 50