ValveSoftware / csgo-osx-linux

Counter-Strike: Global Offensive
http://counter-strike.net
781 stars 69 forks source link

Using USRLOCALCSGO interferes with trusted launch. #2493

Open wazerstar opened 4 years ago

wazerstar commented 4 years ago

Under the changelog MISC you will find this

[MISC] – Users’ options are now stored independently in a Steam account-local data folder and can be different across Steam accounts on the same machine. – 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

https://blog.counter-strike.net/index.php/2015/12/13325/

However this seems to be an issue that continues to plague users with not having trustedlaunch from beginning "EVEN" when using and forcing -trusted in launch options for CSGO.

Here's an video showing CSGO not complaining about any issues via the command "trusted_launch_info" in trusted launch but still complains about not being in trusted mode when starting searching for matchmaking.

it will also state via the in-game command "trusted_launch_info"

CS:GO was launched in Trusted Launch mode No files were blocked from loading in CS:GO

https://streamable.com/ixtnh9

It seem's the trustedlaunch.cfg is not generated wherever you decide to point USRLOCALCSGO at for debugging or success, in my case its CSGO real default cfg directory it self d:\games\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\cfg

I found out the issue by scouting for the trustedlaunch.cfg not being deployed USRLOCALCSGO dir pointing.

I deleted the registry entry via running regedit command restarted the machine and trustedmode started working as it was supposed to do

The guide if you have modified your cfg directory

Hit windows key + x, select run and type regedit.

Type in this field at the top Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Hit enter

Find string called USRLOCALCSGO delete it and reboot, its important to reboot the machine that also applies to when adding this string, no way around it.

After deleting the string your config files will be reverted back and be generated in the default userdate directory, with my example it would be d:\Games\Steam\userdata\XXXXXX\730\local\cfg - for default steam installation it would be C:\Program Files (x86)\Steam\userdata\XXXXXX\730\local\cfg

Now by writing this and made it public I hope csgo/valve developers sees this and will fix this so for us that wants to keep one config file for all steam accounts instead of multiple files and also for tournament Administrators

wazerstar commented 4 years ago

Still not fixed in latest update as of today.

wazerstar commented 4 years ago

Still not fixed in latest update as of yesterday https://blog.counter-strike.net/index.php/2020/08/31374/