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

Game crash when updateing bepinex inside modmanager #49

Open
KnatteAnka opened this issue Dec 18, 2023 · 0 comments
Open

Game crash when updateing bepinex inside modmanager #49

KnatteAnka opened this issue Dec 18, 2023 · 0 comments

Comments

@KnatteAnka
Copy link

KnatteAnka commented Dec 18, 2023

Game crash:

[Error  : Unity Log] ArgumentException: An item with the same key has already been added. Key: 2462172
Stack trace:
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <cb3602b5bf2148caa08db7780ec02b19>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <cb3602b5bf2148caa08db7780ec02b19>:0)
System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <3fc70802b3194c35a6873c741765df0a>:0)
System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector) (at <3fc70802b3194c35a6873c741765df0a>:0)
ModManager.AddonSystem.InstalledAddonRepository.Load (ModManager.StartupSystem.ModManagerStartupOptions startupOptions) (at <a7d9abf2df474c35ab581f4a17f59727>:0)
ModManager.StartupSystem.ModManagerStartup.LoadClasses (ModManager.StartupSystem.ModManagerStartupOptions startupOptions) (at <a7d9abf2df474c35ab581f4a17f59727>:0)
ModManager.StartupSystem.ModManagerStartup.Run (System.String apiKey, System.Action`1[T] options) (at <a7d9abf2df474c35ab581f4a17f59727>:0)
ModManagerUI.ModManagerUIPlugin.Awake () (at <e9e61b3145fe41b4a54ad0f03c53de6a>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.InputSystem.InputSystem:.cctor()

How to reproproduce it:

  1. Install an old bepinex version inside modmanager
  2. update bepinex version
  3. it did not remove the old folder but creates a new one
    Bepinex updated

How my plugins folder looks like after these steps
plugins.zip

Tried download old timberapi version and then update it and did not create any duplicate folders

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

1 participant