Dyshay / CS2Skin

CS2 Skin: A simple plugin for effortless weapon skin customization in Counter-Strike 2
9 stars 2 forks source link

EROR] (cssharp:Core) #1

Closed asdfxD closed 6 months ago

asdfxD commented 10 months ago

[EROR] (cssharp:Core) Could not load plugin "/home/container/game/csgo/addons/counterstrikesharp/plugins/CSSKin/CSSKin.dll" System.InvalidOperationException: Dependency resolution failed for component /home/container/game/csgo/addons/counterstrikesharp/plugins/CSSKin/CSSKin.dll with error code -2147450734. Detailed error: Failed to locate managed application [/home/container/game/csgo/addons/counterstrikesharp/plugins/CSSKin/CSSKin.dll]

at System.Runtime.Loader.AssemblyDependencyResolver..ctor(String componentAssemblyPath) at McMaster.NETCore.Plugins.Loader.ManagedLoadContext..ctor(String mainAssemblyPath, IReadOnlyDictionary2 managedAssemblies, IReadOnlyDictionary2 nativeLibraries, IReadOnlyCollection1 privateAssemblies, IReadOnlyCollection1 defaultAssemblies, IReadOnlyCollection1 additionalProbingPaths, IReadOnlyCollection1 resourceProbingPaths, AssemblyLoadContext defaultLoadContext, Boolean preferDefaultLoadContext, Boolean lazyLoadReferences, Boolean isCollectible, Boolean loadInMemory, Boolean shadowCopyNativeLibraries) at McMaster.NETCore.Plugins.Loader.AssemblyLoadContextBuilder.Build() at McMaster.NETCore.Plugins.PluginLoader..ctor(PluginConfig config) at McMaster.NETCore.Plugins.PluginLoader.CreateFromAssemblyFile(String assemblyFile, Action1 configure) at McMaster.NETCore.Plugins.PluginLoader.CreateFromAssemblyFile(String assemblyFile, Type[] sharedTypes, Action1 configure) at CounterStrikeSharp.API.Core.Plugin.PluginContext..ctor(IServiceProvider applicationServiceProvider, IScriptHostConfiguration hostConfiguration, String path, Int32 id) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 62 at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.LoadPlugin(String path) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 50

Dyshay commented 10 months ago

I will upload new archive tomorrow Something is wrong

Dyshay commented 10 months ago

It's okay the correct package is available

asdfxD commented 10 months ago

thx for update. when using css_skin i get this

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(Nullable1 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.WeaponServerMysqlRepository.Get(String uuid) in C:\Users\dyl_c\RiderProjects\CSSKin\CSSKin\Core\Services\WeaponServerMysqlRepository.cs:line 47 at CSSKin.CSSkin.OnCssSkinCommand(CCSPlayerController player, CommandInfo commandInfo) in C:\Users\dyl_c\RiderProjects\CSSKin\CSSKin\CSSkin.cs:line 250 at CounterStrikeSharp.API.Core.BasePlugin.<>c__DisplayClass41_0.<AddCommand>b__0(Int32 i, IntPtr ptr) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/BasePlugin.cs:line 259 at InvokeStub_Action2.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

Dyshay commented 10 months ago

Have you tried restarting the server?

asdfxD commented 10 months ago

yes i did, still same.

Dyshay commented 10 months ago

I’m going to look what is wrong

I’m going back with fix soon

asdfxD commented 10 months ago

for every new skin i select, i have to restart the server. my ak skin works.

does this plugin have knifes included? i try karambit. i got the Karambit | Fade symbols on right, but still have the default knife.

Dyshay commented 10 months ago

Yes this plugin has Knife included

weapon is apply on restart round

Dyshay commented 10 months ago

You can add me on Discord: https://discord.gg/PctQUhBh

asdfxD commented 10 months ago

i can change the skins now ingame, but than i lost my knife and my pistol. when i respawn i got 2 ak symbols, a pistol but knife is missing.

20240128165211_1

when i select the other ak, i got my knife 🗡️

knife

Dyshay commented 10 months ago

Add me on Discord for follow the problem I give update here after

asdfxD commented 9 months ago

still does not work for me. installed a new vanilla server + metamod 1282 + sharp 163 + skinbridge and csskin only with mysql.

database created without any issues, but when i use this example: css_skin 515 568 1 0

i got no knife/skin, i got an error in console, but data successfully added in database, when i restart the server than i get still this:

sssssssss

Dyshay commented 9 months ago

I’m going to look all issue tomorrow

Dyshay commented 9 months ago

Can you share the error console @asdfxD here ?

asdfxD commented 9 months ago

i'm on debian 12 now and i can't post error logs cause skinbridge is not working in debian 12 i guess.

Metamod 1282 Sharp v164

meta list Listing 2 plugins: [01] CounterStrikeSharp (0.1.0) by Roflmuffin [02] < ERROR >

Dyshay commented 9 months ago

"i got an error in console"

Dyshay commented 9 months ago

Working well on ubuntu :/

asdfxD commented 9 months ago

y, in debian 11 before. but now i'm on deb12 and skinbridge does not work.

asdfxD commented 9 months ago

try ubuntu now lol, if its working there, than it wont work in debian.

asdfxD commented 9 months ago

20.04

meta list Listing 2 plugins: [01] CounterStrikeSharp (0.1.0) by Roflmuffin [02] < ERROR >

...

asdfxD commented 9 months ago

its probably skinbridge never worked for me

plugins seems to be running, i got butterfly icon but have default knife, something must be wrong with skinbridge.

Dyshay commented 9 months ago

I don't understand what the problem is. The other person who reported an error had no trouble installing the plugin.

asdfxD commented 9 months ago

found out what the problem is

asdfxD commented 9 months ago

try manually load skinbridge

Failed to load plugin addons/SkinBridge/SkinBridge.so (/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/container/game/csgo/addons/SkinBridge/SkinBridge.so)).

