X-Hax / sa2-mod-loader

Sonic Adventure 2 PC Mod Loader
47 stars 16 forks source link

(Steam Proton) Clicking the config button for a mod like CWE causes an error, and prevents any of the config options from showing up #29

Open Star-X555 opened 3 years ago

Star-X555 commented 3 years ago

Basically it makes the mod loader impossible to use on Linux, at least if you have any big mods like CWE.

Error log below:

> See the end of this message for details on invoking \njust-in-time (JIT) debugging instead of this dialog box.\n\n************** Exception Text **************\nSystem.IndexOutOfRangeException: Index was outside the bounds of the array.
> at System.Windows.Forms.PropertyGrid.UpdatePropertiesViewTabVisibility () [0x0006e] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>  at System.Windows.Forms.PropertyGrid.ShowEventsButton (System.Boolean value) [0x00061] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.PropertyGrid.set_SelectedObjects (System.Object[] value) [0x004c1] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.PropertyGrid.set_SelectedObject (System.Object value) [0x0001b] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at (wrapper remoting-invoke-with-check) System.Windows.Forms.PropertyGrid.set_SelectedObject(object)
>   at ModManagerCommon.Forms.ModConfigDialog.ModConfigDialog_Load (System.Object sender, System.EventArgs e) [0x0002d] in <7c849c5936d84cc49daa19d63b86616a>:0 
>   at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x000d1] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Form.OnCreateControl () [0x00031] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Control.CreateControl (System.Boolean fIgnoreVisible) [0x000ed] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Control.CreateControl () [0x00008] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Control.WmShowWindow (System.Windows.Forms.Message& m) [0x00051] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x0071b] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00043] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x0001a] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Form.WmShowWindow (System.Windows.Forms.Message& m) [0x00013] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message& m) [0x00290] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Control+ControlNativeWindow.OnMessage (System.Windows.Forms.Message& m) [0x00001] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x000b3] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
>   at System.Windows.Forms.NativeWindow.Callback (System.Windows.Forms.Message& m) [0x00025] in <2736a4f873604bfea9e5f3a0d64b37d6>:0 
> 
> \n************** Loaded Assemblies **************\nmscorlib\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/4.5/mscorlib.dll\n----------------------------------------\nSA2ModManager\n    Assembly Version: 1.0.0.0\n    Win32 Version: 1.0.0.0\n    CodeBase: file:///Z:/home/starx555/LinuxInternalStorage/Steam/steamapps/common/Sonic%20Adventure%202/Launcher.exe\n----------------------------------------\nModManagerCommon\n    Assembly Version: 1.0.0.0\n    Win32 Version: 1.0.0.0\n    CodeBase: file:///Z:/home/starx555/LinuxInternalStorage/Steam/steamapps/common/Sonic%20Adventure%202/ModManagerCommon.dll\n----------------------------------------\nSystem.Core\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll\n----------------------------------------\nSystem.Windows.Forms\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/System.Windows.Forms/4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll\n----------------------------------------\nSystem\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll\n----------------------------------------\nSystem.Drawing\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/System.Drawing/4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll\n----------------------------------------\nAccessibility\n    Assembly Version: 4.0.0.0\n    Win32 Version: \n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/Accessibility/4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll\n----------------------------------------\nSystem.Configuration\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll\n----------------------------------------\nSystem.Xml\n    Assembly Version: 4.0.0.0\n    Win32 Version: 4.6.57.0\n    CodeBase: file:///Z:/home/starx555/.local/share/Steam/steamapps/common/Proton%206.3/dist/share/wine/mono/wine-mono-6.3.0/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll\n----------------------------------------\nMicrosoft.GeneratedCode\n    Assembly Version: 1.0.0.0\n    Win32 Version: n/a\n    CodeBase: \n----------------------------------------\nMicrosoft.GeneratedCode\n    Assembly Version: 1.0.0.0\n    Win32 Version: n/a\n    CodeBase: \n----------------------------------------\n\n************** JIT Debugging **************\n'
> 
Star-X555 commented 3 years ago

Just for the record, theoretically a workaround would be storing the configs in a plaintext file or something. As I haven't tested said config options yet on either Windows or Linux I have no frickin clue how they're stored, but if they're editable by hand that might be a way to bypass whatever dotnet bullcrap the config menu brings up.

MainMemory commented 3 years ago

It's an INI file.

kellsnc commented 3 years ago

if they're editable by hand that might be a way to bypass whatever dotnet bullcrap the config menu brings up.

Look at the configschema and make a config.ini

[GroupName]
ParameterName=Value