KitsuneLab-Development / K4-RPG

A modular plugin that support to gain experience and upgrade skills.
GNU General Public License v3.0
16 stars 3 forks source link

[BUG] some skill don't work #7

Open omega6428 opened 1 month ago

omega6428 commented 1 month ago

Hi, i tested 4 skills at my server and only Health works.. health regenerarion, vampire and thorns don't work.. said skills upgraded, but nothing happened..i write about bug in discord too but i ask to write a issue about bug to ghithub..

K4ryuu commented 1 month ago

Some skills work only with Linux as its shows in the list.

I develop for Linux only and will be developing for Linux only. If it supports Windows magically its not on purpose.

omega6428 commented 1 month ago

hi, i tested only skills that NOT write "linux only".. Health regeneration and Vampire also not working that NOT specified.. please specify if other skills not working else Backstab, shoot damage multiplier and knife damage multiplier that only specified "linux only" i need only life/armor regeneration and vampire/thorns that no ONE works:(.

On Mon, Aug 12, 2024 at 11:39 PM K4ryuu @.***> wrote:

Some skills work only with Linux as its shows in the list.

— Reply to this email directly, view it on GitHub https://github.com/KitsuneLab-Development/K4-RPG/issues/7#issuecomment-2284866551, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKPVYOPKWBSHIKXY7R65E7DZREMQXAVCNFSM6AAAAABMM3CPASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBUHA3DMNJVGE . You are receiving this because you authored the thread.Message ID: @.***>

Oz-Lin commented 1 month ago

Jumping in to repost the error log. Also it looks like the upgraded skills are gone when changing to another map, (need to level up the skills from level 1 again) Player exps and skill points are still there correctly in k4-rpg_players database table. But in the k4-rpg_playerskills database table, you can see the duplicated entries for skills (same steamid64, but duplicated skill and level). 图片

13:02:30 [EROR] (cssharp:Core) Error invoking callback System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added. Key: 76561198016810091 at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at K4RPGSkillHealthRegen.PluginK4RPGSkillHealthRegen.b18_2(CCSPlayerController player, Int32 level) at K4RPG.Plugin.<>cDisplayClass32_1.b__5(KeyValuePair2 x) at System.Collections.Generic.List1.ForEach(Action1 action) at K4RPG.Plugin.b32_1(EventPlayerSpawn event, GameEventInfo info) at InvokeStub_GameEventHandler1.Invoke(Object, Span1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 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

omega6428 commented 1 month ago

compiled with v.259.. same error: 11:23:06 [EROR] (cssharp:Core) Error invoking callback System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added. Key: 76561198016810091 at System.Collections.Generic.Dictionary2.TryInsert(TKey key, TValue value, InsertionBehavior behavior) at K4RPGSkillHealthRegen.PluginK4RPGSkillHealthRegen.<OnAllPluginsLoaded>b__18_2(CCSPlayerController player, Int32 level) at K4RPG.Plugin.<>c__DisplayClass32_1.<Initialize_Events>b__5(KeyValuePair2 x) at System.Collections.Generic.List1.ForEach(Action1 action) at K4RPG.Plugin.b32_1(EventPlayerSpawn event, GameEventInfo info) at InvokeStub_GameEventHandler1.Invoke(Object, Span1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 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

mean CSSharp is buuged.. need to wait 2-3 years for SOURCE MOD v2.0

Oz-Lin commented 1 month ago

Looks like there's a bug with handling databases

omega6428 commented 1 month ago

i use standard mysql database... please tell me if exist a dedicated light database for CS source2 plugins that can use mysql structure

K4ryuu commented 1 month ago

I'm deploying now K4-System's rework this weekend and after that I check on RPG aswell ❤️ Sadly this other rework consumed lot of time