Jump to content


Photo
Question

Getting Items market_hash_name when there's no language in constructor

node.js node-steam-tradeoffer-manager

  • Please log in to reply
6 replies to this topic

#1 Kokoman111

Kokoman111

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 02 March 2019 - 11:13 AM

Hey,

 

I'm trying to retrieve the items im getting in trades, but problem is I can't do that when my language is removed from my client constructor

let client = new SteamUser(),
    manager = new TradeOfferManager({
        "steam": client,
        "pollInterval": "10000",
        "cancelTime": "1800000"
    }),

Is there a work around?

 

 

I had to remove language, and adding it back isn't an option



#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,992 posts

Posted 02 March 2019 - 11:21 PM

Why is adding it back not an option?



#3 Kokoman111

Kokoman111

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 03 March 2019 - 01:43 AM

Why is adding it back not an option?

It's a level bot, and when the inventory gets too big the bot will crash

 

I came up with a solution to simply scan the entire inventory & compare assetid's & then retrieve the name but that's gonna be quite a heavy task, so I was wondering if there's another way


Edited by Kokoman111, 03 March 2019 - 01:50 AM.


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,992 posts

Posted 03 March 2019 - 09:50 AM

When did you remove the language? Some changes were made in August 2017 to reduce memory usage.

#5 Kokoman111

Kokoman111

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 03 March 2019 - 01:31 PM

When did you remove the language? Some changes were made in August 2017 to reduce memory usage.

August 2018

 

My inventory is really big so It was the only way.



#6 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,992 posts

Posted 03 March 2019 - 09:38 PM

There is no way to get description data including market_hash_name in steam-tradeoffer-manager without specifying a language. You would need to load your inventory separately, or use GetAssetClassInfo.



#7 Kokoman111

Kokoman111

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 04 March 2019 - 01:14 AM

There is no way to get description data including market_hash_name in steam-tradeoffer-manager without specifying a language. You would need to load your inventory separately, or use GetAssetClassInfo.

Ok, thx for your help







Also tagged with one or more of these keywords: Question, node.js, node-steam-tradeoffer-manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users