xNarnia / TCR-TerrariaChatRelay

Self-serving Terraria Chat Relay with extensible chat service support
https://forums.terraria.org/index.php?threads/tcr-terrariachatrelay.78196/
MIT License
32 stars 16 forks source link

Discord Messages not showing ingame. /reload failing #31

Closed MixInSpace closed 1 year ago

MixInSpace commented 2 years ago

Both discord messages and commands sending is not recognized by bot.

/reload causing: 2022-07-16 18:20:36 - Command: ERROR: System.NullReferenceException: Object reference not set to an instance of an object at TCRDiscord.ChatClient.Disconnect () [0x00094] in <ba4deb3ba3394297ac87ef9b950be9f1>:0 at TerrariaChatRelay.Core.DisconnectClients () [0x00015] in <981d6721d62142f0899654e539f74606>:0 at TCRTShock.TerrariaChatRelayTShock.OnReload (TShockAPI.Hooks.ReloadEventArgs reloadEventArgs) [0x00000] in <41899c9b461945a1b858537ebb069e7b>:0 at (wrapper delegate-invoke) <Module>.invoke_void_ReloadEventArgs(TShockAPI.Hooks.ReloadEventArgs) at TShockAPI.Hooks.GeneralHooks.OnReloadEvent (TShockAPI.TSPlayer ply) [0x00013] in <b72d7b60795546b989dda432ca3fad3e>:0 at TShockAPI.Commands.Reload (TShockAPI.CommandArgs args) [0x00010] in <b72d7b60795546b989dda432ca3fad3e>:0 at TShockAPI.Command.Run (System.String msg, System.Boolean silent, TShockAPI.TSPlayer ply, System.Collections.Generic.List1[T] parms) [0x0001c] in :0 `

/exit causing fatal error after /reload: [ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object reference not set to an instance of an object at TerrariaApi.Server.LogWriterManager.get_LogWriterName () [0x00006] in <e0cdc4c812ba49f4b668a63a519c706e>:0 at TerrariaApi.Server.LogWriterManager.ServerWriteLine (System.String message, System.Diagnostics.TraceLevel kind) [0x00016] in <e0cdc4c812ba49f4b668a63a519c706e>:0 at TerrariaApi.Server.HandlerCollection1[ArgsType].Invoke (ArgsType args) [0x000b9] in :0 at TerrariaApi.Server.HookManager.InvokeServerLeave (System.Int32 who) [0x00013] in :0 at TerrariaApi.Server.Hooking.ServerHooks.OnPreReset (Terraria.RemoteClient remoteClient) [0x0000f] in :0 at OTAPI.Callbacks.Terraria.RemoteClient.PreReset (Terraria.RemoteClient remoteClient) [0x00012] in <73ea76c09c3448288ab9a2ad67c342aa>:0 at Terraria.RemoteClient.Reset () [0x00000] in <73ea76c09c3448288ab9a2ad67c342aa>:0 at Terraria.Netplay.UpdateConnectedClients () [0x00028] in <73ea76c09c3448288ab9a2ad67c342aa>:0 at Terraria.Netplay.ServerLoop () [0x0000e] in <73ea76c09c3448288ab9a2ad67c342aa>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in <282c4228012f4f3d96bdf0f2b2dea837>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <282c4228012f4f3d96bdf0f2b2dea837>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <282c4228012f4f3d96bdf0f2b2dea837>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in <282c4228012f4f3d96bdf0f2b2dea837>:0 at System.Threading.ThreadHelper.ThreadStart () [0x00008] in <282c4228012f4f3d96bdf0f2b2dea837>:0 `

xNarnia commented 1 year ago

Fixed with 1.4.5 to be released soon