Jump to content

[CS][Guide] Creating an autoexec file (long explained)


Recommended Posts

Posted

This tutorial outlines how a user can create their own autoexec.cfg file from scratch. This file is critical if you use aliases or scripts. Also, it can be used to execute other files and game settings. So, this file is very important if you want to get the most out of your Counter-Strike experience. Let's get started!

Step #1 - Opening Text Program

Open Notepad or any Text program, (Wordpad, Word, Editpad, EditPlus2 etc will also work as long as you can save other file types besides .txt).

Step #2 - Add your Game Specific information and Common Commands

 

Game Specific info is usually Game settings that you want enabled or set at the start of every game. Some examples include: (name, rate, pushlatency, vgui_menus, fps_max).

 

Common Commands are commands or aliases that will be used in alot of your aliases and are redundant to type in every alias. Some examples of common commands are the use of shorter aliases for the menuselect commands: alias ms1 "menuselect 1" or alias mclr "slot10; wait; wait; slot10"

Step #3 - Add your Aliases

Now add your aliases into the file. If the alias came with a bind, like the ones on the examples page, the bind line will not go in the autoexec, but in the config file. Note - Don't add too many aliases to one cfg file. If you have a ton of aliases, then you will want to create separate cfg files.

Step #4 - Add Execution Lines

 

If you are using other cfg files to keep your Scripts more organized or to keep your autoexec a reasonable size, then you will need to execute that file. You will have to add the line:exec yourfile.cfg to the autoexec file.

Step #5 - Add Echo Lines

Add "echo" lines to the autoexec. A good idea is to add echo lines to your autoexec so you can actually watch the status of the files being executed during game loading. Here is an example:

 

echo

"Autoexec is Loading"

echo

The lines with nothing else but echo on them will come up as breaks.

Step #6 - Saving the File Properly

This is one of the most common problems when people make an autoexec file. You must save the file as this:

autoexec.cfg

and the "All Files" must be selected as the File Type, which is the pull down menu bar located directly under the filename. Then the file must be in the proper directory. It goes in your cstrike directory.

 

Defaults for CS 1.6 are steam

The defaults for CS 1.5 and older versions are: C:\SIERRA\Half-Life\cstrike for the downloaded version and C:\SIERRA\Counter-Strike\cstrike for the Retail Version.

Step #7 - Check for Common Problems

1. Saving the file as a .txt file (which is the standard default file type in Notepad and WordPad) . The filename looks correct, but when you view the properties it says Text file. The autoexec must be saved as a .cfg file!

 

2. Misspelling the filename, must be spelled "autoexec"

 

3. Placed file in wrong directory - Must go in the cstrike directory

 

CrEdItS: My tEaM (GH TeAm)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • ElmoreLab Harbor - Eternal C1 x1: ✅ https://harbor.elmorelab.com ElmoreLab Harbor - Eternal C1 x1 - is an exclusive server of the Eternal C1 chronicles from the top project ElmoreLab Harbor.   A unique server of its kind, on which everyone will have maximum pleasure, such as oldschool players who dream of nostalgia and to feel the warmest and classic C1 chronicles, as well as experienced players who are tired of thousands unbalanced servers of late chronicles. Due to the professional corrections of the balance system and the HONEST gameplay system - on this server, EVERY player will feel like in their own, warm and cozy Harbor C1. Let's return to the origins of L2 - back to 2004 in C1! ❤️   ⭐ Server characteristics:   STRICTLY 1 window, NO BOXES Bans for RMT and bots/cheats No donations with benefits Unique and high-quality PTS-build from Master Toma Professional corrections and full class-balance Reworked economy and closed all abuses Improved animations and all aspects of the game Exclusive HD-client with high-quality textures Experienced administration and management Fixed all bugs, geodata, exploits and holes Maximum sociality due to the 1-box system Discovering, exploring and researching Big online International server Nostalgia and oldschool-feelings   Rates: x1 Server start: 14.02.2025   The server is at the final stages of development and preparation for release. Information on the server will be updated, soon the patchnotes and changes/edits will be posted. Don't miss the legendary and epic experience on the best server in the last 20 years! ❤️ Join our C1-forum with a lot of information about server and active discussions.   ⭐ Website: https://harbor.elmorelab.com   ✅ Forum: https://forum-harbor.elmorelab.com   💥 Telegram: https://t.me/l2harbor https://t.me/l2harbor_chat   ⚡ Discord: https://discord.gg/harborelmorelab
    • yeah ok, if you say what is fuctional 100% i can't say something different 😛  but if someone find hard to compile it or get vs and all that things i have here one more simple way here to put overlay in your own server or to change your window name with few money.
    • I've been using this for 2 years now with no issues from Discord. I don't use ogg.dll either. This one works with any l2.exe too; I don’t see any difference between them.
    • hmm.. ok i just see that, is different code first of all. My sources is totally different based in other way, with else libraries.  I have access to modify everything even to make the clock to stop show how many time users play in server. 1) so maybe keep some personal info more hide. 2) i dont use ogg.dll 3) i create it and give it ready + support to install it. Plus what is mine can working with what ever .exe you want not just l2 with same simple method. And i am sure if you try this source to compile it, after 3 hours discord will like shadowban your API too thats my source
  • Topics

×
×
  • Create New...