Autoexec.cfg

FaT_CaMFaT_CaM Join Date: 2003-04-11 Member: 15394Members
<div class="IPBDescription">(SP^?) How d'ya make 1, how do they wrk?</div> How do you make an autexec.cfg?

I know what its for, u type in autoexec in the console and all the commands in there activate or something right?

And how do you write a command in there? Do you just type the command (E.G cl_showfps 1 ?)

Comments

  • FireStormFireStorm Join Date: 2002-11-06 Member: 7390Members
    autoexec.cfg is executed when you launch NS.
    the syntax is the same than in config.cfg: you just type your commands separated with a newline <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    bind space +jump
    bind e +use

    for example
  • MMZ_TorakMMZ_Torak Join Date: 2002-11-02 Member: 3770Members
    Use notepad to make cfg files.

    o Make a new text document.

    o Type in your commands, go to File>save as.

    oFrom the drop down menu at the bottom where it displays the file type, change it to "All Files" and name the file autoexec.cfg

    o Click save.
  • ThansalThansal The New Scum Join Date: 2002-08-22 Member: 1215Members, Constellation
    to further explain .cfg files

    there are the 2 special ones config and autoexec
    config is ofcourse your base configs, when ever a config is changed it is saved here
    autoexec is executed when you launch (or is it ever map of) NS (or what ever HL mod you have the autoexec file in).

    now, you can create ANY .cfgs that you want, and name the anything. They are very nice if you wana do scripting (basicaly you can break up your script into pieces and then exec them when ever you want.

    In order to exec a .cfg file you type exec file name in the conn. So for instance if you had a file named lerk.cfg you would type (sans qutoes, duh) "exec lerk.cfg". All of the commands in that file would then run.

    more fun things:
    if you want to display msgs for your self use this:
    developer 1; echo "your msg"; developer 0

    put that at the yop of any .cfg. And example (agian ussing lerk.cfg)
    developer 1
    echo "lerk.cfg properly loaded"
    developer 0

    <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    (oh and for more help: <a href='http://half-life.gamehelp.com/' target='_blank'>I am HL</a>)
Sign In or Register to comment.