Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Error #6

Open
juandrep opened this issue Apr 5, 2024 · 3 comments
Open

New Error #6

juandrep opened this issue Apr 5, 2024 · 3 comments
Labels
help wanted Extra attention is needed

Comments

@juandrep
Copy link

juandrep commented Apr 5, 2024

I'm getting this error:

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

@Klayeryt
Copy link
Owner

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

@Klayeryt
Copy link
Owner

Klayeryt commented Apr 20, 2024

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 Klayeryt added the help wanted Extra attention is needed label Apr 20, 2024
@Klayeryt
Copy link
Owner

Compiled for new versions (Windows) watch in releases!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants