-
Posts
13 -
Joined
-
Last visited
Posts posted by dlclvlupbot
-
-
//sample 1 manager = new TradeOfferManager({ 'steam': steam, 'language': settings.language // settings.language is blank '' }); //sample 2 manager = new TradeOfferManager({ 'steam': steam });
are they both the same? the reason i'm trying to go for sample 1 is that instead of editing my code and delete language in constructor, i could just set it to either blank or 'en'
-
thanks!
-
scenario
account#1
sent trade offer with offer.data('foo', bar)account#2
receives trade offer but offer.data('foo') = undefinedis it that only the account that created the offer has access to offer.data?
-
i think i'll just have to do it via commands since the bot can access item's market name and market hash name even without specifying language in the constructor.
btw is it okay to set language in the constructor as blank or really have to remove the language option upon instantiating it?
because i want to run my bot with the option of having it enabled or not and access the language from a json file, blank to disable and en to set
-
is it possible to get item descriptions without specifying language in the constructor?
edit:
QuoteRemoving the language from the constructor will certainly reduce memory usage if that's a huge concern for you, but of course you'll lose item description data. If all you really need is the items' asset IDs, then that will work.
forgot about this
On 7/2/2020 at 8:36 AM, Dr. McKay said:Keeping data about item descriptions in memory is going to use memory.
You can try lowering assetCacheMaxItems.
if I set it to 0 and i set a directory in dataDirectory, will it save me memory usage or 0 and 500 does not have much difference?
-
I am okay with it running 1.5gb2gb but then after around 10-20minutes it crashes with core dump and i have a 3gb server.
-
but that wont fix the cookies problem from the account?
-
is there a way to clear them up?
btw: here's my instance of tradeoffermanger
steamtrademanager = new TradeOfferManager({ 'steam': steam, 'language': 'en', 'pollInterval': 5 * 1 * 1000, 'cancelTime': 1000 * 60 * settings.canceltime,// has value of 30 'pendingCancelTime': 1000 * 60 * settings.pendingcanceltime // has value of 1 });
-
it has 250 incoming offer history and 500 sent offer history
edit: no pending for both category
-
sorry for taking too long to reply
so, I deleted everything from the directory and the directory itself
it is still running around 1.5-1.8gb ram eventhough there's literally no tradable items in the said account compared to the new account where I transferred all of the items, running the same script with just 300-500mb of ram(the buggy account is only run until saving trade-offer-manager cookies)
-
sorry noob question: how?
-
steps I did,
log in
set community cookies
still(200-300mb)
set manager cookies(1.1-1.2gb)
after 10-15minutes, node instance crash with core dump
nothing else has been started in bot script
setting constructor
in node-steam-tradeoffer-manager
Posted
there would be only two option: either 'en' or blank, if I want it disabled I just leave it blank and if I want it to be set in the constructor I would place 'en'