Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.41k stars 377 forks source link

Server Crashes Upon Startup - (Problem persists in pre 4) #1772

Closed PolarNinja23 closed 4 years ago

PolarNinja23 commented 4 years ago

Reproduction steps (if applicable): All I had done was just start the server up.

Any stack traces or error messages (if known)?:


System.MissingFieldException: Field 'Terraria.Netplay.SpamCheck' not found.

at TerrariaApi.Server.ServerApi.Initialize (System.String[] commandLineArgs, Terraria.Main game) [0x0008a] in <dba7acc1d7d64878b6dd513ec7fd4459>:0

at TerrariaApi.Server.HookManager.InitialiseAPI () [0x0004e] in <dba7acc1d7d64878b6dd513ec7fd4459>:0

playing

Server crash: 5/18/2020 2:02:16 PM

System.TypeLoadException: Could not resolve type with token 0100005e

at OTAPI.Callbacks.Terraria.Npc.SetDefaultsByIdBegin (Terraria.NPC npc, System.Int32& type, System.Single& scaleOverride) [0x00012] in <b4e241b9661d4116aa0e14001e189f09>:0

at Terraria.NPC.SetDefaults (System.Int32 Type, System.Single scaleOverride) [0x00000] in <b4e241b9661d4116aa0e14001e189f09>:0

at Terraria.Main.InitLifeBytes () [0x0000e] in <b4e241b9661d4116aa0e14001e189f09>:0

at Terraria.Main.InitializeDirect () [0x061bd] in <b4e241b9661d4116aa0e14001e189f09>:0

at Terraria.Main.Initialize () [0x00006] in <b4e241b9661d4116aa0e14001e189f09>:0

at Terraria.Main.DedServ () [0x0007b] in <b4e241b9661d4116aa0e14001e189f09>:0

at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x00092] in <b4e241b9661d4116aa0e14001e189f09>:0

What plugins and what versions of those plugins are you running?: Only tShock and what came with the build - nothing else.

Title really says it all with the issue. I tried starting up the server only to be met with the message above. Unsure if this is because of tShock or not.

XGhozt commented 4 years ago

Please read the release post. Here's the snippet you missed:

Important: You need to move TShockAPI.dll into the ServerPlugins folder. If you don't have one, run TerrariaServer.exe once, and then copy the file into the newly created folder. You know that you're running TShock as expected if you see the list of names in the startup sequence.

PolarNinja23 commented 4 years ago

Please read the release post. Here's the snippet you missed:

Important: You need to move TShockAPI.dll into the ServerPlugins folder. If you don't have one, run TerrariaServer.exe once, and then copy the file into the newly created folder. You know that you're running TShock as expected if you see the list of names in the startup sequence.

I forgot to mention in my original post that I had actually moved the TShockAPI.dll into the ServerPlugins folder before writing this and kept getting said error. Sorry I didn't specify that originally.

PolarNinja23 commented 4 years ago

The problem is still occurring in the latest pre-release. It's still the same error message- and I know for certain that the TShockAPI.dll is in the ServerPlugins folder.

PolarNinja23 commented 4 years ago

Closing this issue due to receiving a solution via the discord.