How To Auto Exec Consol Commands?
wood
Join Date: 2003-08-06 Member: 19065Members
<!--emo&???--><img src='http://www.unknownworlds.com/forums/html/emoticons/confused.gif' border='0' style='vertical-align:middle' alt='confused.gif'><!--endemo-->
you know everytime i start up NS, i have to open up my console and type
cl_hudswitch 1
cl_autohelp 0
etc
is there a way to put a auto exec file for NS to do this whenever u start up NS ( ns only not dod or cs or whatever )
you know everytime i start up NS, i have to open up my console and type
cl_hudswitch 1
cl_autohelp 0
etc
is there a way to put a auto exec file for NS to do this whenever u start up NS ( ns only not dod or cs or whatever )
Comments
inside that file you can type whatever console commands you want executed each time you play the game
So... if you type in those variables, they should actually stay in your config.cfg, I think, and work for all games after that. But then again, maybe only certain ones get put into the config.cfg.
The best option is to make a copy of your config.cfg called ns.cfg and edit that as you like, then add the line "exec ns.cfg" to your autoexec.cfg (you'll have to create it if it doesn't exist).
It is auto-saved, but I dont know why the freaking cl_autohelp is alway 1 whenever I enter a game. And I use autoexec.cfg too, to overwrite it and to load my bunny hop scripts <!--emo&:0--><img src='http://www.unknownworlds.com/forums/html/emoticons/wow.gif' border='0' style='vertical-align:middle' alt='wow.gif'><!--endemo-->
I was gona help
but BHop scripts?
?!?
What you have in autoexec.cfg will overwrite what is down in config.cfg. This has been the case since I've started playing with my configurations in quake2, and it is the same in half-life. I used to put in binds, scripts, everything in my autoexec.cfg. Then started organizing it in seperate config files and exec'ing them through autoexec.cfg.
I was gona help
but BHop scripts? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
I think he was joking....
What you have in autoexec.cfg will overwrite what is down in config.cfg. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
Either you have the strangest HL folder I have ever seen since I started messing with HL scripting in TFC 3 years ago, or you are mistaken. If you use wasd movement and have bind "w" "+forward" in your config.cfg try changing it in autoexec to bind "w" "say_team WTH". Join a server or start a lan and see what happens. Or try putting gl_max_size 128 in autoexec and gl_max_size 256 in config. Join a server or start a lan and type gl_max_size in console to see what it is set at. The only way what you are suggesting would work is if you erased your config before joining a game or changed something that wasn't in the config to begin with.
To the original question, though, the settings should have been saved when you typed the cvars into console unless your config is read only.
but each time i restart the game the settings revert back /shrug
trying to add the autoexec.cfg now