T
tModLoader7mo ago
rival-black

Sometimes cannot load Modded Server. Please help explain what these two error can relate to.

(NOTE: Message is split into two parts, Dicord Nitro needed otherwise, sorry.) From server.log
[.NET TP Worker/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Nullable`1.get_HasValue()
at DMD<DMD<>?6018070::Terraria.NPC::SetDefaults>(NPC this, Int32 Type, NPCSpawnParams spawnparams)
at SyncProxy<System.Void Terraria.NPC:SetDefaults(System.Int32, Terraria.NPCSpawnParams)>(NPC , Int32 , NPCSpawnParams )
at Terraria.NPC.SetDefaults(Int32 Type, NPCSpawnParams spawnparams)
at Terraria.IO.WorldFile.LoadNPCs(BinaryReader reader) in tModLoader\Terraria\IO\WorldFile.cs:line 2362
at Terraria.IO.WorldFile.LoadWorld_Version2(BinaryReader reader) in tModLoader\Terraria\IO\WorldFile.cs:line 1486
at Terraria.IO.WorldFile.LoadWorld(Boolean loadFromCloud) in tModLoader\Terraria\IO\WorldFile.cs:line 492
at Terraria.WorldGen.serverLoadWorldCallBack() in tModLoader\Terraria\WorldGen.cs:line 2846
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
[.NET TP Worker/WARN] [tML]: Silently Caught Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Nullable`1.get_HasValue()
at DMD<DMD<>?6018070::Terraria.NPC::SetDefaults>(NPC this, Int32 Type, NPCSpawnParams spawnparams)
at SyncProxy<System.Void Terraria.NPC:SetDefaults(System.Int32, Terraria.NPCSpawnParams)>(NPC , Int32 , NPCSpawnParams )
at Terraria.NPC.SetDefaults(Int32 Type, NPCSpawnParams spawnparams)
at Terraria.IO.WorldFile.LoadNPCs(BinaryReader reader) in tModLoader\Terraria\IO\WorldFile.cs:line 2362
at Terraria.IO.WorldFile.LoadWorld_Version2(BinaryReader reader) in tModLoader\Terraria\IO\WorldFile.cs:line 1486
at Terraria.IO.WorldFile.LoadWorld(Boolean loadFromCloud) in tModLoader\Terraria\IO\WorldFile.cs:line 492
at Terraria.WorldGen.serverLoadWorldCallBack() in tModLoader\Terraria\WorldGen.cs:line 2846
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
9 Replies
rival-black
rival-blackOP7mo ago
From client.log
[TCP Client Thread/WARN] [tML]: Silently Caught Exception:
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:7777
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at Terraria.Net.Sockets.TcpSocket.Terraria.Net.Sockets.ISocket.Connect(RemoteAddress address) in tModLoader\Terraria\Net\Sockets\TcpSocket.cs:line 61
at Terraria.Netplay.TcpClientLoop() in tModLoader\Terraria\Netplay.cs:line 406
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
[TCP Client Thread/WARN] [tML]: Silently Caught Exception:
System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it. [::ffff:127.0.0.1]:7777
at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)
at Terraria.Net.Sockets.TcpSocket.Terraria.Net.Sockets.ISocket.Connect(RemoteAddress address) in tModLoader\Terraria\Net\Sockets\TcpSocket.cs:line 61
at Terraria.Netplay.TcpClientLoop() in tModLoader\Terraria\Netplay.cs:line 406
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
Basically, for some reason, these are the two errors that pop up in those two log files, and I am stuck at "Starting Server". Sometimes this issue doesn't occur, sometimes it does, and so far, the best best is that something on my actual PC is being wonky when it comes to freeing the 7777 port when closing down a "Host & Play" server, but I haven't been able to identify anything with Resource Monitor. Honestly, if anyone can just step me through some analysis methods to help narrow down what could be causing this, I'd greatly appreciate it. Sincerely, Green Note: Attaching all log files, just so that they're there if needed, plus you can see the mod list. I am going to be running through the Microsoft Answers link in the TML Troubleshooting Guide as well real fast to see if that can help. Edit: The Microsoft Answers didn't seem to help. I'm getting a modem and router hopefully in the next few days, just in case the issue is actually from one of those. So, the client.log issue seems to be the minor issue that actually might just happen to most people but doesn't directly impede server connecting. The server.log error seems to be the bigger issue and going through the entire modlist has so far led me to the fact that somehow Secrets of the Shadows, Magic Storage, and Thorium have corrupted my world. Something else is being wonky, but I have not figured this out yet. For readability's sake, adding the latest 11 mod versions of the client.log and server.log here.
rival-black
rival-blackOP7mo ago
rival-black
rival-blackOP7mo ago
Chracter Files (The following two need to be in a folder called "Green2". I couldn't add the folder.)
rival-black
rival-blackOP7mo ago
---
rival-black
rival-blackOP7mo ago
Final Results -Disabling any of the following allows the world to load:
Magic Storage
Calamity Infernum
Secrets of the Shadows
Thorium
tPackBuilder
Magic Storage
Calamity Infernum
Secrets of the Shadows
Thorium
tPackBuilder
-Disabling SotS seems to cause a Blood Moon to not occur the upcoming night. This might have no impact, it's just weird. -The above note also seems to occur for Thorium. I have no idea how Blood Moons are called, that might have all just been happenstance. -I can understand Magic Storage/SotS/Thorium having an interaction, if it's an item causing all this mess, but I have no idea why either Calamity Infernum or tPackBuilder being removed fixes things. Does Calamity Infernum add any items or is it just AI changes? Final Test Disabled: Calamity WotG, tPackBuilder, IEoR. Enabled: Everything Else Result: Loads It's tPackBuilder. WHY?
xenial-black
xenial-black7mo ago
The music mod adds slme headphones thats all i know of Talking abt infernum btw
rival-black
rival-blackOP7mo ago
As an update, the issue has been resolved by the tPackBuilder developer as for the latest two versions on Steam. Feel free to close this thread, if I can't figure it out myself first.

Did you find this page helpful?