Sonic Adventure™ 2

Sonic Adventure™ 2

View Stats:
No config file
Hey, so I'm getting the same error a lot of people get saying this

************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'index'.
Parameter name: index
at System.Windows.Forms.ComboBox.ObjectCollection.get_Item(Int32 index)
at Launcher.MainFrame.SaveUserConfig()
at Launcher.MainFrame.SaveConfig()
at Launcher.MainFrame.StartButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8936 (WinRelRS4.050727-8900)
CodeBase: file:/C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Launcher
Assembly Version: 1.0.4645.23848
Win32 Version:
CodeBase: file:///D:/Steam/steamapps/common/Sonic%20Adventure%202/Launcher.exe
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.9415
Win32 Version: 9.00.30729.9415
CodeBase: file:///C:/WINDOWS/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9415_none_508df7e2bcbccb90/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8934 (WinRelRS4.050727-8900)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.8922 (WinRelRS4.050727-8900)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

I've tried to find different ways to fix it, but nothing seems to work. I feel like an easy fix would just be to have someone leave their good config file here for me to use because creating my own doesn't do anything at all, I still have no resolution options or anything. I know this probably looks stupid to anyone with computer knowledge, but this is all I can think of at this point.
< >
Showing 1-4 of 4 comments
FallenLogic Dec 29, 2018 @ 1:29pm 
It looks like there aren't any config files and the devs forgot a null check, so it tries to write your settings to a nonexistent file.

Before you try pasting these in for the CFG files:

- Go to the SA2 folder, right-click Launcher.exe and change compatibility mode to "Windows XP (SP3)"

- Repeat the above step for sonic2app.exe

- Make sure fullscreen is unchecked in the launcher.

- Make sure the CFG files you've already created have the extension "cfg" and not "txt" (you need to show file extensions)

In Windows 10, click the "View" tab at the top of File Explorer, then check the box that says "File Extensions" (should be at the top right).

Win7-8:
https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/



My configuration files (Keyboard is modified, Controller is default, you may need to change resolution in second one to your monitor's resolution):


Keyboard.cfg Keyboard and Controller settings

<?xml version="1.0" ?>
<Setup Layout="0" />
<Players>
<Player InputWay="1" Vibrate="0">
<key index="22" />
<key index="18" />
<key index="0" />
<key index="3" />
<key index="8" />
<key index="50" />
<key index="17" />
<key index="10" />
<key index="25" />
<key index="16" />
<key index="37" />
<key index="23" />
<key index="4" />
<key index="37" />
<key index="27" />
<key index="67" />
</Player>
<Player InputWay="0" Vibrate="0">
<key index="83" />
<key index="65" />
<key index="73" />
<key index="79" />
<key index="102" />
<key index="98" />
<key index="101" />
<key index="99" />
<key index="66" />
<key index="104" />
<key index="37" />
<key index="76" />
<key index="105" />
<key index="37" />
<key index="28" />
<key index="111" />
</Player>
</Players>



UserConfig.cfg Resolution settings

<?xml version="1.0" ?>
<Configs FullScreen="0" Display="0" Res="18" Width="1920" Height="1080" RefreshRate="60" Language="0" Analytics="0" />
angelgamesxvp Apr 21, 2020 @ 10:16am 
InvalidArgument=Value of '18' is not valid for 'index'.
Parameter name: index.
System.ArgumentOutOfRangeException: InvalidArgument=Value of '18' is not valid for 'index'.
Parameter name: index
at System.Windows.Forms.ComboBox.ObjectCollection.get_Item(Int32 index)
at Launcher.MainFrame.SaveUserConfig()
at Launcher.MainFrame.SaveConfig()
at Launcher.MainFrame.StartButton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:/C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Launcher
Assembly Version: 1.0.4645.23848
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/Steam/steamapps/common/Sonic%20Adventure%202/Launcher.exe
----------------------------------------
msvcm90
Assembly Version: 9.0.30729.9518
Win32 Version: 9.00.30729.9518
CodeBase: file:///C:/Windows/WinSxS/x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9518_none_508db366bcbd18c4/msvcm90.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9031 (WinRelRS5.050727-9000)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
can someone please help me here, I just want to play the game.
FallenLogic Apr 21, 2020 @ 10:31am 
Have you tried using the above config files, since those are known to work? If you've done all that, and followed the guide, then you can't do much else.
Underdog Apr 21, 2020 @ 11:08am 
Originally posted by angelgamesxvp:
can someone please help me here, I just want to play the game.

Go to Library > right click Sonic Adventure 2 > Properties > Local Files > View Local Files to pull up your game's file directory on the computer. Locate the Config folder

Download the config files in this guide, and replace them in your Config folder:

(Take note that these config files assume 1920x1080 resolution, and that you'll be playing on controller... if your resolution is something else, open UserConfig and enter the width/height... if you are planning to play on keyboard, open Keyboard and set InputWay="1" to 0 instead. Don't bother with any of the other steps in the guide for now)

https://steamcommunity.com/sharedfiles/filedetails/?id=1653037457

Then while in the directory, back up and rename Launcher to LauncherOld (or anything else but Launcher), and rename sonic2app to Launcher. The config files fill out the launcher settings to what should work for most people, and renaming the .exes skips the launcher, which causes a lot of issues on its own
< >
Showing 1-4 of 4 comments
Per page: 1530 50

Date Posted: Oct 18, 2018 @ 9:27am
Posts: 4