Yinigma / EnemySkinKit

Tools for creating Lethal Company Enemy skins compatible with the Enemy Skin Registry
0 stars 0 forks source link

Using multiple skins results in an error #5

Closed KadenBiel closed 1 month ago

KadenBiel commented 2 months ago

Whether I package the skins in one mod or use multiple mods, I always get this error:

[Error  : Unity Log] ArgumentException: An item with the same key has already been added. Key:
Stack trace:
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <787acc3c9a4c471ba7d971300105af24>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <787acc3c9a4c471ba7d971300105af24>:0)
AntlerShed.SkinRegistry.SkinRepository.RegisterSkin (AntlerShed.SkinRegistry.Skin skin) (at <50d4183192fa41d19c16cf832d441016>:0)
AntlerShed.SkinRegistry.EnemySkinRegistry.RegisterSkin (AntlerShed.SkinRegistry.Skin skin, System.Nullable`1[T] defaultConfig) (at <50d4183192fa41d19c16cf832d441016>:0)
KadenBiel.LethalCompany.MemeTime.MemeTimePlugin.Awake () (at <ab50a077f85e4f8780eb6d3e23706163>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.Rendering.HighDefinition.HDRenderPipelineAsset:OnEnable()

I've also noticed that when re-skinning the Nutcracker, the replacement audio doesn't work and always retains the original audio.

Yinigma commented 2 months ago

The next update will have a more descriptive error for this, but are you giving your skins unique ids?