Autoexec configs are a powerful tool that can be used to fine-tune various game settings that are not that easily accessible through the game’s main interface. These settings can include anything from simple mouse sensitivity configurations to advanced key bind scripts that can make difficult skills like bunny hopping a hop in the park. So, without further ado, let’s look at how you can set up your own autoexec configs in CS2.
How To Create Autoexec Configs In CS2?
Creating an autoexec config in CS2 is a pretty straightforward process and remains largely the same as the one in CS:GO. You can create your own config files by following the steps below:
- Launch Steam and right-click on Counter-Strike 2 in your game library.
- Select Manage → Browse Local Files.
- Traverse the folders in the following order: game → csgo → cfg. This should take you to a folder containing .cfg files.
- If you don’t see the file types, simply click on View on the top bar and check the File name extensions option.
- Now, create a new Text Document and rename it to “autoexec.cfg”. If you’re prompted to replace the old file with the new one, simply click on Yes.
- Right-click on the file and select Open with → Notepad.
- You can now type in or paste all your configs here. If you’re looking for some useful autoexec config scripts, make sure to check out our article on the 11 best configs out there.
- Before exiting the file, make sure to press Ctrl + S to save all your configs.
- Now, return to Steam once again and right-click on Counter-Strike 2.
- Select Properties and go to the General tab.
- Scroll down until you see the Launch Options section, and type +exec autoexec.cfg in the box. This would automatically execute the autoexec config whenever you launch CS2.
- You can also execute the autoexec config manually. To do so, launch CS2 and press the ~ key to open up the console. Now, simply type the command exec autoconfig.cfg and press Enter.
- If you haven’t enabled the console, you can easily do so by going to Settings → Game. In the Game tab, set the Enable Developer Console (~) to Yes.
Congratulations! You now know how to set up your own custom config file in CS2! However, in the unlikely event that you find yourself getting an error stating that the game is unable to read the autoexec file, check out the quick and simple fix below.
How To Fix Autoexec File Not Working In CS2?
If you’re trying to execute the autoexec.cfg file using the console, it’s possible that you either get no response or the following error: [InputService] exec: couldn’t exec ‘{*}cfg/autoexec.cfg’, unable to read file.
If this is the case, you probably have mistakenly saved the autoexec.cfg file in the wrong directory. You can fix this error by following these steps:
- Locate the autoexec.cfg file in the csgo folder.
- Once found, click on the file and press Ctrl + X to cut it from that location.
- Enter the cfg folder and paste the autoexec.cfg file over there.
By placing the .cfg file in the correct file directory, the error should now be resolved.
Can You Set Up Multiple Autoexec Config Files?
While you can enter all your autoexec configs within the same autoexec.cfg file, many players prefer to have different scripts on/off at different times. Luckily, there is no limit to the number of autoexec config files you can put in the “cfg” folder. Here’s how you can set up another config file in CS2:
- Create another text file in the cfg folder and rename it to the format: [your_file_name].cfg. It is important to note that the file’s name can be anything but “autoexec.cfg”.
- To execute the file in-game, open up the console and type exec [your_file_name].cfg. For instance, if you’ve a file named “bhopping.cfg”, you will type “exec bhopping.cfg”.
Alternatively, you can create a key bind to execute your config file by adding the following command in the original autoexec.cfg file: bind [your_key] “exec [your_file_name].cfg”. For example, if I want to use the “K” key to execute bhopping.cfg, I’ll add the command: bind K “exec bhopping.cfg” in the autoexec.cfg file.
Conclusion
Knowing how to set up your own autoexec configs is a must for every CS2 player, as it can give your gaming experience a custom flair. If you found this article helpful, do check out these other CS2 articles from our team: How To Report Bugs In CS2? and Can You Show Damage Stats In Console In CS2?