Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run on ASF 6.0.0.3 #13

Closed
Cicini opened this issue Mar 9, 2024 · 14 comments
Closed

Cannot run on ASF 6.0.0.3 #13

Cicini opened this issue Mar 9, 2024 · 14 comments

Comments

@Cicini
Copy link

Cicini commented Mar 9, 2024

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>
@Citrinate
Copy link
Owner

Just released V2.8.3 of the plugin which works with ASF 6.0.0.3

@Cicini
Copy link
Author

Cicini commented Mar 9, 2024

Just released V2.8.3 of the plugin which works with ASF 6.0.0.3

got it

@Cicini Cicini closed this as completed Mar 9, 2024
@Cicini
Copy link
Author

Cicini commented Mar 9, 2024

Just released V2.8.3 of the plugin which works with ASF 6.0.0.3

It seems that there are still related errors, I am not sure if it will affect the plugin's functionality

2024-03-09 16:35:42|ArchiSteamFarm-2460271|ERROR|ASF|Community with ASFEnhance failed() System.IO.FileNotFoundException: Could not load file or assembly 'ASFEnhance, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'ASFEnhance, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.<InternalLoad>g____PInvoke|49_0(NativeAssemblyNameParts*, ObjectHandleOnStack, StackCrawlMarkHandle, Int32, ObjectHandleOnStack, ObjectHandleOnStack)
   at System.Reflection.RuntimeAssembly.InternalLoad(NativeAssemblyNameParts*, ObjectHandleOnStack, StackCrawlMarkHandle, Boolean , ObjectHandleOnStack, ObjectHandleOnStack)
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName, StackCrawlMark&, AssemblyLoadContext , RuntimeAssembly , Boolean )
   at System.Reflection.RuntimeAssembly.InternalLoad(String, StackCrawlMark&, AssemblyLoadContext )
   at System.Reflection.Assembly.Load(String)
   at BoosterManager.AdapterBridge.InitAdapter(String pluginName, String pluginId, String cmdPrefix, String repoName, MethodInfo cmdHandler)

@Cicini
Copy link
Author

Cicini commented Mar 9, 2024

Just released V2.8.3 of the plugin which works with ASF 6.0.0.3

It seems that there are still related errors, I am not sure if it will affect the plugin's functionality

2024-03-09 16:35:42|ArchiSteamFarm-2460271|ERROR|ASF|Community with ASFEnhance failed() System.IO.FileNotFoundException: Could not load file or assembly 'ASFEnhance, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'ASFEnhance, Culture=neutral, PublicKeyToken=null'
   at System.Reflection.RuntimeAssembly.<InternalLoad>g____PInvoke|49_0(NativeAssemblyNameParts*, ObjectHandleOnStack, StackCrawlMarkHandle, Int32, ObjectHandleOnStack, ObjectHandleOnStack)
   at System.Reflection.RuntimeAssembly.InternalLoad(NativeAssemblyNameParts*, ObjectHandleOnStack, StackCrawlMarkHandle, Boolean , ObjectHandleOnStack, ObjectHandleOnStack)
   at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName, StackCrawlMark&, AssemblyLoadContext , RuntimeAssembly , Boolean )
   at System.Reflection.RuntimeAssembly.InternalLoad(String, StackCrawlMark&, AssemblyLoadContext )
   at System.Reflection.Assembly.Load(String)
   at BoosterManager.AdapterBridge.InitAdapter(String pluginName, String pluginId, String cmdPrefix, String repoName, MethodInfo cmdHandler)

After logging in

2024-03-09 16:40:54|ArchiSteamFarm-2460470|ERROR|ASF|GetBoosterPage() System.MissingMethodException: Method not found: 'Void System.Text.Json.JsonSerializerOptions.set_NumberHandling(System.Text.Json.Serialization.JsonNumberHandling)'.
   at BoosterManager.BoosterPageResponse..ctor(Bot bot, IDocument boosterPage)
   at BoosterManager.WebRequest.GetBoosterPage(Bot bot)
2024-03-09 16:40:54|ArchiSteamFarm-2460470|ERROR|Cicini|UpdateBoosterInfos() boosterPage is null!
2024-03-09 16:40:54|ArchiSteamFarm-2460470|ERROR|Cicini|Run() Failed to update booster information

@Cicini Cicini reopened this Mar 9, 2024
@Citrinate
Copy link
Owner

The ASFEnhance error should not be an issue. Are you using something other than ASF-generic?

@Cicini
Copy link
Author

Cicini commented Mar 9, 2024

The ASFEnhance error should not be an issue. Are you using something other than ASF-generic?

I still get the same error after I have cleared all files and redownloaded and configured them (Only BoosterManager Installed)

config:

{
  "Enabled": true,
  "GamesPlayedWhileIdle": [
    2230650
  ],
  "OnlineStatus": 7,
  "SteamLogin": "********",
  "SteamPassword": "********",
  "GamesToBooster": [
    1406990
  ]
}

@Citrinate
Copy link
Owner

The System.MissingMethodException error to me suggests you're using something other than ASF-generic, maybe ASF-win-x64 if you're using Windows?

This newest version has only been tested with ASF-generic, and so it's very possible to be broken with other variants of ASF. If that's the case, then I don't have a fix for this right now, but will look into addressing this within a few days.

@Cicini
Copy link
Author

Cicini commented Mar 9, 2024

The System.MissingMethodException error to me suggests you're using something other than ASF-generic, maybe ASF-win-x64 if you're using Windows?

This newest version has only been tested with ASF-generic, and so it's very possible to be broken with other variants of ASF. If that's the case, then I don't have a fix for this right now, but will look into addressing this within a few days.

I'm using ASF-linux-x64
Thank you for helping me.

@phrostb
Copy link

phrostb commented Mar 9, 2024

I'm using asf-win-x64 and getting the same error. i don't mind waiting for a fix, just wanted to say thanks for keeping this project going! i appreciate you!

@JustArchi
Copy link

JustArchi commented Mar 9, 2024

The System.MissingMethodException error to me suggests you're using something other than ASF-generic, maybe ASF-win-x64 if you're using Windows?

This newest version has only been tested with ASF-generic, and so it's very possible to be broken with other variants of ASF. If that's the case, then I don't have a fix for this right now, but will look into addressing this within a few days.

That specific issue reported above you can fix by using [JsonNumberHandling] attribute on class properties rather than json serializer (global) setting 🙂. ASF also uses it in several places, on the same per-property basis.

Citrinate added a commit that referenced this issue Mar 11, 2024
@Citrinate
Copy link
Owner

Fixed this error and a few others I found. I'll post a new release tomorrow. In the meantime if you want to test the current build you can download it here: BoosterManager V2.8.4

@Citrinate
Copy link
Owner

New release is out which fixes this, V2.8.4. It's possible there's other errors I didn't find though, but I'm still closing this as the original problem this issue was opened for is certainly fixed. Feel free to open a new one if there's any other problems.

@Cuteistfox
Copy link

just wondering incase of more issues, can you just copy the config and plugins directorys from a linux-x64 install to a generic one?

@Citrinate
Copy link
Owner

just wondering incase of more issues, can you just copy the config and plugins directorys from a linux-x64 install to a generic one?

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants