CSGO: Instructions for creating basic autoexec files

Hướng dẫn tạo file Autoexec CSGO

CSGO is one of the most customizable games in the gaming world today, even though it’s 8 years old. And the heart of the customization is the file autoexec.cfg.

An autoexec file can do simple things, like make sure all player configurations are saved. Every time CSGO opens, it reads a file named config.cfg. This file tells CSGO what configuration the game needs to run.

If the in-game configuration is not the same as config.cfg, CSGO will use the commands in that file to overwrite in-game.

There are many advantages to using an autoexec.cfg. First, just copy it to the game folder to restore all player configurations after you reinstall the game, saving both time and effort. In addition, longtime CSGO gamers often have their own specific configurations.

Autoexec is the only way you can use “alias” commands like jump-throw. It sounds complicated, but don’t give it a try.

CSGO autoexec for new players and show the file extension

New players who haven’t explored files in CSGO may need to read through this to get their autoexec.cfg set up properly. It sounds scary, but it can be done in two simple steps.

First, Windows 10 users type “File Explorer” into the search bar, select it, and click the “View” tab in the upper-right corner.

In the View section, make sure you have checked “File Name Extensions” and close the window. All files will now show the file extension at the end, allowing users to change them.

This adjustment forces Windows to show the file extension and allows the player to save the autoexec as the correct .cfg . file type

Create an autoexec file for CSGO and put it in place

First, the player needs a text editor. The built-in Windows Notepad can be used, but the free software Notepad++ is more powerful and easier to use. Whichever you choose, the first step is to navigate to the “users” folder in Steam, which is located here:

(Drive):ProgramFiles(86)Steamuserdata[PLAYER STEAM ID]730localcfg

It’s best to create a shortcut to it on the desktop so that you won’t have to search for it next time. (Drive) is the drive Steam is installed on, and [PLAYER STEAM ID] will be your Steam ID. You can find your Steam ID by logging into Steam and going to Invetory in Steam. Click on the “Trade Offers” button in the upper right, then “Who can send me trade offers”, it will take you to the page containing the trade link.

The link has the following form:

https://steamcommunity.com/tradeoffer/new/?partner=#######

The string # after “/new/?partner=” is your Steam ID, and it is equivalent to a directory in userdate. Once in the correct folder for your SteamID, go to “730”, then “local” and finally “cfg”. You will see the files CSGO uses to store information.

Instructions for creating Autoexec CSGO files

This is where you will create the autoexec.cfg file.

Create an autoexec file and basic commands

Right click on any empty space in the folder and select “New”, “Text Document”. A new file named “New Text Document.txt” will appear. If you do not see the .txt extension at the end, you should review the beginning of the article to know how to show the hidden file extension.

Extract the file. Starting with autoconfig, we will start with the simple commands first, the first is crosshair.

There is a full list at the end of the post, but you should understand what their function is. The more you understand, the more you can customize the autoexec.cfg file to your liking.

The letters after the “//” sign mean they are not commands. CSGO won’t read the words afterwards, so it’s used for marking and explaining for you to understand.

You can describe the function of the command with “//”, as in the first example. Bullets are for readability only: you should not include them in the file. However, you should note that there must be quotation marks.

// Cấu hình crosshair
cl_crosshaircolor "1" // chỉnh màu crosshair
cl_crosshaircolor_b "50"
cl_crosshaircolor_g "`150"
cl_crosshair_outlinethickness "1"
cl_crosshaircolor_r "50"
cl_crosshairdot "0"
cl_crosshairgap "-1"
cl_crosshairsize "4"
cl_crosshairstyle "4"
cl_crosshairthickness ".3"
cl_crosshair_friendly_warning "0"

You can refer to the article An in-depth guide on how to tweak Crosshair CSGO. Also, cl_crosshair_friendly_warning “0” is the new command. This command turns off the yellow “x” that appears in the center of the player when you point the gun at an ally.

Next, add a command to make sure CSGO uses raw mouse input.

// Cấu hình chuột
m_rawinput "1"

This command does exactly what its name implies. m_rawinput “1” ensures CSGO does not apply changes in sensitivity outside of Windows and uses information from the player mouse directly. Then we go to change the Radar.

