Jump to content
McKay Development

Dr. McKay

Administrator
  • Posts

    3658
  • Joined

  • Last visited

Everything posted by Dr. McKay

  1. let tag; if ((tag = item.getTag('item_class')) && tag.internal_name == 'item_class_2') { ... }
  2. Please post your solution for others in the future. In this case, the problem was that the first argument to the callback should be err, not offer.
  3. Yes, that's normal. Originally v4 was going to fill in all values not sent by Steam with their defaults (e.g. 0 or empty string) but I decided against that and switched those values back to null (which is how it works in v3). Null means that those values were not sent to us by Steam at all, which is more correct than "assuming" 0 or empty string.
  4. Thanks for the info, that's fixed in beta 5. With beta 5, steam-user v4 is now feature-complete (unless there's something major I missed). Now just waiting on some more thorough testing (please post your bugs!) and for me to finish the new chat docs.
  5. I was unable to reproduce this on the v3 branch, but there is indeed a bug in v4 that prevents sentry files from being appropriately confirmed with Steam. It will be fixed in beta 5 to be published later today, but for the time being if you delete your sentry file and login with v3 and provide an email code, v4 should then work.
  6. CEconItem has a getTag method. Filter your inventory to only items with the tag you're looking for.
  7. This is fixed in beta 4. Thanks for the detailed info.
  8. That looks correct enough, though you should probably also check the tag's category.
  9. You have too many open files. https://askubuntu.com/questions/181215/too-many-open-files-how-to-find-the-culprit
  10. I'm sorry to say it, but if you don't want that behavior then you shouldn't be using steam-tradeoffer-manager. The entire purpose of the module is to keep stateful track of trade offers so that relevant events can be emitted when things change, but what you're asking for is to disregard old offers and only deal with new ones. That's not what steam-tradeoffer-manager is designed to do, and you'd probably be better off using some other library to deal with trade offers if your memory limitations require you to disregard older trade offers.
  11. Beta 3 is now on npm. Now featuring (most of) the docs for the new chat API!
  12. Uhhh, good catch. It should work, but you won't get a response back yet.
  13. Supported in v4 beta 2.
  14. No, none of my libraries would be involved in doing anything like this. You'd probably need to inject something into the game's process to render an item and capture it to an image.
  15. You need cookies to be logged into Steam. You need your identity_secret and to be logged in to confirm offers.
  16. Beta 2 fixes OS capitalization. New chat stuff does not yet have docs, but all the methods have jsdoc. SteamChatRoomClient is available as a chat property of your SteamUser instance, e.g. user.chat.sendFriendMessage(steamID, "/flip")
  17. You need your identity_secret to accept trade offers. There is no way around it. https://dev.doctormckay.com/topic/365-cookies/#user-cookieexpiration
  18. I really don't mind necroing on this forum. You definitely need to put the confirmation acceptance inside the callback to accept, but within that callback it's not a bad idea to add a short delay. Use setTimeout for this.
  19. Automated voting on any content will never be supported.
  20. That looks correct.
  21. The result is the result of the random (same in /flip). In the second line of that block, the resulting random number was 872.
×
×
  • Create New...