Post tutorial Report RSS Getting started [Up to date, please read this]

In this tutorial you will learn how to install and use CheatCommands Mod. Before going any further please make sure to obtain latest version available from the downloads section of this mod page.

Posted by on - Basic Installers

Before even getting started, you need latest version of CheatCommands Mod.
Please see downloads section for obtaining the latest version of CheatCommands mod.

Requirements:

  • The most up-to-date version of the game. CheatCommands may not work at all with older versions of the game.

1. Once you have downloaded the latest version, extract it to the Company of Heroes 2 installation folder. By default this is Company of Heroes 2 install folder in Windows 7 is C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\

2. You should now have a folder called "ccm" in your Company of Heroes 2 installation folder. You can now move to the next step which is running the game in -dev mode.

3. Go to your steam games collection, right click Comapany of Heroes 2 and select Properties.
3.1 Under the General tab click the Set launch options... button.
3.2 Add "-dev" without quotation marks (Make sure to leave space between additional tags such as "-nomovies", i.e. "-dev -nomovies") and click OK.
3.3 Close the game's Properties window and launch Company of Heroes 2.

If you are able to select Ranked game mode (it does not have a lock) COH2 IS NOT IN DEV MODE. Please go back in this tutorial and make sure everything is done by the instructions.


Image #1: Automatch vs. Players and vs. AI is locked in -dev mode. If you don't have these locked, go back in this tutorial and make sure you have followed the instructions.

Note! In order to play normal ranked games or custom games with other players you must remove the "-dev" tag from the game launch properties.

4. Now that you have successfully set your Company of Heroes 2 to run in -dev mode, you can now create a custom came, launch single player campaign mission, or launch a TOW mission.

Once you have started the game and you are in-game, press Control + Shift + ~ (tilde) to open the game console. If this does not work for you, try using Control + Shift + Ö instead. This works with Scandinavian and other European keyboards.

5. Now that you have the game console open, copy and paste in this text (select it here, press Control + C to copy, press Control + V to paste in the console)

dofile("ccm/ccm.scar")



Image #2: Running the command in the game console.

And press Enter to run the command. If at this point you get errors, like "ccm/luaconstsauto.scar:21:attempt to call global 'BP_GetEntityBlueprint'(a nil value)"

a) Either you are not in the -dev mode
or b) your game is outdated and does not support -dev mode properly. Please go back in the tutorial to make sure you are in -dev mode. Also make sure you have the latest version of the game installed. Steam should do this automatically. If you have other version than Steam version, I'm unable to help you.

Image #3: Example of a successful CheatCommands Mod initialization.


If you were able to complete all the steps above without errors and you got similar results as displayed in the provided screen captures, you are now good to go!

Press Control + Shift + F1 for main help page. This page has EVERYTHING you need to know. It has a complete list of the available hotkeys. To really get started, select your HQ by pressing F1 or select any of your existing units, like pioneers or base MG nest. Then press Control + Q. You just spawned your first unit to your mouse position. Good luck with the rest!

Some common hotkeys:
Control + Shift + F1: Main help page
Control + Shift + F2: Squad spawning hotkeys
Control + Shift + F3: Entity spawning hotkeys
Control + Shift + F4: Commander ability granting hotkeys
Control + Shift + Space: Toggle sub-page
Control + Space: Toggle what units to spawn (German / Soviet)
Control + Delete: Delete selected units



Post comment Comments  (0 - 50 of 59)
Guest
Guest - - 690,289 comments

i did as it said to but it keeps saying that the file and or directory ccm/ccm.scar does not exist...

Reply Good karma Bad karma0 votes
Janne252 Author
Janne252 - - 263 comments

Provide a screenshot of this event please.

Reply Good karma+1 vote
wheelmandan
wheelmandan - - 1,312 comments

im haveing it too is it cuz not with the exp?

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

gertr
gertr - - 1 comments

Does not work for some reason - I use steam, so an update might have outdated the 1.2 version? I get attempt to get World_getGameTime something value is nill.

Reply Good karma Bad karma+2 votes
Janne252 Author
Janne252 - - 263 comments

Provide a screenshot of this, please.

Reply Good karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

excel90
excel90 - - 11 comments

ifi dont have steam

Reply Good karma Bad karma+1 vote
Janne252 Author
Janne252 - - 263 comments

There's nothing I can do about that. I'm only supporting the Steam version of the game with CCM.

Reply Good karma+1 vote
galaxia45
galaxia45 - - 4 comments

Please help Imageshack.com

I don't know what to do anymore

Reply Good karma Bad karma+1 vote
Terrorist13
Terrorist13 - - 50 comments

I have steam version, all I have done STRICTLY according to the instructions, but when I enter the command in the console, the game says critical error.

Reply Good karma Bad karma+2 votes
sblstorage
sblstorage - - 1 comments

Im running the latest version of the game with the latest version of the mod. When I enter the dofile("ccm/ccm.scar") command I get this error:

Imgur.com

Reply Good karma Bad karma+2 votes
neutralhero999
neutralhero999 - - 6 comments

It's 2015, I followed everything, I got the latest version, -dev mode is active and I still get the same error as this guy.

ccm\ccm_config.scar:2: attempt to call global 'World_GetGameTime' (a nil value)

everytime I enter dofile("ccm/ccm.scar"). it's been a rough year.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

Hey please, i got the same error World_GetGameTime ( a nil value).

What's the fix please ?

Reply Good karma Bad karma+1 vote
Janne252 Author
Janne252 - - 263 comments

Make sure to have your game up to date and make sure to use the latest version of this mod.

Reply Good karma+1 vote
Guest
Guest - - 690,289 comments

Followed the instructions for everything, I know Im in DEV mode cause the options are locked as it said they should be. However it wont let me past anything (Ctrl +V) so I just type it in manually. When I type in what the tutorial said, it says cannot find file, however when I type in "dofile("ccm_v1.5.2") it tells me permission is denied. Any help??

Reply Good karma Bad karma0 votes
Janne252 Author
Janne252 - - 263 comments

extract the zip as showed in the tutorial video.

Reply Good karma+1 vote
ojasalud
ojasalud - - 4 comments

i have the same problem "World_GetGameTime ( a nil value)". i have a latest game version and also latest mod version. what to do?

Reply Good karma Bad karma+1 vote
alieimran
alieimran - - 1 comments

Do I have to copy dofile("ccm/ccm.scar") in console every time in order to play in cheat mod ? Hope you will answer it quickly.

Reply Good karma Bad karma0 votes
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

trevrath
trevrath - - 1 comments

I get the below error whenever i try to boot up the mod

I.imgur.com

Any help?

Reply Good karma Bad karma+1 vote
sulaimanaw
sulaimanaw - - 5 comments

I use Game version: 3.0.0.9704, which download is working?

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

I use game version 3.0.0.17132 i download mod version 1.6.3

Did everything to the letter, it works, however. the "ctrl + shift + F1,F2 etc." don't bring up the help hotkeys, so i cant see which buttons do what.

I found a list of the commands online but it was for an older version (1.2), and some weren't doing anything others were incorrect.

Reply Good karma Bad karma0 votes
tdennert42
tdennert42 - - 1 comments

same with me

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

The_Legendary
The_Legendary - - 2 comments

Hey when I spawn a unit it says world and I can't move the unit can someone help?

Reply Good karma Bad karma+1 vote
deeem
deeem - - 1 comments

you have to select one of your units beforehand

Reply Good karma Bad karma+1 vote
jaimeb1744
jaimeb1744 - - 15 comments

is this still open? why is the cheat mod interfering with my game saves.
Each time i turn of PC and launch game, i have to start again in the first mission. Any suggestions?

Reply Good karma Bad karma+1 vote
Fry_Kickstart
Fry_Kickstart - - 342 comments

Thanks to your tutorial i can now zoom out much further in sp. Again: thx! :)
Can you write a how to get more mods (from the workshop) working in Single Player Campaign. That would be really nice!

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

bingo12345
bingo12345 - - 47 comments

there is no atillery unit of okw in spawn menu.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

mrasianman3
mrasianman3 - - 2 comments

It seems whenever I use this for TOW or the campaign, missions automatically end in a defeat. Is there any way around this?

Reply Good karma Bad karma+2 votes
peerapad999
peerapad999 - - 1 comments

help I cannot open the console, the ranked game also disable ( i put -dev in launch option)

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

hey um I have done the first 4 steps right but my ctr shift tidle is not working

Reply Good karma Bad karma+1 vote
The_Spartan_Warrior
The_Spartan_Warrior - - 2 comments

I have done everything right and my game still says this.

attempt to call global 'World_Get_Time' a nill value or something. I can provide a gyazo screenshot.

Reply Good karma Bad karma+1 vote
The_Spartan_Warrior
The_Spartan_Warrior - - 2 comments

Dont worry. I figured out.

Reply Good karma Bad karma+1 vote
Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Guest
Guest - - 690,289 comments

This comment is currently awaiting admin approval, join now to view.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: