nike4613 / BeatSaber-IPA-Reloaded

A Unity mod injector built for Beat Saber.
https://nike4613.github.io/BeatSaber-IPA-Reloaded/
Other
180 stars 28 forks source link

Unable to load Mod, the following error is displayed after adding --verbose #36

Closed WGzeyu closed 4 years ago

WGzeyu commented 4 years ago

I'm in Beat Saber 1.7.0, which is newly installed and has been run once, BSIPA 3.13.7 was installed using ModAssistant, but the Mod option cannot be loaded anyway. When I opened Beat Saber\Plugins, I couldn't find any mods. After running the Beat Saber with the --verbose parameter, BSIPA outputs the following:

System.ArgumentException: Value does not fall within the expected range. at IPA.Loader.LibLoader+d__13.MoveNext () [0x00061] in <561f7537f11b496bb2465f41d54f54b0>:0 at IPA.Loader.LibLoader.SetupAssemblyFilenames (System.Boolean force) [0x0009d] in <561f7537f11b496bb2465f41d54f54b0>:0 at IPA.Loader.LibLoader.Configure () [0x0002c] in <561f7537f11b496bb2465f41d54f54b0>:0 at IPA.Injector.Injector.SetupLibraryLoading () [0x0000e] in :0 at IPA.Injector.Injector.Main (System.String[] args) [0x00017] in :0 Setting breakpad minidump AppID = 620980 Steam_SetMinidumpSteamID: Caching Steam ID: 76561198430065093 [API loaded no]

This is the game's log folder: https://wgzeyu.gtxcn.com/img/Logs.zip

WGzeyu commented 4 years ago

When using Beat Saber 1.6.0 (I remember it should be January 7th), the mod can still load normally. But I forgot the version of BSIPA when I installed Mod.

nike4613 commented 4 years ago

It looks to me like you somehow don't have a Libs folder in your installation. The BSIPA installer should ensure that it exists when it is run, though it seems like it somehow got removed on your installation.

On another, note, I noticed that you are running with a Chinese locale, which is known to cause issues with time on Mono, the runtime that the game uses. That is why the name of the log files is so broken, as it is simply using a monotonically increasing counter.

WGzeyu commented 4 years ago

I have tried multiple clean installations and exited the antivirus software, and it didn't work. So I think it should not be a missing file.

nike4613 commented 4 years ago

Can you upload a screenshot of your installation directory?

WGzeyu commented 4 years ago

nike4613 commented 4 years ago

As I said before, you are missing Libs in the root installation directory. The IPA installer should copy the files in IPA/Libs out for use by the game.

WGzeyu commented 4 years ago

Just tried manually copying IPA\Pending and IPA\Libs to the game root directory, but it still doesn't work

nike4613 commented 4 years ago

Are there any errors in the console or log files?

WGzeyu commented 4 years ago

https://wgzeyu.gtxcn.com/img/log2.zip

nike4613 commented 4 years ago

Aha. Yeah, that looks like a side effect of the locale issue I mentioned before. Try running the game through NTLEA or changing your Windows locale to something that isn't Chinese.

WGzeyu commented 4 years ago

I didn't think it was a problem caused by the locale or language setting before, in fact I was helping a friend to feedback the problem. I myself use the exact same locale and language settings (Simplified Chinese, China) and have not encountered any problems. I just asked him to try to change the control panel and Win10 settings and system language to English (UK), then start the game directly, there is still no Mod. However, at this time, after reinstalling Mod using ModAssistant in English environment, everything works. After that he changed the system language and region to Simplified Chinese (China), and Mod still works.

nike4613 commented 4 years ago

At some level, that doesn't actually surprise me...

I was playing with it in a VM a bit ago, and after installing the Simplified Chinese language pack and setting that as the system locale, it still worked fine, so I suspect that simply having the English language pack installed is enough to make it work.

Needs more testing, but I don't particularly care to get my hands on a Chinese install disk for Windows. If you or someone else wants to investigate further, I'd ask you to open another issue to track it.