CollapseLauncher / Collapse

An Advanced Launcher for miHoYo/HoYoverse Games
MIT License
1.41k stars 65 forks source link

[Bug]: Honkai Star Rail - Unhandled Error #356

Closed Wizkiller96 closed 9 months ago

Wizkiller96 commented 11 months ago

Affected Version

Collapse 1.72.14

Bug Behavior

Not sure if there is a fix for this but I didn't see any open issues about it or if there was one open then they got a different error message than mine. I should note the game still launches even with this error message popping up so not sure which game settings are effected by it.

`System.Exception: Due to miHoYo/Cognosphere A/B testing, Collapse currently does not support reading thefollowing key: App_Settings_h2319593470

This may also cause the modifications of Game Settings through this page to behave unexpectedly.

We apologize for the inconvenience we may have caused. Please try again later. `

Expected Behavior

To be able to switch to Honkai Star Rail and not have this error message pop up every time.

Steps to reproduce

  1. Open Collapse Launcher 1.72.14
  2. Select Honkai Star Rail
  3. An error should pop up saying the message I posted above.

Related Issues

No response

Screenshot(s)

No response

Additional Information

No response

bagusnl commented 11 months ago

Thank you for submitting bug report for Collapse! Oh, I think we might have put the warning label into the wrong page 😓 We will check on it! This error was caused by our misplaced warning check put on because of HoYo's A/B testing on their configuration saving mechanism on Star Rail. The new format is not supported due to something weird in the game code.

If you are bothered by the error message, you can wipe the configuration registry under HKEY_CURRENT_USER/Software/Cognosphere/{either Star Rail or 崩坏:星穹铁道 depending on your installed region}, you have to delete the entire subfolder of it (make sure you export it as backup just in case). Do note that this workaround will wipe all your settings including your login info, so you will have to login and set it up again. image

CC @Cryotechnic TODO: Move A/B checker into the GSP .xaml.cs instead of the Registry Handlers to prevent warning be put on when the region is loaded.

bagusnl commented 9 months ago

Should be fixed with last update on preview and next update for stable, sorry for taking a bit!