csgo-osx-linux icon indicating copy to clipboard operation
csgo-osx-linux copied to clipboard

USRLOCALCSGO user’s roaming profile when setup in windows now causes csgo to reset it settings during every launch of the game.

Open wazerstar opened this issue 3 years ago • 0 comments

Back in 2015, the csgo dev team changed the way user configs are saved into steam folder with steam ID's via 'steam\userdata\XXXXX\730\local\cfg'

However it was still possible to use static folder for all players using the same config folder or the classic one by path 'Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg'

Using USRLOCALCSGO now causes the game to reset various settings, and you are forced to exec autoexec during every startup in console, having +exec autoexec in launch and having host_writeconfig in the end of autoexec.cfg file wont solved the problem.

What I noted from the config it says WARN_FILEWRITE - Asked to write XXX but we don't own that location. Disallowing...

WARN_FILEWRITE - Asked to write to 'd:\games\steam\userdata\102593\730\local\cfg\trustedlaunch.cfg', but we don't own that location. Disallowing...

https://i.imgur.com/Dme5FEs.png

Here's the news from that time

https://blog.counter-strike.net/index.php/2015/12/13325/ – Administrators setting up tournament Active Directory logons with Roaming Profiles can create a directory inside the user’s roaming profile storage and expose that location to the game by setting an environment variable USRLOCALCSGO=%USERPROFILE%\AppData\Roaming\csgo

Here's the .reg file I created then double clicked on, hit yes and restart machine

It will now pickup cfg settings from folder d:\games\Steam\steamapps\common\Counter-Strike Global Offensive\csgo

but during this time it will reset various settings like background music ingame, and popup menu for whenever there's news, etc..

Filed created via txt file and saved as csgo_cfg_static_fix.reg

Windows Registry Editor Version 5.00

;CSGO Default CFG Static Fix -  ;"USRLOCALCSGO"="C:\\Program Files (x86)\\Steam\\steamapps\\common\\Counter-Strike Global Offensive\\csgo"

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
"USRLOCALCSGO"="d:\\games\\Steam\\steamapps\\common\\Counter-Strike Global Offensive\\csgo"

wazerstar avatar May 23 '22 15:05 wazerstar