Giter Site home page Giter Site logo

citrinate / boostermanager Goto Github PK

View Code? Open in Web Editor NEW
34.0 2.0 2.0 604 KB

An ASF Plugin for creating Steam Booster Packs and managing items

License: Apache License 2.0

C# 91.38% CSS 7.13% Batchfile 0.63% Shell 0.86%
archisteamfarm steam asf asf-plugin

boostermanager's People

Contributors

abrynos avatar citrinate avatar outzzz avatar rudokhvist avatar woctezuma avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

boostermanager's Issues

[question] linux-x64 Version

Hello,
do you plan linux version or it stays ASF-generic version?

It is interesting to use this plugin for docker setup.

Thanks

Minor suggestion to add a few aliases

There are a few aliases in ASF:

Command Alias
addlicense addlicence
owns ASF oa
status ASF sa
redeem r
redeem^ r^

Similarly, there are a few aliases in ASFEnhance:

Shorthand Equivalent Command Description
AL [Bots] <Licenses> ADDLICENSE [Bots] <Licenses> Add free SUB
LA LEVEL ASF Get All bot's level
BA BALANCE ASF Get All bot's wallet balance
PA POINTS ASF Get All bot's points balance
P [Bots] POINTS Get bot's points balance
CA CART ASF Get All bot's cart information

I believe the following aliases could be useful for BoosterManager, and would not cause conflicts with the aforementioned aliases.

Command Alias
bstatus ASF bsa
gems ASF ga
keys ASF ka

I don't know about the third, but I would use the first two.

Cannot run on ASF 6.0.0.3

It seems that this plugin is not working properly after the ASF update

2024-03-09 16:19:14|ArchiSteamFarm-2459969|ERROR|ASF|InitPlugins() Failed due to error: BoosterManager, Version=2.8.1.0, Culture=neutral, PublicKeyT>2024-03-09 16:19:14|ArchiSteamFarm-2459969|ERROR|ASF|InitPlugins() System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the >Method 'OnASFInit' in type 'BoosterManager.BoosterManager' from assembly 'BoosterManager, Version=2.8.1.0, Culture=neutral, PublicKeyToken=null' doe>Method 'Save' in type 'BoosterManager.BoosterDatabase' from assembly 'BoosterManager, Version=2.8.1.0, Culture=neutral, PublicKeyToken=null' does no>Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>
Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The system cannot find the fi>

   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule)
   at System.Reflection.RuntimeModule.GetTypes()
   at System.Reflection.Assembly.GetTypes()
   at ArchiSteamFarm.Plugins.PluginsCore.InitPlugins()
System.TypeLoadException: Method 'OnASFInit' in type 'BoosterManager.BoosterManager' from assembly 'BoosterManager, Version=2.8.1.0, Culture=neutral>System.TypeLoadException: Method 'Save' in type 'BoosterManager.BoosterDatabase' from assembly 'BoosterManager, Version=2.8.1.0, Culture=neutral, Pu>System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aee>
File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aee>
File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aee>
File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aee>
File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aee>
File name: 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aee>

Error when creating boosters

After ASF was updated, I get an error when trying to create boosters, I also updated BoosterManager, I have to use old versions of ASF and BoosterManager
image

Bug

2023-12-23 16:16:42|ArchiSteamFarm-20204|ERROR|0.HustleHardy|GetItemsFromStacks() Not enough available quantity to complete trade, need 3, but only 0 are available
2023-12-23 16:16:42|ArchiSteamFarm-20204|INFO|0.HustleHardy|SendMultipleItemsWithAmounts() Not enough of 753::6::xxxxxxxxxxx to send!
2023-12-23 16:16:42|ArchiSteamFarm-20204|ERROR|0.HustleHardy|BatchSendMultipleItemsWithAmounts() Failed to send items to 2.1
9lZ-nd0Se-o

Failure after ASF updated to 5.4.8.3

2023-08-01 09:35:34|dotnet-5928|ERROR|ASF|InitPlugins() Échec dû à une erreur : BoosterManager, Version=2.4.1.0, Culture=neutral, PublicKeyToken=null
2023-08-01 09:35:34|dotnet-5928|ERROR|ASF|InitPlugins() System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load type 'EType' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
Could not load type 'EType' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
Could not load type 'EType' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
Could not load type 'ArchiSteamFarm.Steam.Security.Confirmation' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
Could not load type 'ArchiSteamFarm.Steam.Security.Confirmation' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.Assembly.GetTypes()
   at ArchiSteamFarm.Plugins.PluginsCore.InitPlugins()
System.TypeLoadException: Could not load type 'EType' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
System.TypeLoadException: Could not load type 'EType' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
System.TypeLoadException: Could not load type 'EType' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
System.TypeLoadException: Could not load type 'ArchiSteamFarm.Steam.Security.Confirmation' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.
System.TypeLoadException: Could not load type 'ArchiSteamFarm.Steam.Security.Confirmation' from assembly 'ArchiSteamFarm, Version=5.4.8.3, Culture=neutral, PublicKeyToken=504f46588cc351a9'.

Question

Can u please give an example for sending different items with one command with AppID::ContextID::ClassID?

Show AM/PM after the 12-hour times or show the 24-hour times

Information about AM/PM is missing from the output of bstatus, e.g.

Next booster will be crafted at 4:58 : Duke Nukem 3D: Megaton Edition (225140)

However, I believe you must make use of this piece of information to manage the creation of booster packs.

For reference, this is how the information appears on the official boostercreator page:

{
  "appid": 225140,
  "name": "Duke Nukem 3D: Megaton Edition",
  "series": 1,
  "price": "1000",
  "unavailable": true,
  "available_at_time": "12 Dec @ 4:57pm"
}

I would suggest:

  • either to show AM/PM after the 12-hour times,
  • or to show the 24-hour times.

This would lead to:

Next booster will be crafted at 4:58 PM : Duke Nukem 3D: Megaton Edition (225140)

or

Next booster will be crafted at 16:58 : Duke Nukem 3D: Megaton Edition (225140)

Add support for crafting multiple identical booster packs

Right now you need to run a daily command to craft more booster packs of the app ids you want.
It'd be useful to add another command to booster:

booster [Bots] <AppIDs> <Number>

If <Number> is omitted: 1
If <Number> is passed in, such as 2, then it schedules one now, another one tomorrow, etc.

Error after updating to DotNet v8

2023-11-18 23:27:03|dotnet-5756|INFO|ASF|InitCore() ArchiSteamFarm V5.5.0.0 (generic/98d541a0-893c-4ebb-91b8-45e2b65a4245 | .NET 8.0.0; win-x64; Microsoft Windows 10.0.19045)
2023-11-18 23:27:04|dotnet-5756|INFO|ASF|InitPlugins() Chargement BoosterManager V2.5.1.0... 
2023-11-18 23:27:07|dotnet-5756|FATAL|ASF|OnUnhandledException() System.MissingMethodException: Method not found: 'System.Threading.Tasks.Task`1<ArchiSteamFarm.Web.Responses.HtmlDocumentResponse> ArchiSteamFarm.Steam.Integration.ArchiWebHandler.UrlGetToHtmlDocumentWithSession(System.Uri, System.Collections.Generic.IReadOnlyCollection`1<System.Collections.Generic.KeyValuePair`2<System.String,System.String>>, System.Uri, ERequestOptions, Boolean, Byte, Int32, Boolean)'.
   at BoosterManager.WebRequest.GetBoosterPage(Bot bot)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at BoosterManager.WebRequest.GetBoosterPage(Bot bot)
   at BoosterManager.BoosterQueue.UpdateBoosterInfos()
   at BoosterManager.BoosterQueue.Run()
   at BoosterManager.BoosterQueue.<.ctor>b__14_0(Object e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

References:

Crash after using the booster command

I want to craft booster packs on a few accounts.

After calling !booster ASF XXX, where XXX is the appID of the game of interest, ASF would crash:

  • only when using this plugin (Citrinate/BoosterManager),
  • not with the original one (Ryzhehvost/BoosterCreator).
2022-12-11 10:18:17|dotnet-2864|FATAL|ASF|OnUnhandledException() System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. (Parameter 'steamID')
   at ArchiSteamFarm.Steam.Bot.SendMessage(UInt64 steamID, String message)
   at BoosterManager.BoosterHandler.SendStatusReport(Bot respondingBot, UInt64 recipientSteamID)
   at BoosterManager.BoosterHandler.<PerpareStatusReport>b__19_0(Object e)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

async e => await SendStatusReport(RespondingBot, RecipientSteamID).ConfigureAwait(false),


This also happens when using only one account (the first in the list) and calling:

  • either !booster XXX,
  • or !booster BOT XXX, where BOT is the name of the account.

Question

Im closed previous issue by missclick. Im sorry.

Can u please give an example for sending different items with one command with AppID::ContextID::ClassID?
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.