Configuration Files: Saving Your Work

It's All Gone!

Saving a CFG

What's in a CFG Anyway?

The Proper Way To Do It

Why Should I Do This Again?

If you restarted the game or loaded a new map after the first section, you will have noticed that any keys you rebound have changed back to the defaults. This is because the game has a special file called game.cfg, which is run when opening the game and loading a new map. The file can be found in the base directory for Reflex, which defaults to:C:\Program Files\Steam\steamapps\common\Reflex (32bit Windows)C:\Program Files (x86)\Steam\steamapps\common\Reflex (64bit Windows)This directory is where all of your configuration (.cfg) files will go.Make a change to your standard binds (if you're unimaginative). To save this into your config, type:Now any time you load a game, everything you had changed will stay the same. This isn't the best way to change your configs, however...Before you can master configuration files, you first have to understand what they are, and how simple it is to create and edit them. The easiest way to see how they work is to open game.cfg. You'll see a few lines, like those that you would type into the console. Simple, right? This is all that a configuration file is - a list of commands to be parsed and executed in by the console, seperated onto new lines. If you can type it into the console, you can put it in a config file.Now that we know configuration files are simply lines of plain text, we can start to create and edit them without even opening Reflex! The first thing you want to do is create a new text file, and rename it to something personal, with the file extension .cfg. You may need to change the file extension settings on your computer to do this! Once you have a new config file, copy and paste everything from your modified game.cfg into it. If there are any binds you want to modify or re-add, now is the time to do it.Now we have a file thatgoing to be run whenever you load a new map, that will load your desired settings. That may not sound especially useful, but actually it's much better than using the default file. Open game.cfg again, andReplace it with a single line, to load your new personalised file.Now you have everything stored in a seperate file, but still loaded whenever you need it.Imagine your friend sends you his config, l33th4x.cfg. You can copy it into your Reflex directory, and change the one line in game.cfg to play with it through as many client restarts and map loads as you like. This saves tediously renaming files, or copying the entire configs between backup documents. It's also much more secure, as most people lost all of their cfg changes when game.cfg was rewritten during the first update!