Autoexec.cfg
FaT_CaM
Join Date: 2003-04-11 Member: 15394Members
in Tech Support
<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 ?)
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
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
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.
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>)