json,api,web,steam,steam-web-api
You don't get this information from the Steam Web API. Instead, you need to use the RCON protocol and issue an A2S_INFO query to get this information. Part of the response from that query includes both the number of players on the server and the total number of players the...
with interval I would to use something like this: var start = Date.now(); var theInterval = setInterval(function () { if (Date.now() - start > 300000) { clearInterval(theInterval); return; } steamOfferObj.getOffer({ "tradeOfferId": tradeOfferID.tradeofferid // The tradeoffer id }, function (error, body) { if (error === null) { console.log(body); if (body.response.offer.trade_offer_state ==...
python,json,python-requests,steam,steam-web-api
This is probably unnecessary, and if it is necessary, either your code or the Steam API is broken. Judging by your comments, it's probably unnecessary. That said, it's doable. json.loads takes an optional object_pairs_hook argument. This specifies a function that will be called with a list of key-value pairs to...
html,value,steam,marketplace,calculated
It is inside the <span style="color:white;"> See a similar screenshot here: ...
asp.net,openid,steam,steam-web-api
Steam does not expose the email address. That information is PII (personally identifiable information). As such, it is subject to various legal controls (depending on the jurisdiction). Additionally, Steam would quickly lose customers if anyone with a Steam API key could retrieve email addresses for Steam customers and start spamming...
c++,steam,unreal-engine4,steamworks-api
Apparently Steam is bad at updating their documentation. I opened up the isteamfriends.h header and found this function that is never mentioned in the Steam docs: // returns the name another user - guaranteed to not be NULL. // same rules as GetFriendPersonaState() apply as to whether or not the...
javascript,node.js,server,steam
Does the server accept input once it has started? If so you can write to it using child.stdin.write('my command\n'); Otherwise you're going to have to query it using something like gamedig...
javascript,html,firefox-addon,firefox-addon-sdk,steam
This should be pretty simple to do using the Add-on SDK. Here is a list of modules you should look at: the request module will allow you to make requests to other sites: https://developer.mozilla.org/en-US/Add-ons/SDK/High-Level_APIs/request while the request module is fine, what you may want to do instead to get info...
The answer to this is yes it is possible, but you have to use the old XML API, not the newer web API and it has to be a "newer" achievement. The old style URL looks like this http://steamcommunity.com/id/<profilename>/stats/<appid>/achievements/?xml=1 OR http://steamcommunity.com/profiles/<profileid>/stats/<appid>/achievements/?xml=1 A couple notes at this point: <profilename> is the...
You can utilize the unofficial Storefront API and the appdetails call to gather information about a Steam game. It does not require an age check. The basic URL you will call has this format http://store.steampowered.com/api/appdetails/?appids=<APPID>&filters=basic Replace <APPID> with the numeric application ID on the Steam store. The filters I've provided...
c#,api,steam,steam-web-api,steambot
The first problem you have is that you are looping through your items three times when you only need to do it once, this leads to more confusion and more opportunities to introduce a logic error. The logic you want/need to calculate the scrap for each item type is unclear,...
The right regex with preg_match_all is: preg_match_all("/(?:\d\s)(STEAM_[0-5]:[01]:[0-9]{1,8})(?:\s:\s)(permanent|\d{1,}\.000\smin)/", $input_lines, $output_array); I needed to remove the ^. Now, I don't even have to do all the exploding beforehand. I matches the right parts even from the raw result: ID filter list: 2 entries 1 STEAM_1:0:12345678 : permanent 2 STEAM_1:0:87654321 : 30.000 min...
Use PHP's count: <?php $link = file_get_contents('http://api.steampowered.com/IEconItems_440/GetPlayer Items/v0001/?key=&SteamID=&format=json'); $myarray = json_decode($link, true); echo count($myarray['result']['items']); ?> EDIT: To count ones with a specific property you'll have to loop through all of them and increment a variable: <?php $link = file_get_contents('http://api.steampowered.com/IEconItems_440/GetPlayer Items/v0001/?key=&SteamID=&format=json'); $myarray = json_decode($link, true); $count = 0;...
I think I'm going to use a C# Steam Bot on a VPS and use a MySQL database for the queue. Source: http://www.reddit.com/r/SteamBot/comments/1uehje/web_integration/cehqxpl...
Use :not selector and each instead of map (it's used for different purposes): jQuery(".btn_grey_grey.btn_small_thin.ico_hover:not(.active)").each(function() { this.click(); }); Note also that if you bind event handlers with jQuery you can try simpler expression: jQuery(".btn_grey_grey.btn_small_thin.ico_hover:not(.active)").click(); ...
javascript,php,steam,steam-web-api
Have a look at the code here for converting steamID to steamID64: https://forums.alliedmods.net/showthread.php?t=60899?t=60899 You can reverse it for converting steamID64 to steamID, for this the formula would be: (steamID64 - (76561197960265728 + (steamID64 % 2)))/2 This would give you the numbers after the second colon (:). If steamID64 is odd...
php,json,escaping,steam,steam-web-api
So it doesnt really matter if i use htmlspecialchars or html_entity_decode, cuz whenever i put it into get_file_contents it just encodes the ampersands once again. Neither of those is for URI-encoding. That's the job of urlencode. So: $url = 'http://steamcommunity.com/market/priceoverview/?currency=3&appid=730&market_hash_name='.urlencode($itemInfo['market_hash_name']); ...
Depending on the implementation, you should be able to use: Inv = Response.rgInventory.toString(); If this does not lead to a satisfying result, you might have to construct the string yourself. You can always go ahead and override the toString() method as well to make it fit your demands....
I think i discovered some sort of a workaround i guess. The steam openid can be used with a url request like this: https://steamcommunity.com/openid/login? openid.claimed_id=http://specs.openid.net/auth/2.0/identifier_select& openid.identity=http://specs.openid.net/auth/2.0/identifier_select& openid.mode=checkid_setup& openid.ns=http://specs.openid.net/auth/2.0& openid.realm=https://REALM_PARAM& openid.return_to=https://REALM_PARAM/signin/ where REALM_PARAM is the website that will appear on the login screen, Also the...
linux,installation,debian,apt-get,steam
Steam on crunchbang is tricky because of dependency issues which you have found yourself. However the community has come up with a few solutions and many seem to be happy with this project, download and install the deb from the git and you should be good to go! any problems...
TL;DR: managed code called glGenBuffers, and then you crashed. Longer explanation: my guess is that this has something to do with the multi-threaded asset loading, because the crash looks OpenGL related: thread #9: tid = 0x16e17, 0x9c34ae1a libsystem_kernel.dylib __wait4 + 10 [...] frame #5: 0x91e0a03b libsystem_platform.dylib _sigtramp + 43 frame...
use: <img src=<?php echo('"' . $avatar . '"'); ?></img> And make sure that your URL starts with http:// to check just use: <php echo($avatar); ?> you always could use: <img src=<?php echo('"http://' . $avatar . '"'); ?></img> And NEVER forget: first load your functions/variables before they are usable :p...
java,steam,steam-web-api,steam-condenser
SteamId#fetchFriends() returns unfetched (i.e. empty) instances of SteamId for every friend. You will have to call #fetchData() on each of them first. SteamId[] friends = id.getFriends(); for (int i = 0; i < friend.length; i++) { friend[i].fetchData(); // This will get the profile data of that friend System.out.println(friend[i].getNickname()); } Please...
c#,api,inventory,steam,steambot
I was checking my old questions and I noticed that this question got almost 2.5k views! So I thought now that I've figured it out I should answer it myself so others can use it. Well, if I remember correctly, all i wanted at that time was this url: http://api.steampowered.com/ISteamApps/GetAppList/v0001/...
I've done some more research and found the way you can retrieve the price history for an item. As an example for those who are curious, the price history for this random item "Specialized Killstreak Brass Beast" can be retrieved in this way: http://steamcommunity.com/market/pricehistory/?country=DE¤cy=3&appid=440&market_hash_name=Specialized%20Killstreak%20Brass%20Beast...
To convert a 64 bit Steam ID to a 32 bit Account ID, you can just subtract 76561197960265728 from the 64 bit id. This requires bigNumber in node: bignumber = require("bignumber.js"); console.log(bignumber('76561197991791363').minus('76561197960265728')) ...
You could try seeing if the query actually runs or throws an error by doing this: $query = "SELECT steamID64 FROM Users WHERE steamID64='".$ID64."'"; $result = mysql_query($query, $link) or die (mysql_error($link)); $rowcount = mysql_num_rows($result); The insert query is wrong too, it should be: $newUser = "INSERT INTO Users (steamID64) VALUES...
I believe you are using the wrong API end point for this. Utilize the GetUserStatsForGame end point instead. Your call will look like this: http://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v0002/?appid=730&key=<<KEY>>&steamid=<<PROFILEID>> You'll replace <<KEY>> with your API key and <<PROFILEID>> with the profile ID (not SteamID) of the user you are interested in. This value is...
Not entirely sure why you'd want to do this the hard way and regex through HTML when there's a perfectly working call which returns JSON. Although the original answer is correct and answers the OP question directly, this provides a much easier and efficient way of getting the market value...
There are various ways to handle your requirement, I will mention 2 options while I am sure you can find more. You may find many more examples all over the web. Option 1: Using a callback function - Pass a callback function to the async function, When async function is...
You need to get the SteamPath from the registry key at HKEY_CURRENT_USER\Software\Valve\Steam. Then add the folders /SteamApps/sourcemods/ In Qt this is implemented like this: QSettings settings("HKEY_CURRENT_USER\\Software\\Valve\\Steam", QSettings::NativeFormat); QString sourcemods_path = settings.value( "SteamPath", "" ).toString(); if (!sourcemods_path.isEmpty()) { sourcemods_path += "/SteamApps/sourcemods"; } ...
Actually just ended up doing it with the request library. Worked great! app.get('/inventory', function(req, res){ var steamID = req.query.steamID; //send a web request to http://www.steamcommunity.com/profiles/<NUM>/inventory request({ uri: 'http://www.steamcommunity.com/profiles/' + steamID + '/inventory/json/730/2/' }, function(error, response, body){ res.send(body); }) }); ...
c#,methods,callback,call,steam
Write Main2 (args); instead, where args is a string[], for example new string[]{"foo", "bar"} or null. Alternativly, you can implicitly pass specified arguments to the call as an array if you add params to the main methods argument args: public static void Main2(params string[] args) { ... }
You forgot to put semicolons <div class="userDet"> <?php echo "Welcome to the server, $steamid! </br>"; echo "Map: $map</br>"; echo "Enjoy your stay."; ?> </div> ...
Your script contains a header which says #!/bin/bash, that is use /bin/bash to execute this script. Apparently, on your system /bin/bash is not present. I am not familiar with Synology environment, but you should be able to fix this problem by installing bash and then pointing your script to the...
You will call the GetSchema to determine which items these are. You'll compare DefIndex values against the ones returned by GetSchema Your work flow will look like this: Call GetSchema and store result of result['items'] some place to look up later Call your current call and parse through the items....
Please note that you should be reading the full CC-BY-SA 3.0 license text rather than just the summary. Yes, you can sell the game, since CC-BY-SA 3.0 does not impose restrictions on commercial use of the work. However, you would have to release the entire game under CC-BY-SA 3.0, see...
c++,steam,unreal-engine4,steamworks-api
Thanks to @Lightning Racis in Orbit. A simple nullptr check fixed it. if(SteamUser() == nullptr) return false; ...
python,selenium,selenium-webdriver,steam
From what I understand, you are working with this page. To get the list of prices, iterate over results containing in the div elements with market_listing_row class and get the text of the elements with market_listing_their_price class: for result in driver.find_elements_by_css_selector("div.market_listing_row"): price = result.find_element_by_css_selector("div.market_listing_their_price") print price.text.strip() This would print price...