TavstalDev / TShop2

SQL based async item and vehicle shop plugin for Unturned 3
GNU General Public License v3.0
3 stars 0 forks source link

mysql method not found #11

Closed khaiizha closed 1 month ago

khaiizha commented 1 month ago

Using the latest release and latest library produce this error

[TShop] [ERROR] > System.MissingMethodException: Method not found: MySql.Data.MySqlClient.MySqlConnection Tavstal.TLibrary.Managers.DatabaseManagerBase.CreateConnection() at System.Runtime.CompilerServices.AsyncVoidMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <47fc8c70fa834cbf8141d7c1a7589125>:0 at Tavstal.TShop.DatabaseManager.CheckSchema () [0x0001f] in <36ef412d42a64b8b8e6f6e254b13412c>:0 at Tavstal.TLibrary.Managers.DatabaseManagerBase..ctor (Tavstal.TLibrary.Compatibility.Interfaces.IPlugin plugin, Tavstal.TLibrary.Compatibility.IConfigurationBase configuration) [0x0001c] in <f575559d36014281b2d547f80f2d94db>:0 at Tavstal.TShop.DatabaseManager..ctor (Tavstal.TLibrary.Compatibility.IConfigurationBase configuration) [0x00006] in <36ef412d42a64b8b8e6f6e254b13412c>:0 at Tavstal.TShop.TShop.OnLoad () [0x00198] in <36ef412d42a64b8b8e6f6e254b13412c>:0

TavstalDev commented 1 month ago

That's a very strange error, because based on this error I shouldn't be able to build the plugin. Could you upload the full log file ?

What kind of database do you use ? What is the version of TShop ? What is the version of TLibrary ?

What is the version of your MySql.Data.dll ?

khaiizha commented 1 month ago

Im using Mysql. TShop: 4.1.8965.29959 TLibrary: 1.0.8965.28889 MySql.Data.dll: Got multiple version, 8.3.0, 8.0.33.0, 8.0.30.0, 8.0.22.0 but with different names.

I have tried to do a fresh library install with only library provided by TShop and it works but if I use my current server Libraries folder it will pop out this error. Looks like I need to manage my library folders and find the best version that would not break other plugins.

khaiizha commented 1 month ago

Issue resolved after i housekeep my libraries folder and renaming some.