// Cấu hình Radar
cl_radar_always_centered "0"
cl_radar_icon_scale_min "0.6"
cl_radar_rotate "1"
cl_radar_scale "0.7"
cl_radar_square_with_scoreboard "1"

These are commands that affect the size and size of the radar as well as the icons, whether the radar rotates with the player, and whether you are always in the center of the radar. Now let’s move on to something more complicated.

Below is a list of basic rate commands. They are commands that indicate how often the game should contact the server and vice versa.

// Command Rates
cl_cmdrate "128"
cl_updaterate "128"

Valve’s matchmaking server only has 64-tick, which means that the data transferred between the player and the server is 64 times a second. Third-party services like FACEIT and ESEA use 128-tick servers, meaning the player’s computer and the server talk to each other twice as much as Valve’s MM (128 times a second).

These commands are only to limit the maximum rate; and the server always forces the game to apply the server’s values.

We will go into a simple video configuration in autoexec that allows you to limit or remove the FPS limit in CSGO.

// Cấu hình Video
fps_max "0"

This command removes the FPS limit in the game. In CSGO, a high framerate can make a big difference between knocking out a peeker or getting killed by him. However, this command does not increase your framerate, but only ensures that your peak will not be restricted.

If you replace “0” with another number, you can limit CSGO’s FPS.

But how do I know my config files work? You can add text so that it shows a confirmation that the config has run.

// Echo command
echo AUTOEXEC Loaded...

Finally, autoexec needs to overwrite the config.cfg file. Here is the command:

// Ghi đè Config
host_writeconfig

Complete autoexec.cfg configuration

Once done, your file will have something like this:

// Autoexec
// Cấu hình crosshair
cl_crosshaircolor "1" // chỉnh màu crosshair
cl_crosshaircolor_b "50"
cl_crosshaircolor_g "`150"
cl_crosshair_outlinethickness "1"
cl_crosshaircolor_r "50"
cl_crosshairdot "0"
cl_crosshairgap "-1"
cl_crosshairsize "4"
cl_crosshairstyle "4"
cl_crosshairthickness ".3"
cl_crosshair_friendly_warning "0"
// Cấu hình chuột
m_rawinput "1"
// Cấu hình radar
cl_radar_always_centered "0"
cl_radar_icon_scale_min "0.6"
cl_radar_rotate "1"
cl_radar_scale "0.7"
cl_radar_square_with_scoreboard "1"
// Command Rates
cl_cmdrate "128"
cl_updaterate "128"
// Video Settings
fps_max "0"
// Echo command
echo AUTOEXEC Loaded...
// Ghi đè Config
host_writeconfig

Save and run autoexec

Now that the writing is done, we can save the autoexec. This is where showing the file extension becomes important. Click File, “Save As” to open a Save window with “New Text Document.txt” in the file name area. Rename it to “autoexec.cfg” and click Save.

Instructions for creating Autoexec CSGO files
Instructions for creating Autoexec CSGO files

Autoexec check and fix

Next, close the text editor, open CSGO, turn on the console. If you see the message “AUTOEXEC Loaded…” that you echo in autoexec, that’s ok!

Just to be sure, play the game offline with a bot or a map workshop. When finished, open the console and type “cl_cmdrate”. If the command result is “cl_cmdrate 128” then your autoexec is up and running.

If you don’t see echo and see command rate say 64, there are a few options. The first is to use CSGO’s launch options to force the game to run autoexec.

To do that, click CSGO in the Steam Library, click “Properties”, select “Set Launch Options” near the bottom of the first window. Add “+exec autoexec.cfg” (without quotes) in launch options. Again, check the steps above to see if autoexec is running.

There are many reasons for autoexec not running. Sometimes CSGO is reinstalled multiple times, and other autoexecs or configs are used instead. Find and delete old CSGO files from the installation. Or, deleting the game and reinstalling will usually solve the problem.

This is just a basic tutorial in autoexec, it can be developed further, depending on your needs.

According to Win.gg

Source link: CSGO: Instructions for creating basic autoexec files
– https://emergenceingames.com/

Leave a Reply

Your email address will not be published. Required fields are marked *