TShock icon indicating copy to clipboard operation
TShock copied to clipboard

[Request & Mobile Support] .NET 5 Support

Open EMREOYUN opened this issue 4 years ago • 4 comments

DeathCradle/Open-Terraria-API has a upcoming branch that can build a working OTAPI from Vanilla Mobile Server(and PC Vanilla Server too). The problem is, OTAPI builds on .NET 5. Since TShock works on .NET 4.5, this OTAPI can not be integrated neither TerrariaServerAPI and TShock.

My question is, can we somehow integrate it to existing code with some kind of upgrading or should we need code from scratch?

EMREOYUN avatar Sep 21 '21 10:09 EMREOYUN

Can you integrate it - I don't know, probably? Should you - not sure, because iirc OTAPI3 would be the basis for Orion, a redesign of the server engine model, and I'm not sure TShock in its current state is going to be brought over (or even be compatible?).

Also, this is discussion material I think.

bartico6 avatar Sep 21 '21 11:09 bartico6

Can you integrate it - I don't know, probably? Should you - not sure, because iirc OTAPI3 would be the basis for Orion, a redesign of the server engine model, and I'm not sure TShock in its current state is going to be brought over (or even be compatible?).

Also, this is discussion material I think.

It seems i can't because OTAPI 3 does not contain OTAPI.Patcher.Engine object group.

EMREOYUN avatar Sep 21 '21 11:09 EMREOYUN

ofc we can, it is not even a tough task

AxeelAnder avatar Sep 22 '21 12:09 AxeelAnder

ofc we can, it is not even a tough task

i have poc upgrades to the existing stack (non mobile), or orion can be used instead. whatever the guys want to do, they can. https://github.com/DeathCradle/TShock/tree/otapi3 https://github.com/DeathCradle/TerrariaAPI-Server/tree/otapi3

mobile support is quite new, and likely would need tshock to opt in to use and support that package.

Should you - not sure, because iirc OTAPI3 would be the basis for Orion, a redesign of the server engine model, and I'm not sure TShock in its current state is going to be brought over (or even be compatible?).

all legacy hooks have an upgrade path.

SignatureBeef avatar Sep 23 '21 02:09 SignatureBeef

update, .net6 support for pc exists now. otapi.mobile isn't currently planned for tshock integration, at least yet. there are plugins that can enable similar outcomes to this.

SignatureBeef avatar Sep 06 '22 12:09 SignatureBeef

update, .net6 support for pc exists now. otapi.mobile isn't currently planned for tshock integration, at least yet. there are plugins that can enable similar outcomes to this.

Actually PC and Mobile are very similar now. No need to create different branches.

EMREOYUN avatar Sep 06 '22 14:09 EMREOYUN