https://github.com/signaturebeef/tshock.plugins.net6migrator
TShock plugin migration tool built on ModFramework
https://github.com/signaturebeef/tshock.plugins.net6migrator
Last synced: 8 months ago
JSON representation
TShock plugin migration tool built on ModFramework
- Host: GitHub
- URL: https://github.com/signaturebeef/tshock.plugins.net6migrator
- Owner: SignatureBeef
- License: gpl-3.0
- Created: 2021-12-11T11:48:04.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-06T10:12:35.000Z (almost 4 years ago)
- Last Synced: 2025-03-25T00:14:21.517Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 55.7 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TShock.Plugins.Net6Migrator
A [ModFramework](https://github.com/DeathCradle/ModFramework.NET) plugin and program that attempts to upgrade old TShock plugins to the new OTAPI3/TShock platform.
Currently it can:
- Rewrite old plugins based on .NET Framework (3.5, 4.5) to .NET 6 under simple scenarios (more scenarios will be added)
- Rewrite old Mono.Data.Sqlite calls to System.Data.SQLite
- Rewrite OTAPI.Tile.ITile => Terraria.ITile
- Rewrite TShockAPI.ConfigFile => TShockAPI.Configuration.TShockConfig
- Rewrite TShockAPI.Config => TShockAPI.Config.Settings
- Swap 32bit to 64bit to prevent bad format exceptions
- Rewrite Utils.FindPlayer => TSPlayer.FindByNameOrID
- Rewrite User/UserManager => UserAccount/UserAccountManager
The rewrite process occurs before TShock is loaded when using as a ModFw plugin.
TODO:
- Documentation
- currently it can be compiled and dropped into ./modifications of a new OTAPI3 based server, otherwise run the Launcher project
- Test more [TShock plugins](https://github.com/Pryaxis/Plugins)
- TShock & TSAPI on nuget - for easier automation of redirections
- SQLite - upgrade/replace old incompatible connection strings
NOTE: DO NOT EXPECT MANY PLUGINS TO WORK - THIS IS THE FIRST REVISION
