• Hi Guest! To get rid of ads on the page, please consider donating through user upgrades or other methods.

V6 error

shunjianbaozha

Cricket
Member
An application error occurred. Please contact Endless and report this error!
Error: empty
InnerException: System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at BnSBuddy2.Pathing.ClientPaths.FindGameInstalls()
at BnSBuddy2.Form1.FindGameDir()
at BnSBuddy2.Form1..ctor()
at BnSBuddy2.Preload..ctor()
at BnSBuddy2.Program.Main()
StackTrace: at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at BnSBuddy2.Pathing.ClientPaths.FindGameInstalls()
at BnSBuddy2.Form1.FindGameDir()
at BnSBuddy2.Form1..ctor()
at BnSBuddy2.Preload..ctor()
at BnSBuddy2.Program.Main()
 

foain

Cricket
Member
I also encountered such an error. TW server
Post automatically merged:

An application error occurred. Please contact Endless and report this error!
Error: empty
InnerException: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at BnSBuddy2.Pathing.LauncherPaths..ctor()
at BnSBuddy2.Form1..ctor()
at BnSBuddy2.Preload..ctor()
at BnSBuddy2.Program.Main()
StackTrace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at BnSBuddy2.Pathing.LauncherPaths..ctor()
at BnSBuddy2.Form1..ctor()
at BnSBuddy2.Preload..ctor()
at BnSBuddy2.Program.Main()
 

cupid

Forgiving
Staff member
Moderator
Member
I also encountered such an error. TW server
Post automatically merged:

An application error occurred. Please contact Endless and report this error!
Error: empty
InnerException: System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at BnSBuddy2.Pathing.LauncherPaths..ctor()
at BnSBuddy2.Form1..ctor()
at BnSBuddy2.Preload..ctor()
at BnSBuddy2.Program.Main()
StackTrace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at BnSBuddy2.Pathing.LauncherPaths..ctor()
at BnSBuddy2.Form1..ctor()
at BnSBuddy2.Preload..ctor()
at BnSBuddy2.Program.Main()

This is unrelated.

This should have been fixed on version 6.0.0.6.

That happened when launching the game.
The same "InnerException: System.ArgumentException: An item with the same key has already been added." happened when people would try to launch a 2nd instance of the game, with multi-client enabled.
So, I guess that this was the cause of your problem.


The problem described on the top is different.
 

Endless

Founder
Staff member
Administrator
This is unrelated.

This should have been fixed on version 6.0.0.6.

That happened when launching the game.
The same "InnerException: System.ArgumentException: An item with the same key has already been added." happened when people would try to launch a 2nd instance of the game, with multi-client enabled.
So, I guess that this was the cause of your problem.


The problem described on the top is different.
his issue is indeed different from the OP
OP's issue was resolved with latest update

Altho for this one, i have no idea how he got that error when there's a check for duplicate key names
XML:
if (References.ContainsKey(regis) && !Launchers.ContainsKey(References[regis]))
{
     Form1.CurrentForm.AddLauncherLog($"Found {References[regis]} Launcher" + Environment.NewLine + path);
     Launchers.Add(References[regis], path);
}

EDIT: Found the issues and it was fixed for next update!
 
Last edited:
Top Bottom