Skip to content

Game crash when updateing bepinex inside modmanager #49

@KnatteAnka

Description

@KnatteAnka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions