brayden-dowson / Deathmatch

Deathmatch game mode using Northwood Plugin API
9 stars 3 forks source link

Plugin Error #14

Closed FXDYJ closed 2 months ago

FXDYJ commented 3 months ago

On Read:

[2024-06-12 19:35:28.578 +08:00] [Error] [PluginAPI] Failed loading plugin Deathmatch,
                                 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
                                   at TheRiptide.Deathmatch.Start () [0x000ed] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Deathmatch.EntryPoint () [0x0000e] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <75633565436c42f0a6426b33f0132ade>:0
                                    --- End of inner exception stack trace ---
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <75633565436c42f0a6426b33f0132ade>:0
                                   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <75633565436c42f0a6426b33f0132ade>:0
                                   at PluginAPI.Core.PluginHandler.Load () [0x0002b] in <20cb197b905e4ac59c25edf6bca5f96b>:0

On Player Join:

[2024-06-12 19:35:59.256 +08:00] [Error] [PluginAPI] Failed executing event OnPlayerJoined (PlayerJoined) in plugin TheRiptide.Deathmatch
                                 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
                                   at TheRiptide.Killstreaks.OnPlayerJoined (PluginAPI.Core.Player player) [0x00022] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <75633565436c42f0a6426b33f0132ade>:0
                                    --- End of inner exception stack trace ---
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <75633565436c42f0a6426b33f0132ade>:0
                                   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <75633565436c42f0a6426b33f0132ade>:0
                                   at PluginAPI.Events.EventManager.ExecuteEvent[T] (PluginAPI.Events.IEventArguments args) [0x0012b] in <20cb197b905e4ac59c25edf6bca5f96b>:0
[2024-06-12 19:35:59.269 +08:00] [Error] [PluginAPI] Failed executing event OnPlayerJoined (PlayerJoined) in plugin TheRiptide.Deathmatch
                                 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Sequence contains no elements
                                   at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00010] in <1c318258bf0843289b0e2cbe692fee39>:0
                                   at TheRiptide.Lobby.OnPlayerJoined (PluginAPI.Core.Player player) [0x0005d] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <75633565436c42f0a6426b33f0132ade>:0
                                    --- End of inner exception stack trace ---
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <75633565436c42f0a6426b33f0132ade>:0
                                   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <75633565436c42f0a6426b33f0132ade>:0
                                   at PluginAPI.Events.EventManager.ExecuteEvent[T] (PluginAPI.Events.IEventArguments args) [0x0012b] in <20cb197b905e4ac59c25edf6bca5f96b>:0
[2024-06-12 19:35:59.284 +08:00] [Error] [Deathmatch] Database error: System.Collections.Generic.KeyNotFoundException: The given key '2' was not present in the dictionary.
                                   at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <75633565436c42f0a6426b33f0132ade>:0
                                   at TheRiptide.Killstreaks.GetKillstreak (PluginAPI.Core.Player player) [0x0000b] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Database+<>c__DisplayClass23_0.<LoadConfig>b__0 () [0x00034] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Database+<>c__DisplayClass40_0.<DbDelayedAsync>b__1 () [0x00016] in <8b57b084ba574834a17ca3c233fedecb>:0
[2024-06-12 19:35:59.451 +08:00] [Error] [Deathmatch] database experience error: System.NullReferenceException: Object reference not set to an instance of an object
                                   at TheRiptide.Experiences.ApplyLevelUps (TheRiptide.Experiences+XP xp) [0x00006] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Experiences.XpLoaded (PluginAPI.Core.Player player) [0x00012] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Database+<>c__DisplayClass32_1.<LoadExperience>b__2 () [0x00065] in <8b57b084ba574834a17ca3c233fedecb>:0
[2024-06-12 19:35:59.463 +08:00] [Error] [Deathmatch] database rank error: System.NullReferenceException: Object reference not set to an instance of an object
                                   at TheRiptide.Ranks.GetInfo (TheRiptide.Database+Rank rank) [0x00005] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Ranks.SetBadge (PluginAPI.Core.Player player, TheRiptide.Database+Rank rank) [0x00000] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Ranks.RankLoaded (PluginAPI.Core.Player player) [0x0006e] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Database+<>c__DisplayClass30_1.<LoadRank>b__2 () [0x00094] in <8b57b084ba574834a17ca3c233fedecb>:0

And other

[2024-06-12 19:35:39.427 +08:00] [Error] [PluginAPI] Failed executing event OnMapGenerated (MapGenerated) in plugin TheRiptide.Deathmatch
                                 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
                                   at TheRiptide.Lobby.MapGenerated () [0x00000] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Deathmatch.OnMapGenerated () [0x0000a] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <75633565436c42f0a6426b33f0132ade>:0
                                    --- End of inner exception stack trace ---
                                   at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00083] in <75633565436c42f0a6426b33f0132ade>:0
                                   at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <75633565436c42f0a6426b33f0132ade>:0
                                   at PluginAPI.Events.EventManager.ExecuteEvent[T] (PluginAPI.Events.IEventArguments args) [0x0012b] in <20cb197b905e4ac59c25edf6bca5f96b>:0
[2024-06-12 19:36:57.464 +08:00] [Error] [Deathmatch] Database error: System.NullReferenceException: Object reference not set to an instance of an object
                                   at TheRiptide.Database+<>c__DisplayClass35_0.<UpdateLeaderBoard>b__0 () [0x00005] in <8b57b084ba574834a17ca3c233fedecb>:0
                                   at TheRiptide.Database+<>c__DisplayClass39_0.<DbAsync>b__0 () [0x00016] in <8b57b084ba574834a17ca3c233fedecb>:0
brayden-dowson commented 3 months ago

Looks like the configs were null, can you check Deathmatch folder to see if they generated, if they are empty can you send the very first error you receive when you restart the server