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

[BUG] some skill don't work #7

Open
omega6428 opened this issue Aug 12, 2024 · 7 comments
Open

[BUG] some skill don't work #7

omega6428 opened this issue Aug 12, 2024 · 7 comments

Comments

@omega6428
Copy link

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
Copy link
Member

K4ryuu commented Aug 12, 2024

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
Copy link
Author

omega6428 commented Aug 13, 2024 via email

@Oz-Lin
Copy link

Oz-Lin commented Aug 15, 2024

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.<Initialize_Events>b__5(KeyValuePair2 x)
at System.Collections.Generic.List1.ForEach(Action1 action)
at K4RPG.Plugin.<Initialize_Events>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
Copy link
Author

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.<Initialize_Events>b__32_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.b__18_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
Copy link

Oz-Lin commented Aug 22, 2024

Looks like there's a bug with handling databases

@omega6428
Copy link
Author

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

@K4ryuu
Copy link
Member

K4ryuu commented Aug 24, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants