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

Error in signatures #605

Closed
danikfml opened this issue Oct 5, 2024 · 0 comments
Closed

Error in signatures #605

danikfml opened this issue Oct 5, 2024 · 0 comments
Labels
untriaged New issue has not been triaged

Comments

@danikfml
Copy link

danikfml commented Oct 5, 2024

What could be the problem? There is this method in the gamedata file itself. So in half of all plugins

2024-10-05 10:45:05.269 +03:00 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.TypeInitializationException: The type initializer for 'CounterStrikeSharp.API.Modules.Memory.VirtualFunctions' threw an exception.
---> System.ArgumentException: Method ClientPrint not found in gamedata.json
at CounterStrikeSharp.API.Core.GameData.GetSignature(String key) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GameData.cs:line 94
at CounterStrikeSharp.API.Modules.Memory.VirtualFunctions..cctor() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Modules/Memory/VirtualFunctions.cs:line 13
--- End of inner exception stack trace ---
at CounterStrikeSharp.API.Core.CCSPlayerController.PrintToCenter(String message) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Model/CCSPlayerController.cs:line 59
at TabTimeleft.TabTimeleft.b__15_0() in /home/iks/RiderProjects/TabTimeleft/TabTimeleft/TabTimeleft.cs:line 58
at InvokeStub_OnTick.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 CounterStrikeSharp.API.Core.BasePlugin.<>c__DisplayClass51_01.<RegisterListener>b__2(ScriptContext context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 298 at InvokeStub_Action1.Invoke(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.b__18_0(fxScriptContext* context)

изображение_2024-10-05_125421580

@github-actions github-actions bot added the untriaged New issue has not been triaged label Oct 5, 2024
@danikfml danikfml closed this as completed Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

1 participant