Raised This Month: $ Target: $400
 0% 

Command not working in CS2 skins plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mak1832
New Member
Join Date: Jul 2024
Old 07-03-2024 , 07:23   Command not working in CS2 skins plugin
Reply With Quote #1

Im using a plugin called CSSKin: https://github.com/Dyshay/CS2Skin?ta...ov-file#config and I think I've installed everything correct, but when I try to run a command, the console says this:

Jul 3 11:10:26: [39;49m[37m11:10:26[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
Jul 3 11:10:26: [39;49m[37mSystem.Reflection.TargetInvocationExceptio n: Exception has been thrown by the target of an invocation.[39;49m
Jul 3 11:10:26: [39;49m[37m ---> System.InvalidOperationException: Cannot Open when State is Open.[39;49m
Jul 3 11:10:26: [39;49m[37m at MySqlConnector.MySqlConnection.OpenAsync(Null able`1 ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlConnection.cs:line 392[39;49m
Jul 3 11:10:26: [39;49m[37m at MySqlConnector.MySqlConnection.Open() in /_/src/MySqlConnector/MySqlConnection.cs:line 381[39;49m
Jul 3 11:10:26: [39;49m[37m at CSSKin.Core.Services.WeaponServerMysqlReposit ory.Get(String uuid) in C:\Users\dyl_c\RiderProjects\CSSKin\CSSKin\Co re\Services\WeaponServerMysqlRepository.cs:li ne 47[39;49m
Jul 3 11:10:26: [39;49m[37m at CSSKin.CSSkin.OnCssSkinCommand(CCSPlayerContr oller player, CommandInfo commandInfo) in C:\Users\dyl_c\RiderProjects\CSSKin\CSSKin\CS Skin.cs:line 147[39;49m
Jul 3 11:10:26: [39;49m[37m at CounterStrikeSharp.API.Core.Commands.CommandM anager.HandleCommandInternal(Int32 playerSlot, IntPtr commandInfo) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Commands/CommandManager.cs:line 159[39;49m
Jul 3 11:10:26: [39;49m[37m at InvokeStub_Action`2.Invoke(Object, Span`1)[39;49m
Jul 3 11:10:26: [39;49m[37m at System.Reflection.MethodBaseInvoker.InvokeWit hFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)[39;49m
Jul 3 11:10:26: [39;49m[37m --- End of inner exception stack trace ---[39;49m
Jul 3 11:10:26: [39;49m[37m at System.Reflection.MethodBaseInvoker.InvokeWit hFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)[39;49m
Jul 3 11:10:26: [39;49m[37m at System.Delegate.DynamicInvokeImpl(Object[] args)[39;49m
Jul 3 11:10:26: [39;49m[37m at CounterStrikeSharp.API.Core.FunctionReference .<CreateWrappedCallback>b__18_0(fxScriptConte xt* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100[39;49m
Jul 3 11:10:45: [Tick 10533]['Mak' depth=11 (7246..7256) ping=18ms] CQ bloat: removed 6, max: 10, 1 ticks this frame

Also here is what the log says when I run the command:

2024-07-03 20:03:53.831 +00:00 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: Cannot Open when State is Open.
at MySqlConnector.MySqlConnection.OpenAsync(Null able`1 ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlConnection.cs:line 392
at MySqlConnector.MySqlConnection.Open() in /_/src/MySqlConnector/MySqlConnection.cs:line 381
at CSSKin.Core.Services.WeaponServerMysqlReposit ory.Get(String uuid) in C:\Users\dyl_c\RiderProjects\CSSKin\CSSKin\Co re\Services\WeaponServerMysqlRepository.cs:li ne 47
at CSSKin.CSSkin.OnCssSkinCommand(CCSPlayerContr oller player, CommandInfo commandInfo) in C:\Users\dyl_c\RiderProjects\CSSKin\CSSKin\CS Skin.cs:line 147
at CounterStrikeSharp.API.Core.Commands.CommandM anager.HandleCommandInternal(Int32 playerSlot, IntPtr commandInfo) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Commands/CommandManager.cs:line 159
at InvokeStub_Action`2.Invoke(Object, Span`1)
at System.Reflection.MethodBaseInvoker.InvokeWit hFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
--- End of inner exception stack trace ---
at System.Reflection.MethodBaseInvoker.InvokeWit hFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference .<CreateWrappedCallback>b__18_0(fxScriptConte xt* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100

Last edited by mak1832; 07-03-2024 at 16:17.
mak1832 is offline
tschumann
Junior Member
Join Date: Jun 2017
Location: Australia
Old 07-26-2024 , 21:44   Re: Command not working in CS2 skins plugin
Reply With Quote #2

Probably a question for the author of CS2Skin as it looks like a bug (maybe a race condition?) in connecting to the database.
tschumann is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode