ZakFahey / SmartRegions

Executes commands when players enter a region
MIT License
5 stars 14 forks source link

Plugin not working with TShock v4.5.3 #4

Open dringdahl opened 3 years ago

dringdahl commented 3 years ago

It seems the TShock API has changed slightly, breaking all the old plugins. The AutoRegister plugin was recently fixed to work with the new API, so perhaps that could help point out what has changed.

dringdahl commented 3 years ago

Updated to the 1.3.0 release and now I'm getting this:

Error Logging Enabled. TerrariaAPI Version: 2.1.0.0 (Protocol v1.4.2.3 (238), OTAPI 1.4.2.3) TShock 4.5.3.0 (Blood Moon edition) now running. AutoSave Enabled Backups Disabled Welcome to TShock for Terraria! TShock comes with no warranty & is free software. You can modify & distribute it under the terms of the GNU GPLv3. [Server API] Info Plugin TShock v4.5.3.0 (by The TShock Team) initiated. [Server API] Info Plugin AutoRegister v1.2.0 (by brian91292, maintained by moisterrific) initiated. [Server API] Info Plugin Buildmode v1.0.0.0 (by nyan-ko & Nova4334) initiated. [Server API] Info Plugin MapTeleport v1.0.0.0 (by Nova4334) initiated. [Server API] Error Startup aborted due to an exception in the Server API initialization: System.InvalidOperationException: Plugin "Smart Regions" has thrown an exception during initialization. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. The system cannot find the file specified. at SmartRegions.DBConnection.Initialize() at SmartRegions.Plugin.Initialize() at TerrariaApi.Server.ServerApi.LoadPlugins() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 375 --- End of inner exception stack trace --- at TerrariaApi.Server.ServerApi.LoadPlugins() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 380 at TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game) in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\ServerApi.cs:line 117 at TerrariaApi.Server.HookManager.InitialiseAPI() in D:\a\TShock\TShock\TerrariaServerAPI\TerrariaServerAPI\TerrariaApi.Server\HookManager.cs:line 27

Am I missing something stupid?

dringdahl commented 3 years ago

As best I can tell, it looks like the person that built this plugin has a newer version of System.Data.SQLite on the system they built v1.3.0 of this plugin than comes with TShock v4.5.3.

oz5581 commented 3 years ago

Same here, i'm having the same issue, pls someone fix it

Metal-666 commented 3 years ago

Same issue here