Counter-Strike 2

Counter-Strike 2

View Stats:
[SOLVED] Autoexec.cfg Not Working
Did they drop support lately or something? Simply having an autoexec.cfg in the right place doesn't work even, and putting a launch parameter strictly telling it to doesn't work on startup either. I have to manually exec it every time.
I'm not even doing anything complicated, I'm just moving my viewmodels.
viewmodel_offset_x -2 viewmodel_offset_y 0 viewmodel_offset_z -2 //JUMPTHROW alias "+jumpthrow" "+forward;+jump;-attack" alias "-jumpthrow" "-jump;-forward" bind "t" "+jumpthrow"
Last edited by Scary Monsters; Oct 25, 2022 @ 5:00am
< >
Showing 1-4 of 4 comments
Scary Monsters Oct 25, 2022 @ 4:56am 
csgo\cfg
And alright but that seems completely arbitrary to me. Not a thing in literally any other Valve game.

Edit: Didn't do anything. I also had the launch property as "-exec autoexec.cfg" instead of "+exec autoexex.cfg" like in all examples I found online, but it's still not working.
My viewmodel offsets are overwritten to all 1's every time.
Last edited by Scary Monsters; Oct 25, 2022 @ 4:58am
Scary Monsters Oct 25, 2022 @ 5:00am 
Alright I got it, it's because viewmodel_presetpos was set to 1.
KEROSENE Aug 5, 2023 @ 2:36pm 
Originally posted by Eld3r:
Originally posted by Scary Monsters:
csgo\cfg
And alright but that seems completely arbitrary to me. Not a thing in literally any other Valve game.

Edit: Didn't do anything. I also had the launch property as "-exec autoexec.cfg" instead of "+exec autoexex.cfg" like in all examples I found online, but it's still not working.
My viewmodel offsets are overwritten to all 1's every time.
the new folder location is \steam\userdata\<YOURID>\730\local\CFG and that is in case you have more than one account and want to use different settings for each account

use of host_writeconfig is required to force autoexec.cfg settings into config.cfg

exec autoexec.cfg is not required as a launch option because the game will automatically load autoexec.cfg if it finds the file in the cfg folder
What if it doesn't work? To test it, I added the command 'volume 1' to the autoexec, and in the game, I set the volume to .1 without launch parameters. When launching the game, the volume remains at .1. However, if I enter 'exec autoexec' in the console, the volume will change. Also, the launch parameters are not working for me too. Volume stays on .1 even with launch parameters +exec autoexec.cfg
KEROSENE Aug 5, 2023 @ 3:40pm 
Originally posted by Eld3r:
Originally posted by HESOYAM:
What if it doesn't work? To test it, I added the command 'volume 1' to the autoexec, and in the game, I set the volume to .1 without launch parameters. When launching the game, the volume remains at .1. However, if I enter 'exec autoexec' in the console, the volume will change. Also, the launch parameters are not working for me too. Volume stays on .1 even with launch parameters +exec autoexec.cfg
did you add host_writeconfig as the last command in your autoexec.cfg?
I watched this video https://youtu.be/IQF9A_i0ufQ and it helps alot. There is explanation about whats happening in the start of the game. You right, my problem was about host_writeconfig. Thank you!
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Oct 25, 2022 @ 4:43am
Posts: 4