Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always log in invisible/offline? #110

Closed
Nou4r opened this issue Aug 17, 2020 · 6 comments
Closed

Always log in invisible/offline? #110

Nou4r opened this issue Aug 17, 2020 · 6 comments
Assignees
Labels
done This item has been completed and is ready for the next release enhancement

Comments

@Nou4r
Copy link

Nou4r commented Aug 17, 2020

I want when logging in via SAM to always be shown offline or invisible. Is it possible to do that?
https://i.imgur.com/PVkt685.png

@rex706
Copy link
Owner

rex706 commented Dec 15, 2020

I've been looking into this, as I think it's actually a pretty valuable feature to have, but it's giving me a harder time than expected to figure out. This is usually controlled by the Steam Friends List window settings and then setting this:
image
to OFF.

It looks like it may be saved somewhere in the userdata folder vdf files as some similar looking settings appear there but it's difficult to tell ahead of time which folder belongs to which user and how to make them if the folders don't exist ahead of time.

There may or may not be a reliable way to do this, but I'll keep looking.

@pablo1020
Copy link

+1 for starting in offline mode

@yo8z6gv
Copy link

yo8z6gv commented Jun 2, 2022

"starting in offline mode"
It's a pity that this option still doesn't exist.

@rex706
Copy link
Owner

rex706 commented Dec 1, 2022

The config files that drive this setting are located in the Steam userdata directories:

...\Steam\userdata\{some id}\config\localconfig.vdf

However, the id for the folder name is not the same id that I am used to seeing for accounts.

I was able to test this works after finding the right one for the account I wanted and setting "SignIntoFriends" to "0".

I will look into matching account info to the folder structure to drive this setting. I may need to figure out how to generate them as well for accounts that are signed in for the first time.

@rex706
Copy link
Owner

rex706 commented Dec 2, 2022

Turns out the folder names are SteamID3 values and they can be found by converting them from the normal SteamID64 that is in use today.

Websites like https://steamid.io and https://steamid.venner.io are tools to look up various info about steam accounts like of what your alternate IDs are.

This library should help make things simpler: https://github.com/NachoReplay/SteamID-NET

@rex706 rex706 self-assigned this Dec 4, 2022
@rex706
Copy link
Owner

rex706 commented Dec 4, 2022

the localconfig.vdf also contains a property FriendStoreLocalPrefs_{steamid3}, which has the value {\"ePersonaState\":7,\"strNonFriendsAllowedToMsg\":\"\"} where the ePersonaState corresponds to your online status where 1 is Online and 7 is Invisible. These values can be changed to take affect on the next login.

rex706 added a commit that referenced this issue Dec 4, 2022
* Initial implementation for setting the login state of the Steam Friends window per account. Currently only works if the localconfig file already exists. #110
* Include experimental RememberPassword code. #35 #103
* Disable MainGrid on Login instead of when a button is pressed for cases like auto login. #107
* Include SteamIDs_Engine library: https://github.com/NachoReplay/SteamID-NET
rex706 added a commit that referenced this issue Dec 5, 2022
* Use a local template file for the bones of the localconfig.vdf if it does not exist. This was easier than trying to dynamically create the essential properties in code. #110
@rex706 rex706 added done This item has been completed and is ready for the next release and removed in progress labels Dec 5, 2022
@rex706 rex706 closed this as completed Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done This item has been completed and is ready for the next release enhancement
Projects
None yet
Development

No branches or pull requests

4 participants