Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3591
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Dr. McKay got a reaction from PonyExpress in editProfile removing background   
    This is a known issue. I haven't gotten around to adding proper support for showcases yet.
  2. Like
    Dr. McKay got a reaction from HolidayExplanation in How can I fetch public Steam info of Steam profiles by their Steam id without the users being logged in?   
    I don't think you can request profile data for arbitrary users without you being friends with them (or being in the same group chat) via steam-user.
  3. Like
    Dr. McKay got a reaction from David - your friend in BREAKING CHANGES: steam-user v4 now available on npm   
    I'm pinning this thread again because of numerous recent questions about changes made in v4.
  4. Like
    Dr. McKay got a reaction from David - your friend in BREAKING CHANGES: steam-user v4 now available on npm   
    The older events are deprecated, but they will keep working until at least v5. Though I recommend switching to the new events.
  5. Like
    Dr. McKay got a reaction from David - your friend in BREAKING CHANGES: steam-user v4 now available on npm   
    Do you think you could possibly add: client.on('debug', log); This will help to narrow down what's going on if it happens again.
    You don't need to login through SteamCommunity if your session expires. Just call client.webLogOn() in that case.
  6. Like
    Dr. McKay got a reaction from HolidayExplanation in loginKey throw error invalidPassword   
    The answer to both your questions is "who knows, it's Valve".
  7. Like
    Dr. McKay got a reaction from HolidayExplanation in Receive friend requests/Adding friends   
    The names are the player_name property in each object in the array provided in the callback.
  8. Like
    Dr. McKay got a reaction from HolidayExplanation in Is there any way to get the name of the game, instead of appid?   
    Rocket League is 252950, not 252590.
  9. Thanks
    Dr. McKay got a reaction from Metro in Translate new /user/ links   
    It's now possible to generate a link to allow someone to add you as a friend without you needing to accept a request. These links look like
    http://s.team/p/user-id/token which redirects to https://steamcommunity.com/user/user-id/token   You can also access a profile using https://steamcommunity.com/user/user-id which will just redirect you to /id/ or /profiles/, depending on whether the profile has a custom URL set. These user IDs look like aaa-aaaa.   I don't know why it might be useful to convert a SteamID to friend-link user-id, but converting the user-id to a SteamID might be useful.   The friend-link user-ids are just the account's accountid (the lower 32 bits in the 64-bit SteamID, or the x part in [U:1:xxxx]), encoded in hexadecimal, with some character replacements, and with a dash added. Here are the replacements: Hex = Letter ------------ 0 = b 1 = c 2 = d 3 = f 4 = g 5 = h 6 = j 7 = k 8 = m 9 = n a = p b = q c = r d = t e = v f = w To convert a SteamID to a user-id, encode the accountid in hex and perform string replacements for the above characters. The hyphen isn't necessary for a final URL to work. To convert a user-id to a SteamID, remove the dash and perform string replacements for the above characters. That gives you an accountid which you can turn into a SteamID using a platform-appropriate SteamID library.
  10. Like
    Dr. McKay got a reaction from Kappa in Error: cannot send an empty trade offer.   
    You need to research how asynchronous code works in JavaScript.
  11. Like
    Dr. McKay reacted to fury313 in Steam Chat   
    Yea sure

    I had to use client.chatMessage i was using something else with which it was just sending plain text
  12. Like
    Dr. McKay reacted to SnaBe in Chat command create and send trade offer... Can someone help ?   
    Alright, there's primarily to parts of creating a systen like this. 
     
    1. Handling chat commands / buy & sell requests from Steam chat.
    2. Searching inventories for the required items and creating the trade offer.
     
    Luckily for you, other users have had similar questions regarding this topic. 
     
    Here's an entry regarding chat commands.
     
    Here's an entry regarding looping trough the inventory and looking for item matches. 
     
    I hope this helps!
  13. Like
    Dr. McKay got a reaction from Dijonigamer in Cannot read property '[object Object]' of null   
    Sorry, I could have been a little clearer. Not event callbacks, those are (mostly) unchanged. Callbacks to functions like getPersonas is what I'm talking about.
     
    All the changes in v4 can be found here.
  14. Like
    Dr. McKay got a reaction from outo in ENOENT: no such file or directory, uv_chdir   
    Try installing from npm now; you shouldn't have any issues. You might need to manually specify the version: npm install [email protected]
  15. Like
    Dr. McKay got a reaction from VenomZ75 in setPersona appears to not work   
    Great, glad you got it working. As an explanation for why you were getting loggedOn emitting, if accountName isn't specified or is undefined, then steam-user will log onto an anonymous user account.
  16. Like
    Dr. McKay reacted to VenomZ75 in setPersona appears to not work   
    I managed to get it working. As you suggested, there was a typo I didn't spot in the config file (module_export instead of module_exports). Many thanks for your help!
  17. Like
    Dr. McKay reacted to Citrio in Steam returning Invalid Ticket for getAuthSessionTicket   
    Alright, thanks anyway <3
  18. Like
    Dr. McKay got a reaction from Plumperkins in Expecting a object from getOffers() but getting undefined   
    The first argument needs to be an enum value, not a string.
  19. Like
    Dr. McKay got a reaction from CellSplitter in Array Elements to List   
    Games.join("\n")
  20. Like
    Dr. McKay got a reaction from MrPotato in getting error   
    You're somehow passing a bool to two_factor_code in the logOn method.
  21. Like
    Dr. McKay got a reaction from MrPotato in getting error in callback function getTradeURL   
    Run npm update and it will throw properly.
  22. Like
  23. Like
    Dr. McKay got a reaction from MrPotato in user.on('error') returns sometimes empty object   
    e is an Error object. Calling JSON.stringify on an Error object returns {}.
  24. Like
    Dr. McKay got a reaction from Condieture in Send image to friend   
    I don't believe it's currently possible to embed an image into chat using steam-user. You could always upload it to imgur or something and send a link to it though.
  25. Like
    Dr. McKay got a reaction from PonyExpress in Problem with memory   
    Memory usage is pretty normal on accounts with a lot of trade offers. The module caches asset descriptions in order to avoid slamming the API and using up your quota of requests on asset description retrieval.
     
    If you want to minimize memory usage, you need to omit a language in the constructor and keep track of whatever data you might need yourself.
×
×
  • Create New...