Slaynash / Lumbot

LUM Discord Bot
Other
16 stars 6 forks source link

[FEATURE REQUEST]: Detect Melon Loader start screen issues #22

Closed Arkhorse closed 1 month ago

Arkhorse commented 1 month ago

Is your feature request related to a problem? Please describe.

Sometimes the start screen just fails to work properly, which can prevent a game from working properly. Detecting this issue and providing a solution to it would be helpful

Describe the solution you'd like

Detection of a failed start screen and proving an additional bit of instruction into the 'Known Errors' section. The solution is:

Go into GameFolderName/UserData/MelonStartScreen/Config.cfg and change Enabled to false

Describe alternatives you've considered

N/A

Additional context

The entire error


[22:04:45.003] [MelonStartScreen] Initializing...
[22:04:45.069] [MelonStartScreen] Using Start Screen Theme: "Default"
[22:04:45.296] [MelonStartScreen] System.InvalidOperationException: Unable to get process modules.
   at Microsoft.Diagnostics.Runtime.WindowsProcessDataReader.EnumerateModules()
   at Microsoft.Diagnostics.Runtime.DataTarget.EnumerateModules()
   at Microsoft.Diagnostics.Runtime.DataTarget.GetOrCreateClrVersions()
   at Microsoft.Diagnostics.Runtime.DataTarget.get_ClrVersions()
   at MelonLoader.CoreClrUtils.CoreClrDelegateFixer.SanityCheckDetour(IntPtr& detour) in D:\a\MelonLoader\MelonLoader\MelonLoader\CoreClrUtils\CoreClrDelegateFixer.cs:line 22
   at MelonLoader.BootstrapInterop.NativeHookAttach(IntPtr target, IntPtr detour) in D:\a\MelonLoader\MelonLoader\MelonLoader\BootstrapInterop.cs:line 70
   at MelonLoader.NativeUtils.NativeHook`1.Attach() in D:\a\MelonLoader\MelonLoader\MelonLoader\NativeUtils\NativeHooks.cs:line 92
   at MelonLoader.MelonStartScreen.Core.ApplyUser32SetTimerPatch() in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\Core.cs:line 139
   at MelonLoader.MelonStartScreen.Core.LoadAndRun(LemonFunc`1 functionToWaitForAsync) in D:\a\MelonLoader\MelonLoader\Dependencies\MelonStartScreen\Core.cs:line 68```