Jump to content
McKay Development

dlclvlupbot

Member
  • Posts

    13
  • Joined

  • Last visited

Posts posted by dlclvlupbot

  1. //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'

  2. 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

  3. is it possible to get item descriptions without specifying language in the constructor?

    edit: 

    Quote

    Removing 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?

  4. 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)

     

×
×
  • Create New...