steamworks-api

How do I get a hash for a picture form a Steam Game?

笑着哭i 提交于 2020-08-26 07:17:47
问题 I want to get a image/logo/icon from steam games with the steam web api, but the problem with the api is, they ask for a hash in the url. Where can I get the hash? Steam api link: http://media.steampowered.com/steamcommunity/public/images/apps/{appid}/{hash}.jpg Example: http://media.steampowered.com/steamcommunity/public/images/apps/440/07385eb55b5ba974aebbe74d3c99626bda7920b8.jpg 回答1: Most of their official API endpoints, such as GetOwnedGames documented here , to get owned games for an

access steam web API using AJAX Jquery

一世执手 提交于 2019-12-25 04:07:02
问题 I want to try and get data from an API but I am getting No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. I cant change the content of API so I cant use JSONP These are all I tried so far: $.getJSON('http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=keyhere&format=json&steamids=76561197970938759', function(data) { console.log(data); }); $.get("http://www.api.steampowered.com/ISteamUser

How to get how many hours has users spent playing my game? Steamworks API

佐手、 提交于 2019-12-11 06:12:46
问题 How to get how many hours has users spent playing my game? Using Steamworks API and C# in Unity. I have went through a documentation but haven't found anything like that, and thinking that I am missing something. I should've just went with a simple script that logs minutes played in its own game, but it's too late for that. If anyone can give me a hit or point me a right direction, I'd really appreciate it. 回答1: You might still have a chance to get it to work. As far as I know, there's a way

Steamworks checking if a user is logged in

倾然丶 夕夏残阳落幕 提交于 2019-12-07 11:04:00
问题 So the code that I've been using to get a user's Steam ID is: CSteamID uid = SteamUser()->GetSteamID(); uint64 pid = uid.ConvertToUint64(); std::ostringstream sin; sin << pid; std::string s = sin.str(); return s.c_str(); This works just fine, but when a user is not logged into Steam, this crashes. Access violation - code c0000005 (first/second chance not available) Does Steam provide a function that I can use to check if the user is logged in before running code that depends on the user being

How to retrieve Steam username using SteamWorks API?

☆樱花仙子☆ 提交于 2019-12-06 06:22:35
问题 How can I obtain the Steam username of the currently used (logged-in) account in my application using the Steam API (which is up and running). The Steam id can (for example) be obtained by: CSteamID id = SteamUser.GetSteamID(); But I cannot find a method to obtain the username. 回答1: Account Name Getting the account name is difficult as there is no API function as far as I know. But there is a SteamAppData.vdf file in the <SteamInstallPath>/config folder which looks similar to this:

Retrieve a list of installed games from the Steam API

↘锁芯ラ 提交于 2019-12-04 14:35:58
问题 I'm working on a Steam Roulette program, and I'm trying to create filters. One of the filters I'd like to implement is (if the user data was loaded with SteamWorks), is to return a list of games (preferably in App ID form) that he/she has installed on his computer that I can then compare to my original full list to remove unneeded values; like a filter to get rid of games the user doesn't have installed on his machine from the list of possible games that can be picked. In case: Steam Roulette

Retrieve a list of installed games from the Steam API

走远了吗. 提交于 2019-12-03 09:09:15
I'm working on a Steam Roulette program, and I'm trying to create filters. One of the filters I'd like to implement is (if the user data was loaded with SteamWorks), is to return a list of games (preferably in App ID form) that he/she has installed on his computer that I can then compare to my original full list to remove unneeded values; like a filter to get rid of games the user doesn't have installed on his machine from the list of possible games that can be picked. In case: Steam Roulette was an online trend, in the form of a web application in which the user picks a random game out of his