Kr4ken-9 / NewEssentials

The Essential plugin for Unturned, built on OpenMod
GNU General Public License v3.0
15 stars 13 forks source link

Some bugs caused in the console + logs #96

Open MihailHavenT opened 3 years ago

MihailHavenT commented 3 years ago

1.

[2021-04-22 16:00:03 ERR][SDG.Unturned] An item with the same key has already been added. Key: 76561199162034626
[2021-04-22 16:00:03 ERR][SDG.Unturned]   at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at NewEssentials.Players.TeleportRequestManager.AddPlayer (SDG.Unturned.SteamPlayer newPlayer) [0x0001b] in <2abb77788607479682f08a5ba9064aeb>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_SteamPlayer(SDG.Unturned.SteamPlayer)
  at SDG.Unturned.Provider.broadcastEnemyConnected (SDG.Unturned.SteamPlayer player) [0x00009] in <399fcb22e8594d8884ef7daa1d3d3e8e>:0

2.

[2021-04-11 12:36:51 INF][RocketMod] SteamGroupLimiter >> DEBUG: limonsayk leaving, SteamGroup: 103582791469710409 Count: 5/5
[2021-04-11 12:36:51 ERR][OpenMod.Core.Eventing.EventBus] Exception occured during event UnturnedUserConnected
System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Component.get_transform(UnityEngine.Component)
  at NewEssentials.Players.AfkChecker+<OnPlayerJoin>d__10.MoveNext () [0x00121] in <2abb77788607479682f08a5ba9064aeb>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at OpenMod.Core.Eventing.EventBus+<EmitAsync>d__13.MoveNext () [0x00394] in <f7b9aead6a784dc99206028f55c819eb>:0 
MihailHavenT commented 3 years ago

System.TypeLoadException: Could not resolve type with token 010000aa (from typeref, class/assembly UnityEngine.TransformExtension, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null)
  at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine] (TStateMachine& stateMachine) [0x0002c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at NewEssentials.Players.AfkChecker.OnPlayerJoin (System.IServiceProvider serviceProvider, System.Object sender, OpenMod.Unturned.Users.Events.UnturnedUserConnectedEvent event) [0x0001c] in <380623d1227f441c97d49cefd3af117a>:0 
  at OpenMod.Core.Eventing.EventBus+<>c__DisplayClass6_0`1[TEvent].<Subscribe>b__0 (System.IServiceProvider serviceProvider, System.Object sender, OpenMod.API.Eventing.IEvent event) [0x00000] in <012f99579d3e413e90879706f607317a>:0 
  at OpenMod.Core.Eventing.EventBus+<EmitAsync>d__13.MoveNext () [0x00311] in <012f99579d3e413e90879706f607317a>:0```
MihailHavenT commented 3 years ago
[2021-08-18 20:57:42 ERR][OpenMod.Core.Commands.CommandExecutor] Exception occured on command "home" by actor player/CloudBlock19 (76561199178070344)
System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.Transform.get_position_Injected(UnityEngine.Transform,UnityEngine.Vector3&)
  at UnityEngine.Transform.get_position () [0x00000] in <35c5d27459674015b242994b0c11156b>:0 
  at OpenMod.UnityEngine.Transforms.UnityTransform.get_Position () [0x0000e] in <5f3feafb6232426ebd27d12809c9f891>:0 
  at NewEssentials.Players.TeleportService+<TeleportAsync>d__2.MoveNext () [0x0013a] in <114d4403c5644b089d8d6ae19d67b974>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at NewEssentials.Commands.Home.CHome+<OnExecuteAsync>d__6.MoveNext () [0x00354] in <114d4403c5644b089d8d6ae19d67b974>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at Cysharp.Threading.Tasks.CompilerServices.AsyncUniTask`1[TStateMachine].GetResult (System.Int16 token) [0x00000] in <b570aeb885074593be3f1a2137ad3fbd>:0 
  at Cysharp.Threading.Tasks.UniTaskExtensions+<>c.<AsTask>b__35_0 (System.Object state) [0x00016] in <b570aeb885074593be3f1a2137ad3fbd>:0 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at OpenMod.Core.Commands.CommandExecutor+<ExecuteAsync>d__7.MoveNext () [0x00396] in <ce9c6583778c41c796de539ccab83bf7>:0 
MihailHavenT commented 3 years ago
[2021-08-09 22:35:51 ERR][SDG.Unturned] An item with the same key has already been added. Key: 76561199123510239
[2021-08-09 22:35:51 ERR][SDG.Unturned]   at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at NewEssentials.Players.TeleportRequestManager.AddPlayer (SDG.Unturned.SteamPlayer newPlayer) [0x0001b] in <114d4403c5644b089d8d6ae19d67b974>:0 
  at (wrapper delegate-invoke) <Module>.invoke_void_SteamPlayer(SDG.Unturned.SteamPlayer)
  at SDG.Unturned.Provider.broadcastEnemyConnected (SDG.Unturned.SteamPlayer player) [0x00009] in <46c02ba799bc45339b988c80e129c3b1>:0 
Kr4ken-9 commented 3 years ago

I have tried to fix these errors in 1.4.13. Let me know if it works, I don't have the time to test it myself.

MihailHavenT commented 3 years ago

Okay sir

Kr4ken-9 commented 3 years ago

Do these issues appear to be resolved?

MihailHavenT commented 2 years ago

solved

MihailHavenT commented 2 years ago

20211009185311_1 20211009185332_1

MihailHavenT commented 2 years ago

Some new suggestions and fixes for the NewEssentials plugin: