Changes to config.cfg keeps reverting
Posted Aug 27, 2014, 10:49 AM UTC
111
Posted Aug 27, 2014, 10:49 AM UTC
If things aren't saving properly when you exit, you can force a save by entering host_writeconfig in the console. If you use an autoexec, you should put host_writeconfig at the bottom of that too.
I'm not too knowledgable about this stuff, what is an autoexec? and where do i type that command, in the console?
EDIT: i dont actually think the revert happens when i exit but rather when i open the game.
It goes in the developer console, yes. An autoexec is similar to config.cfg but for your own custom stuff. It doesn't constantly get created anew where config.cfg does by design.
Got it working now, thanks!
edit it, and them make it read only :)
i do this for things i dont want changed.
Never change your config.cfg file, create an autoexec file that overlaps the config file.
Heres a guide on how to make one: http://steamcommunity.com/sharedfiles/filedetails/?id=166699655
So i should just make a new file called Autoexec.cfg and put everything thats in the config including my changes, or only the changes?
Only the stuff you want to be loaded on game start, ie viewmodel position or binds
You may be better off keeping it simpler and only entering the things you'll rarely change. Sensitivity, disabling help messages, that kind of thing. You could otherwise find yourself having to dig through your autoexec to do something simple like rebinding a key.