Klayeryt / Welcome

CS2 Plugin C#
30 stars 3 forks source link

New Error #6

Open juandrep opened 7 months ago

juandrep commented 7 months ago

I'm getting this error:

11:50:01 [EROR] (cssharp:Core) Error invoking callback System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.  ---> System.InvalidOperationException: Entity is not valid  at CounterStrikeSharp.API.Guard.IsValidEntity(CEntityInstance ent) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Guard.cs:line 8  at CounterStrikeSharp.API.Core.CCSPlayerController.PrintToChat(String message) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Model/CCSPlayerController.cs:line 51  at Main.Main.<>cDisplayClass12_0.b__0() in D:\cs2server\steamapps\common\Counter-Strike Global Offensive\game\csgo\addons\counterstrikesharp\source\Welcome\Main.cs:line 82  at InvokeStub_Action.Invoke(Object, Object, IntPtr*)  at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)  --- End of inner exception stack trace ---  at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)  at System.Delegate.DynamicInvokeImpl(Object[] args)  at CounterStrikeSharp.API.Core.FunctionReference.b18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100

Klayeryt commented 7 months ago

Can I take a screenshot in more detail, as well as the plugin config?

Klayeryt commented 7 months ago

I forgot to say, try to see in the config if you made a mistake with the variables, you can see the list of variables to use in Readme.md Also look at the cssharp version, if the version is lower than 142, it will not work because the IPAddress property appeared somewhere from the 140th version

If none of these points is an error, then try to compile the plugin yourself for your version of cssharp I also ask you to pay attention - the assembled ready-made version on github is marked Windows, which means it only works on Windows OS

Klayeryt commented 7 months ago

Compiled for new versions (Windows) watch in releases!