asdfxD commented 9 months ago

required to have GLIBCXX_3.4.29

asdfxD commented 9 months ago

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX GLIBCXX_3.4 GLIBCXX_3.4.1 GLIBCXX_3.4.2 GLIBCXX_3.4.3 GLIBCXX_3.4.4 GLIBCXX_3.4.5 GLIBCXX_3.4.6 GLIBCXX_3.4.7 GLIBCXX_3.4.8 GLIBCXX_3.4.9 GLIBCXX_3.4.10 GLIBCXX_3.4.11 GLIBCXX_3.4.12 GLIBCXX_3.4.13 GLIBCXX_3.4.14 GLIBCXX_3.4.15 GLIBCXX_3.4.16 GLIBCXX_3.4.17 GLIBCXX_3.4.18 GLIBCXX_3.4.19 GLIBCXX_3.4.20 GLIBCXX_3.4.21 GLIBCXX_3.4.22 GLIBCXX_3.4.23 GLIBCXX_3.4.24 GLIBCXX_3.4.25 GLIBCXX_3.4.26 GLIBCXX_3.4.27 GLIBCXX_3.4.28 GLIBCXX_3.4.29 GLIBCXX_3.4.30 GLIBCXX_DEBUG_MESSAGE_LENGTH

still does not work

Listing 4 plugins: [01] CounterStrikeSharp (0.1.0) by Roflmuffin [02] AuthSessionFix (1.0.0.0) by Poggu [03] ServerListPlayersFix (1.0.0.0) by Poggu [04] < ERROR > meta load addons/SkinBridge/SkinBridge.so Failed to load plugin addons/SkinBridge/SkinBridge.so (/usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /home/container/game/csgo/addons/SkinBridge/SkinBridge.so)).

i gave up.

adrian7123 commented 9 months ago

the new cs2 update came with this problem, SkinBridge does not work now

adrian7123 commented 9 months ago

the error happens here:

{
    Server.ExecuteCommand($"i_subclass_change {weaponInfo.DefIndex} {entity.Index}");
} 

I fixed it by changing it:

if (ConstantsWeapon.g_KnivesMap.ContainsKey(weaponId))
{
    Server.ExecuteCommand("sv_cheats 1");

    pBasePlayerWeapon.AttributeManager.Item.EntityQuality = 3;
    Server.ExecuteCommand($"subclass_change {weaponInfo.DefIndex} {entity.Index}");

    Server.ExecuteCommand("sv_cheats 0");
}
asdfxD commented 9 months ago

skinbridge update?

asdfxD commented 6 months ago

RIP