SmartlyDressedGames / Legally-Distinct-Missile

Fork of Rocket for Unturned maintained by the game developers.
MIT License
79 stars 29 forks source link

Uconomy broke after today's update #68

Open aman7 opened 10 months ago

aman7 commented 10 months ago

so i have been using Uconomy plugin with rocketMod since very long time on my servers. But after today's update it is unable to load with some missing library error. The libraries installed on correct location. and it was working fine before the update.

here is the exception. 10/13/2023 4:44:57 PM] [Info] [registered] /pay (fr34kyn01535.Uconomy.CommandPay/pay) [10/13/2023 4:44:57 PM] [Error] mscorlib >> Caught exception resolving dependency: I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 -> Exception in DoAssemblyResolve: System.BadImageFormatException: 0x0x7f3ecef34020 File name: 'In Memory assembly' at (wrapper managed-to-native) System.AppDomain.LoadAssemblyRaw(System.AppDomain,byte[],byte[],System.Security.Policy.Evidence,bool) at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityEvidence, System.Boolean refonly) [0x0000e] in <2161c9885dd04ff291b79db9349c4b9b>:0 at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityEvidence) [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 at (wrapper remoting-invoke-with-check) System.AppDomain.Load(byte[],byte[],System.Security.Policy.Evidence) at System.AppDomain.Load (System.Byte[] rawAssembly) [0x00000] in <2161c9885dd04ff291b79db9349c4b9b>:0 at (wrapper remoting-invoke-with-check) System.AppDomain.Load(byte[]) at System.Reflection.Assembly.Load (System.Byte[] rawAssembly) [0x00005] in <2161c9885dd04ff291b79db9349c4b9b>:0 at Rocket.Core.Plugins.RocketPluginManager.<Awake>b__12_0 (System.Object sender, System.ResolveEventArgs args) [0x00049] in <59a13feb721848c8b0cd173f6d0e820b>:0 [10/13/2023 4:44:57 PM] [Error] Could not find dependency: I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 [10/13/2023 4:44:57 PM] [Error] Failed to load Uconomy, unloading now... :System.IO.FileNotFoundException: Could not load file or assembly 'I18N.West, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. File name: 'I18N.West, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' at fr34kyn01535.Uconomy.Uconomy.Load () [0x00006] in <3c081c2693ff4a59b9facc1a1b5ac850>:0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in <59a13feb721848c8b0cd173f6d0e820b>:0 [10/13/2023 4:44:57 PM] [Info] [unloading] Uconomy and here are the installed libraries image

Someone advised me to remove both dlls with .v4, but it didnt solved the problem.

I have checked other servers who are using uconomy, they are facing the same problem.

Did the recent update changed something? or any idea how to fix it?

SDGNelson commented 10 months ago

It seems some of the dependency libraries need to be updated. Here's the most recent I18N dlls from Unity: I18N.zip

The next dependency seems to be MySQL.Data, but I'm not sure which package that is from. Still looking around but if you know that'd be much appreciated - helpful for others too I think!

aman7 commented 10 months ago

thank you, this solved the issue. and yes MySQL.Data wasnt needed.

SDGNelson commented 10 months ago

Glad to hear that did the job!

Quickly putting System.Drawing here for someone else: System.Drawing.zip

robbertgroen commented 10 months ago

The System.Drawing.dll fixed the problems on my servers. Thank you.

aman7 commented 10 months ago

So I tryed to run System.Drawning.dll and I18N.dlls at the same time and singly but it didnt fixed the ZaupShop or other plugins. Im not rlly experienced in this area does anyone know what the issue might be?

paste the error logs

IHTPSS commented 3 months ago

how did you fix it?

The System.Drawing.dll fixed the problems on my servers. Thank you.

IHTPSS commented 3 months ago

[loading] Uconomy [registered] /balance (fr34kyn01535.Uconomy.CommandBalance/balance) [registered] /pay (fr34kyn01535.Uconomy.CommandPay/pay) Assembly-CSharp >> Caught exception resolving dependency: I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f 132ed756 -> Exception in handleAssemblyResolve: System.BadImageFormatException: 0x000001E358050020 File name: 'In Memory assembly' at (wrapper managed-to-native) System.AppDomain.LoadAssemblyRaw(System.AppDomain,byte[],byte[],System.Security.Policy.Eviden ce,bool) at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityE vidence, System.Boolean refonly) [0x0000e] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityE vidence) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at (wrapper remoting-invoke-with-check) System.AppDomain.Load(byte[],byte[],System.Security.Policy.Evidence) at System.AppDomain.Load (System.Byte[] rawAssembly) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at (wrapper remoting-invoke-with-check) System.AppDomain.Load(byte[]) at System.Reflection.Assembly.Load (System.Byte[] rawAssembly) [0x00005] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at Rocket.Core.Plugins.RocketPluginManager.OnAssemblyResolve (System.Object sender, System.ResolveEventArgs args) [0x00049] in <09b6a6e399e5417eb969381ca3201ce1>:0 Could not find dependency: I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 mscorlib >> Caught exception resolving dependency: I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed75 6 -> Exception in DoAssemblyResolve: System.BadImageFormatException: 0x000001E358101020 File name: 'In Memory assembly' at (wrapper managed-to-native) System.AppDomain.LoadAssemblyRaw(System.AppDomain,byte[],byte[],System.Security.Policy.Eviden ce,bool) at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityE vidence, System.Boolean refonly) [0x0000e] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at System.AppDomain.Load (System.Byte[] rawAssembly, System.Byte[] rawSymbolStore, System.Security.Policy.Evidence securityE vidence) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at (wrapper remoting-invoke-with-check) System.AppDomain.Load(byte[],byte[],System.Security.Policy.Evidence) at System.AppDomain.Load (System.Byte[] rawAssembly) [0x00000] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at (wrapper remoting-invoke-with-check) System.AppDomain.Load(byte[]) at System.Reflection.Assembly.Load (System.Byte[] rawAssembly) [0x00005] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at Rocket.Core.Plugins.RocketPluginManager.OnAssemblyResolve (System.Object sender, System.ResolveEventArgs args) [0x00049] in <09b6a6e399e5417eb969381ca3201ce1>:0 Could not find dependency: I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756 Failed to load Uconomy, unloading now... :System.IO.FileNotFoundException: Could not load file or assembly 'I18N.West, Version =4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. File name: 'I18N.West, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' at fr34kyn01535.Uconomy.Uconomy.Load () [0x00006] in :0 at Rocket.Core.Plugins.RocketPlugin.LoadPlugin () [0x00033] in <09b6a6e399e5417eb969381ca3201ce1>:0

[unloading] Uconomy

SDGNelson commented 3 months ago

@IHTPSS it looks like you need a newer version of I18N.West.dll. I think the ones I provided before were from the unityjit folder. Hopefully it's the right one: I18N.West.zip