FragLand / terracord

:evergreen_tree: A Discord <-> Terraria bridge plugin for TShock
GNU General Public License v3.0
33 stars 14 forks source link

Netstandart Error #68

Closed EMREOYUN closed 4 years ago

EMREOYUN commented 4 years ago

Expected Behavior

Actual Behavior/Symptoms

How to Reproduce Behavior/Symptoms

Terracord Version

Terraria/TShock Version

Discord.Net Version

.NET/Mono Version

Operating System

Output/Screenshot(s)

Additional Notes

ldilley commented 4 years ago

Greetings, @EMREOYUN.

How are you running TShock? It should require a .NET interpreter. The same interpreter should be able to load Terracord just fine. Also, I doubt that Terracord would be supported on your version of Terraria (1.3.0.7)/TShock (4.3.8) considering it is almost half a decade old. The API version for TShock 4.3.8 is 1.21. Terracord uses API version 2.1. You would need to upgrade to at least version 4.3.24 of TShock (latest version at the time of this reply is 4.3.26) to use Terracord.

In regards to the .NET SDK, you only require this software if you are building Terracord from source. The supplied DLL contained in the release zip archives only requires the .NET runtime which consumes less disk space than the SDK. As mentioned previously, you should already have some version of the .NET runtime installed on your server in order to run TShock.

EMREOYUN commented 4 years ago

Greetings, @EMREOYUN.

How are you running TShock? It should require a .NET interpreter. The same interpreter should be able to load Terracord just fine. Also, I doubt that Terracord would be supported on your version of Terraria (1.3.0.7)/TShock (4.3.8) considering it is almost half a decade old. The API version for TShock 4.3.8 is 1.21. Terracord uses API version 2.1. You would need to upgrade to at least version 4.3.24 of TShock (latest version at the time of this reply is 4.3.26) to use Terracord.

In regards to the .NET SDK, you only require this software if you are building Terracord from source. The supplied DLL contained in the release zip archives only requires the .NET runtime which consumes less disk space than the SDK. As mentioned previously, you should already have some version of the .NET runtime installed on your server in order to run TShock.

Mobile Clients hates 4.3.26. We are using 1.3.0.7 with API 2.1(It's modificated version). .NET Framework already installed but netstandart is not part of .NET Framework i think, it is part of .NET SDK.

This is our modified code: https://github.com/chi-rei-den/TShock/

ldilley commented 4 years ago

Ah. I am not familiar with the mobile version at all. Fortunately, @moisterrific is... Was there anything special you had to do, @moisterrific, to get Terracord working with your mobile server?

Terracord targets .NET Standard 2.0 and should work with .NET Framework >=4.6.1, .NET Core runtime 2.0, and possibly Mono 5.4 according to this .NET implementation support table: https://docs.microsoft.com/en-us/dotnet/standard/net-standard

moisterrific commented 4 years ago

Nothing special, just very basic reference change and changing a few lines of code copy/pasted from the mobile source lol

the setup procedure is otherwise identical to how you’d do it for PC

ldilley commented 4 years ago

@EMREOYUN: What .NET interpreter, including version, are you using? The issue template you used did not seem to have a proper response in the .NET/Mono Version section. Can you also please include any relevant error messages from the console output when trying to start the server and plugin?

EMREOYUN commented 4 years ago

@EMREOYUN: What .NET interpreter, including version, are you using? The issue template you used did not seem to have a proper response in the .NET/Mono Version section. Can you also please include any relevant error messages from the console output when trying to start the server and plugin?

.NET: 4.0 Mono: 6.8.0.105

ldilley commented 4 years ago

Discord.Net (a dependency of Terracord) is unsupported under Mono. .NET Framework 4.0 is also rather old and does not support .NET Standard 2.0. You need at least .NET Framework 4.6.1 to support .NET Standard 2.0 which is what Terracord.dll targets. The problem here is clearly with your interpreter. You need to upgrade to or install either .NET Framework >=4.6.1 or .NET Core >=2.0 to use Terracord.

Since you have the path forward, I'll close this issue in at least 72 hours from now. Please let us know if you have any further questions.

EMREOYUN commented 4 years ago

Discord.Net (a dependency of Terracord) is unsupported under Mono. .NET Framework 4.0 is also rather old and does not support .NET Standard 2.0. You need at least .NET Framework 4.6.1 to support .NET Standard 2.0 which is what Terracord.dll targets. The problem here is clearly with your interpreter. You need to upgrade to or install either .NET Framework >=4.6.1 or .NET Core >=2.0 to use Terracord.

Since you have the path forward, I'll close this issue in at least 72 hours from now. Please let us know if you have any further questions.

Weird, how i can find .Net 4.6.1? Offical website downloads 4.0 version.

kyleighd commented 4 years ago

Your version was end of life on 2016-01-12. I'm not sure where you are seeing that only 4.0 is available. Here are the official Microsoft download links. https://dotnet.microsoft.com/download https://dotnet.microsoft.com/download/dotnet-framework

EMREOYUN commented 4 years ago

Issue fixed and Terracord works well for now.

EMREOYUN commented 4 years ago

Closed #68