Code Monkey home page Code Monkey logo

k4-system's People

Contributors

abdulbakiaydogan avatar crashzk avatar criskkky avatar cruze03 avatar k4ryuu avatar naathysz avatar onurcanertekin avatar pandathebeasty avatar rcon420 avatar rige08 avatar sandy-garrido avatar stefanx111 avatar stryxthedev avatar tianxsky avatar weeestar avatar whaliin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

k4-system's Issues

server crash when using !ranktop or !top5 etc

--- End of stack trace from previous location ---
at Nexd.MySQL.MySqlDb.CreateContextAsync[T](Func2 asyncContext) at Nexd.MySQL.MySqlDb.ExecuteQueryInternalAsync(String query) at Nexd.MySQL.MySqlDb.ExecuteQueryAsync(String statement) at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() �[39;49m�[39;49m�[40m�[39;49m�[36m�[40mMySqlConnector.MySqlException (0x80004005): Table 'gamersnest_ranks.k4ranks' doesn't exist at MySqlConnector.Core.ServerSession.ReceiveReplyAsyncAwaited(ValueTask1 task) in //src/MySqlConnector/Core/ServerSession.cs:line 966
at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /
/src/MySqlConnector/Core/ResultSet.cs:line 43
at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in //src/MySqlConnector/MySqlDataReader.cs:line 130
at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 468 at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /
/src/MySqlConnector/Core/CommandExecutor.cs:line 56
at MySqlConnector.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/MySqlCommand.cs:line 344
at Nexd.MySQL.MySqlDb.<>c__DisplayClass37_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Nexd.MySQL.MySqlDb.CreateContextAsync[T](Func2 asyncContext) at Nexd.MySQL.MySqlDb.ExecuteQueryInternalAsync(String query) at Nexd.MySQL.MySqlDb.ExecuteQueryAsync(String statement) at K4ryuuSystem.K4System.PrintTopXPlayers(CCSPlayerController player, Int32 number) in /Users/sples/Documents/GitHub/K4-System/src/Functions.cs:line 91 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() �[39;49mUnhandled exception. MySqlConnector.MySqlException (0x80004005): Table 'gamersnest_ranks.k4ranks' doesn't exist at MySqlConnector.Core.ServerSession.ReceiveReplyAsyncAwaited(ValueTask1 task) in /
/src/MySqlConnector/Core/ServerSession.cs:line 966
at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in //src/MySqlConnector/Core/ResultSet.cs:line 43
at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /
/src/MySqlConnector/MySqlDataReader.cs:line 130
at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 468 at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/CommandExecutor.cs:line 56
at MySqlConnector.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in /
/src/MySqlConnector/MySqlCommand.cs:line 344
at Nexd.MySQL.MySqlDb.<>c__DisplayClass37_0.<b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Nexd.MySQL.MySqlDb.CreateContextAsync[T](Func`2 asyncContext)
at Nexd.MySQL.MySqlDb.ExecuteQueryInternalAsync(String query)
at Nexd.MySQL.MySqlDb.ExecuteQueryAsync(String statement)
at K4ryuuSystem.K4System.PrintTopXPlayers(CCSPlayerController player, Int32 number) in /Users/sples/Documents/GitHub/K4-System/src/Functions.cs:line 91
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

[UPGRADE] Command Upgrades

  • Switch to AddCommand
  • Prevent command register if module disabled
  • Remove module check inside commands because of 2.

Reason: Better compatibility, less reference entries

[REQ] Ranks tag

Additional context
Adding tags for ranks, e.g. Global Elite is too long for scoreboard but GE is not.

	"Global Elite": {
		"Tag": "GE", // From this amount of experience, the player is Silver
		"Exp": 1680, // From this amount of experience, the player is Silver
		"Color": "Gold" // Color code for the rank. Find color names here: https://github.com/roflmuffin/CounterStrikeSharp/blob/main/managed/CounterStrikeSharp.API/Modules/Utils/ChatColors.cs
	},

[BUG] Collection of visual bugs

rank

I discovered the following bugs:

  1. at the maximum rank 21 / 21, the next rank is the 1 / 21 rank again
  2. if you enter !top10 and see the rankings, it doesn't recognize the color in [Godlike] but transfers it to silver 1, which actually has to be the color gray
  3. the ranks do not synchronize with the ranks in the tab. (I have synchronization stats on)
  4. when you say !time the "Alive" and "Dead" counter doesnt work right.

errors

K4-System v1.3.3
css v65

System.InvalidOperationException: Nullable object must have a value.
   at System.ThrowHelper.ThrowInvalidOperationException_InvalidOperation_NoValue()
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidOperationException: Nullable object must have a value.
   at K4ryuuSystem.K4System.<SetupGameEvents>b__18_17(EventPlayerDeath event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 571
   at InvokeStub_GameEventHandler`1.Invoke(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
20:13:36 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidOperationException: Nullable object must have a value.
   at K4ryuuSystem.K4System.<SetupGameEvents>b__18_17(EventPlayerDeath event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 571
   at InvokeStub_GameEventHandler`1.Invoke(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 82

I don't know why, but this sometimes appears in the console

[BUG] Stats not recording correctly

Describe the bug
The plugin is not tracking statistics properly, and not equally for everyone.
Some players it doesn't record anything, mostly it only tracks round wins/mvp.
On map change it can differ, and for one player it may track kills but not deaths or other stats etc.

This has been the case with the previous version and the newest version of the plugin, clean installs default config (except database ofc.)
Not sure what the cause is, but I figured I would post here to see if it was the same for more people than me.

To Reproduce
See above.

Expected behavior
I expected the stats to be tracked, kills, deaths and all the features.

Media (Optional)
Not the greatest example, but demonstrates what the issue is.

https://i.imgur.com/jEYEEMI.png

[REQ]!top ranks to appear same color as they are set in config

Hello! This might be a bug as well not sure, but I was wondering if it would be possible for the ranks that show up in the !top command to be colored the same way they are set in the ranks config? Currently they come up as lightblue(the point value shows lightblue as well) even if they are set to a different color in the ranks config and there doesn't appear to be a way to change it. The correct color shows when typing !rank but not !top.

[BUG] !rank command

This error appears only when I execute the !rank command.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MySqlConnector.MySqlException (0x80004005): Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,COERCIBLE) for operation '=' at MySqlConnector.Core.ResultSet.ReadResultSetHeaderAsync(IOBehavior ioBehavior) in /_/src/MySqlConnector/Core/ResultSet.cs:line 43 at MySqlConnector.MySqlDataReader.ActivateResultSet(CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 130 at MySqlConnector.MySqlDataReader.CreateAsync(CommandListPosition commandListPosition, ICommandPayloadCreator payloadCreator, IDictionary2 cachedProcedures, IMySqlCommand command, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlDataReader.cs:line 468
at MySqlConnector.Core.CommandExecutor.ExecuteReaderAsync(IReadOnlyList1 commands, ICommandPayloadCreator payloadCreator, CommandBehavior behavior, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/Core/CommandExecutor.cs:line 56 at MySqlConnector.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, IOBehavior ioBehavior, CancellationToken cancellationToken) in /_/src/MySqlConnector/MySqlCommand.cs:line 344 at MySqlConnector.MySqlCommand.ExecuteReader() in /_/src/MySqlConnector/MySqlCommand.cs:line 112 at Nexd.MySQL.MySqlDb.<>c__DisplayClass36_0.<ExecuteQueryInternal>b__0(MySqlConnection connection) at Nexd.MySQL.MySqlDb.CreateContext[T](Func2 context)
at K4ryuuSystem.K4System.GetPlayerPlaceAndCount(String playerName) in /Users/sples/Documents/GitHub/K4-System/src/Functions.cs:line 244
at K4ryuuSystem.K4System.OnCommandCheckRank(CCSPlayerController player, CommandInfo command) in /Users/sples/Documents/GitHub/K4-System/src/Commands.cs:line 62
at CounterStrikeSharp.API.Core.BasePlugin.<>c__DisplayClass31_0.b__0(Int32 i, IntPtr ptr) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 196
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81`

[BUG] Rank and Toplist shows different point values

Hello, I have 1 bug using the latest version of plugin and cssharp
As you see in the pic, !rank and !top shows different points for me (chickender)...It takes approx 1 min to show the same points on !top as !rank...
aaa

[BUG] With K4ryuuDamageInfo v1.3.3 server crash

I tried new release v1.3.3. New DB, CSSharp v65, Metamod:Source version 2.0.0-dev+1270.
It works and some error from console.

20:17:56 [EROR] (cssharp:Core) Error invoking callback
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.InvalidOperationException: Sequence contains no elements
   at System.Linq.ThrowHelper.ThrowNoElementsException()
   at K4ryuu.GameRules() in /Users/sples/Documents/GitHub/K4-System/src/K4ryuuHelpers.cs:line 16
   at K4ryuuSystem.K4System.IsPointsAllowed() in /Users/sples/Documents/GitHub/K4-System/src/Functions.cs:line 482
   at K4ryuuSystem.K4System.<SetupGameEvents>b__18_11(EventRoundStart event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 243
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 71

But when you have new release K4ryuuDamageInfo v1.3.3 server crash with Segmentation fault. K4ryuuDamageInfo v1.3.3 without [K4-System] works and server doesn't crash.

[BUG]!top ranks showing as incorrect color

283969373-c46f5388-3cf4-41d1-be90-4c0d5d2439b3

Picture attached. Rank colors have been properly set in config. When I type !rank, the rank shows the correct color, but when I type !top the ranks are shown as the wrong color.

[BUG]

Describe the bug
Hello,

I am running your latest K4-System with CSS Version API 50.

I have found a very weird bug, when planting the bomb on B site with atleast two players in the server connected, the server just crashes when the bomb is at 0 seconds to explode (I have tested it only on B site, but I think it's working also in any other site.)

To Reproduce
Steps to reproduce the behavior:

  1. Disable all meta plugins other than CSharp and K4-System
  2. Get two players in the server and plant the bomb (preferably) at B Site
  3. Wait for the bomb to reach 0 seconds of exploding and watch the server crash.

Expected behavior
The expected behavior is that the server shouldn't crash and just give the points for losing/detonating the bomb.

[UPGRADE] Logging

  • Add proper debug logging for the most function (just in case to use for debugging)
  • Add Error, Warning and Info level messages
  • Add log if database not OR not properly configured in config (EXCEPTION probably)

[UPGRADE] Modular File Separation

ToDo:

  • Separate classes and files as modules instead of the current schema

This is going to help the readability if K4 having added much more modules

[BUG]

Hello, installed the latest cssharp and k4system, and the server is crashing when someone type in chat !rank or !top

[REQ] Opt In for the print every round

Could we get an option in the config where we can change the print for players upon gaining points?
Would be great to have these options:

  • Disable point print
  • Only print points changed at round end
  • Only print points changed at map end
  • Print points changed immediately

[REQ] Ranks In Chat

Describe the solution you'd like
Like the scoreboard ranks it would be a good feature to have the ranks in chat when a players types a msg to be showen his rank beside his name for example: [Global Elite] K4ryuu: test123 , it would be a good feature and the rank to be colored like the color codes set at the config file

[REQ] Body hits

Hi,

will by greath if you could add body hits from your's [CS2_DamageInfo] to statistics. Player could see own % aiming to players. For future web stats too.

public string HitGroupToString(int hitGroup)
		{
			return hitGroup switch
			{
				0 => "Body", 
				1 => "Head", <- THIS
				2 => "Chest", <- THIS
				3 => "Stomach", <- THIS
				4 => "Left Arm", <- THIS
				5 => "Right Arm", <- THIS
				6 => "Left Leg", <- THIS
				7 => "Right Leg", <- THIS
				10 => "Gear", <- THIS
				_ => "Unknown"
			};
		}

[BUG]!top still not correctly showing colors

Hello, picture attached. When I type !top, the ranks are displayed like this. They still are not showing as the correct colors.
This is with latest release(K4-System v1.3.2) as well as CSS v62

image

!rank

hi,

it's me again :D

!rank command doe not do anything, is it because of cs2fixes installed? i had your old version K4ryuuSimpleRanks before and !rank trigger was working with current cs2fixes.

edit: all triggers are working except !rank

edit 2: cssharp colors are wrong. LightBlue = Lila

[BUG] Error log to check

I get this error log on both v50 and v52

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Collections.Generic.KeyNotFoundException: The given key '1' was not present in the dictionary.
at K4ryuuSystem.K4System.b__18_12(EventRoundEnd event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 162
at InvokeStub_GameEventHandler`1.Invoke(Object, Object, IntPtr*)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81

I don't know if this was reported allready

[BUG] no points when winning round and losing round

"K4-System" (v1.2.0) by K4ryuu
counterstrikesharp-build-50-linux-414710d

console error

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 ---> System.Collections.Generic.KeyNotFoundException: The given key '5' was not present in the dictionary.
   at K4ryuuSystem.K4System.<SetupGameEvents>b__18_17(EventPlayerDeath event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 254
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   --- End of inner exception stack trace ---
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81

Huge lag [BUG]

Whenever I put this on my server, when someone connects there is a lag spike. When someone leaves there is a lag spike.
I don't know what exactly is happening, like maybe mysql server is laggy and plugin is waiting for the update.
This should be fixable if this is the cause.

Steps to reproduce the behavior:

  1. Upload to my server restart, configure, restart
  2. players join, server lags
  3. remove plugin server doesnt lag.

Expected behavior
Players join/leave, no lag.

[UPGRADE] Event Upgrades

  • Separated register for events by module
  • Prevent event register if module disabled
  • Remove module checks inside events because of 2.

Reason: Less reference, less trigger and validation for no reason

I need information

How to connect this plugin with mine phpadmin becouse im using host at my host in config files when i start server json with connection string arent created so how to connect this plugin with mine host database ?

[BUG]

when I die I don't lose any points yet everything else is taken into account (I changed the number of points to 6)

[BUG] top list

Describe the bug
The colors are not displayed on top list, only the names of the colors. Have you seen the image on Discord.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '/top /top5 /top10 !top !top5 !top10'

[BUG] Round start immediate crash (Retake)

Describe the bug
is described below, as soon as I unload your system, everything works again without problems....have tested it 3x as a precaution (Version 1.3.1 last stable)

To Reproduce
Warmup disappears after 3 seconds, then the real game begins and the bomb plan is executed, followed immediately by a crash

Logs (Optional)
was logged with: https://github.com/komashchenko/AcceleratorLocal
Crash Dumb File: 275b1e3d-6837-4a4e-ea1c05bb-f6900558.dmp.txt

and thanks for your work, it's amazing what is now possible after a few months :)

[BUG] There is no connection to the database

Error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MySqlConnector.MySqlException (0x80004005): Authentication method 'caching_sha2_password' failed. Either use a secure connection, specify the server's RSA public key with ServerRSAPublicKeyFile, or set AllowPublicKeyRetrieval=True. at MySqlConnector.Core.ServerSession.GetRsaPublicKeyAsync(String switchRequestName, ConnectionSettings cs, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ServerSession.cs:line 869 at MySqlConnector.Core.ServerSession.SwitchAuthenticationAsync(ConnectionSettings cs, String password, PayloadData payload, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ServerSession.cs:line 750 at MySqlConnector.Core.ServerSession.ConnectAsync(ConnectionSettings cs, MySqlConnection connection, Int32 startTickCount, ILoadBalancer loadBalancer, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ServerSession.cs:line 575 at MySqlConnector.Core.ConnectionPool.ConnectSessionAsync(MySqlConnection connection, String logMessage, Int32 startTickCount, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 410 at MySqlConnector.Core.ConnectionPool.ConnectSessionAsync(MySqlConnection connection, String logMessage, Int32 startTickCount, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 415 at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, Int32 startTickCount, Int32 timeoutMilliseconds, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 105 at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, Int32 startTickCount, Int32 timeoutMilliseconds, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 135 at MySqlConnector.MySqlConnection.CreateSessionAsync(ConnectionPool pool, Int32 startTickCount, Activity activity, Nullable 1 ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/MySqlConnection.cs:line 929 at MySqlConnector.MySqlConnection.OpenAsync(Nullable 1 ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/MySqlConnection.cs:line 423 at MySqlConnector.MySqlConnection.Open() in //src/MySqlConnector/MySqlConnection.cs:line 382 at Nexd.MySQL.MySqlDb.CreateContext[T](Func 2 context) at Nexd.MySQL.MySqlDb.InsertIfNotExist(MySqlQueryValue data, String onDuplicateKey) at K4ryuuSystem.K4System.LoadPlayerData(CCSPlayerController player) in /Users/sples/Documents/GitHub/K4-System/src/Functions.cs:line 135 at K4ryuuSystem.K4System.b__18_13(EventPlayerSpawn event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 350 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81SV: Sending full update to client -r8 (reason: initial update) -r8 188.235.32.188:22256[1]: NetChan Setting Timeout to 20.00 secondsSystem.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> MySqlConnector.MySqlException (0x80004005): Authentication method 'caching_sha2_password' failed. Either use a secure connection, specify the server's RSA public key with ServerRSAPublicKeyFile, or set AllowPublicKeyRetrieval=True. at MySqlConnector.Core.ServerSession.GetRsaPublicKeyAsync(String switchRequestName, ConnectionSettings cs, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ServerSession.cs:line 869 at MySqlConnector.Core.ServerSession.SwitchAuthenticationAsync(ConnectionSettings cs, String password, PayloadData payload, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ServerSession.cs:line 750 at MySqlConnector.Core.ServerSession.ConnectAsync(ConnectionSettings cs, MySqlConnection connection, Int32 startTickCount, ILoadBalancer loadBalancer, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ServerSession.cs:line 575 at MySqlConnector.Core.ConnectionPool.ConnectSessionAsync(MySqlConnection connection, String logMessage, Int32 startTickCount, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 410 at MySqlConnector.Core.ConnectionPool.ConnectSessionAsync(MySqlConnection connection, String logMessage, Int32 startTickCount, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 415 at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, Int32 startTickCount, Int32 timeoutMilliseconds, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 105 at MySqlConnector.Core.ConnectionPool.GetSessionAsync(MySqlConnection connection, Int32 startTickCount, Int32 timeoutMilliseconds, Activity activity, IOBehavior ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/Core/ConnectionPool.cs:line 135 at MySqlConnector.MySqlConnection.CreateSessionAsync(ConnectionPool pool, Int32 startTickCount, Activity activity, Nullable 1 ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/MySqlConnection.cs:line 929 at MySqlConnector.MySqlConnection.OpenAsync(Nullable 1 ioBehavior, CancellationToken cancellationToken) in //src/MySqlConnector/MySqlConnection.cs:line 423 at MySqlConnector.MySqlConnection.Open() in //src/MySqlConnector/MySqlConnection.cs:line 382 at Nexd.MySQL.MySqlDb.CreateContext[T](Func 2 context) at Nexd.MySQL.MySqlDb.InsertIfNotExist(MySqlQueryValue data, String onDuplicateKey) at K4ryuuSystem.K4System.LoadPlayerData(CCSPlayerController player) in /Users/sples/Documents/GitHub/K4-System/src/Functions.cs:line 135 at K4ryuuSystem.K4System.b__18_2(EventPlayerConnectFull event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 88 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81"-r8<1><[U:1:1210970785]>" ChangeTeam() CTMDBG , team 0, req team 3 willSwitch 0, 1830.97 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key 'Team' was not present in the dictionary. at K4ryuuSystem.K4System.b__18_9(EventPlayerTeam event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 207 at InvokeStub_GameEventHandler 1.Invoke(Object, Object, IntPtr*) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81"XCUT.PW<0>" OnPreResetRound => CTMDBG, team 0 will switch 0 1830.97 "-r8<1><[U:1:1210970785]>" OnPreResetRound => CTMDBG, team 3 will switch 0 1830.97 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Collections.Generic.KeyNotFoundException: The given key 'dead' was not present in the dictionary. at K4ryuuSystem.K4System.b__18_13(EventPlayerSpawn event, GameEventInfo info) in /Users/sples/Documents/GitHub/K4-System/src/Events.cs:line 355 at InvokeStub_GameEventHandler 1.Invoke(Object, Object, IntPtr*) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<>c__DisplayClass3_0.<.ctor>b__0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 81

[REQ] Translations

Is your feature request related to a problem? Please describe.
no

Describe the solution you'd like
I would like to see in the configuration file settings of all phrases from the chat, it will allow everyone to customize phrases for themselves, because not everyone has English-speaking servers

[BUG] Color BUG & ! command BUG v1.3.3

  1. !givepoints / !resetrank doesn't work for others, only for myself> see screenshot (its another SteamID, not mine)

k4 2

  1. No matter what distance you always get long distance points

[BUG]

image

Is it normal that it constantly writes in the server console?

Server crash [BUG]

Server crash, reason: when CT defuses a bomb and doesn’t have time, the server crashes, if you have time to defuse the bomb or just wait for the explosion, then everything is fine

[BUG] Config debug log blocks plugin load

[ALoading plugin: K4System�[1;36r�[35;1H�[1;35r�[21S�[14dFailed to load plugin /home/cs2/cs2-ds/game/csgo/addons/counterstrikesharp/plugins/K4-System/K4-System.dll with error 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 K4ryuuSystem.K4System.Log(String message, LogLevel level, Boolean hotReload) in C:\Users\Rinas\Desktop\K4-System-1.3.0\src\Logs.cs:line 21
at K4ryuuSystem.K4System.OnConfigParsed(MyConfig config) in C:\Users\Rinas\Desktop\K4-System-1.3.0\src\Configs.cs:line 234
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at CounterStrikeSharp.API.Core.BasePlugin.InitializeConfig(Object instance, Type pluginType) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 354
at CounterStrikeSharp.API.Core.PluginContext.Load(Boolean hotReload) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/PluginContext.cs:line 107
at CounterStrikeSharp.API.Core.GlobalContext.LoadPlugin(String path) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GlobalContext.cs:line 97
at CounterStrikeSharp.API.Core.GlobalContext.LoadAllPlugins() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/GlobalContext.cs:line 136

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.