PDA

View Full Version : How to use .cmc files


Revvin
19-08-2006, 05:37 PM
A typical profile for a CH controller comprises of three parts, a .map file, a .cms file and a .cmc file. The .map file is the file which tells Control Manager where each command is on your controller while the .cms file contains any cms scripting for more complex controls and the .cmc file holds all the commands for a game, each command given a name, for instance a few lines from my WWIIOnline.cmc read:

Left_Wheel_Brake z
Right_Wheel_Brake x
Lock_Tail_Wheel /
Landing_Gear g
Canopy_Control o
Bomb_Doors d

To use a .cmc file or create you own open up a profile or start a new one. When you have the joystick mapping screen infront of you click on the 'Program Settings' tab (as in the picture below) Click on the box down in the bottom right that says 'Command File' and it will open up a browser window to look for an existing file in your C:\Program Files\CH\Control Manager\Maps directory (if you've downloaded one from this site for instance) or you can create a new file from scratch by entering a new filename.

http://www.ch-hangar.com/SiteFiles/Images/faq/cmcfile-1_small.jpg (http://www.ch-hangar.com/SiteFiles/Images/faq/cmcfile-1.jpg)

Once you've done that then you can look at the .cmc file by clicking on the 'CM Editor' button http://www.ch-hangar.com/SiteFiles/Images/faq/cmeditorbtn.jpg then click on the 'Command File (CMC)' tab to view the commands or input new ones. You can notate your .cmc files (to put in headings etc) by starting a line with three forward slashes then type the heading or note you want, the text will appear green meaning it is being treated as a note or heading. When inputting commands you will notice the text is a light blue colour, type your command name in and then leave a space then input the key you want the command to execute (see the example from my WWIIOnline.cmc below) you will see the key you input on the end of the command name appears as red. If you want to break up commands so it's not one line of gibberish use an underscore as I have below. Once you have your .cmc file you can go to your joystick and throttle and instead of entering the key press for each button you now right click and select 'Insert Command' in the pop up meu and a list of commands from your .cmc file will appear in a small pop up window, just click on a command in the list and it gets assigned to the button you selected.

http://www.ch-hangar.com/SiteFiles/Images/faq/cmcexample-1.jpg