SteamAchievementManager icon indicating copy to clipboard operation
SteamAchievementManager copied to clipboard

SAM without steam client

Open henrydatei opened this issue 5 years ago • 10 comments

I'm just asking how SAM works. I'm terrible in reading code so I just want to know SAM works and if there is an opportunity to unlock achievements in an easier way, e.g. making an API call or something via Python etc.

henrydatei avatar Oct 01 '20 14:10 henrydatei

There might be a web API at this point but SAM would have predated any web APIs that Valve made available.

SAM uses the Steamworks API.

gibbed avatar Oct 01 '20 14:10 gibbed

Hm interesting, I analyzed the traffic of my whole computer when I used SAM but I have not found any request that looks like it has anything to do with achievements. Maybe I missed it.

henrydatei avatar Oct 01 '20 14:10 henrydatei

Any network activity wouldn't come from SAM, it would be via the Steam client.

gibbed avatar Oct 01 '20 14:10 gibbed

That's why I monitored the network traffic of my whole computer

henrydatei avatar Oct 01 '20 14:10 henrydatei

I was clarifying in case you were filtering specifically for SAM.

Steam's network protocol is encrypted, so it wouldn't be obvious plaintext.

gibbed avatar Oct 01 '20 15:10 gibbed

I know that nearly all network traffic is encrypted and so I installed a root certificate to decrypt everything

henrydatei avatar Oct 01 '20 15:10 henrydatei

Steam uses multiple protocols, the main one is not HTTPS and is custom.

gibbed avatar Oct 01 '20 15:10 gibbed

I'd recommend taking a look at SteamKit. I don't have much direct experience with Steam's network protocols as I've never had a need to dig into it in that depth.

gibbed avatar Oct 01 '20 15:10 gibbed

Ok, that seems to be the explanation why I haven't seen any achievement related traffic. But that means that it will be hard to make the achivement-unlocking-process without the steam client.

henrydatei avatar Oct 01 '20 15:10 henrydatei

我能否问一下 steam挂时长 是如何实现的 请求了哪个api呢 对此 我可以付费 Can I ask how the steam hang time is implemented and which API is the request that I can pay for

black-butler avatar Dec 06 '20 07:12 black-butler