QuestPatcher icon indicating copy to clipboard operation
QuestPatcher copied to clipboard

questui/mod.json' does not exist?

Open sidney0312 opened this issue 10 months ago • 1 comments

I'm suffering from these errors.

QuestPatcher.Core.AdbException: remote object '/sdcard/QuestPatcher/com.beatgames.beatsaber/installedMods/OculusDB_CoreMods_1.28.0_4124311467/ mod-list/ questui/mod.json' does not exist

at QuestPatcher.Core.AndroidDebugBridge.RunCommand(String command, Int32[] allowedExitCodes) in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\AndroidDebugBridge.cs:line 150 at QuestPatcher.Core.AndroidDebugBridge.DownloadFile(String name, String destination) in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\AndroidDebugBridge.cs:line 188 at QuestPatcher.Core.Modding.QModProvider.LoadLegacyMods() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\Modding\QModProvider.cs:line 300 at QuestPatcher.Core.Modding.ModManager.LoadModsForCurrentApp() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\Modding\ModManager.cs:line 177 at QuestPatcher.Core.QuestPatcherService.RunStartup() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher.Core\QuestPatcherService.cs:line 136 at QuestPatcher.Services.QuestPatcherUiService.LoadAndHandleErrors() in D:\a\QuestPatcher\QuestPatcher\QuestPatcher\Services\QuestPatcherUiService.cs:line 94

sidney0312 avatar Mar 30 '24 06:03 sidney0312

Guess having kinda same issue but my error looks a bit different:

QuestPatcher.Core.AdbException: Code 1: adb: error: failed to stat remote object '/sdcard/QuestPatcher/com.beatgames.beatsaber/installedMods/bsml/mod.json': No such file or directory at QuestPatcher.Core.AndroidDebugBridge.RunCommand(String command, Int32[] allowedExitCodes) in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/AndroidDebugBridge.cs:line 433 at QuestPatcher.Core.AndroidDebugBridge.DownloadFile(String name, String destination) in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/AndroidDebugBridge.cs:line 471 at QuestPatcher.Core.Modding.QModProvider.LoadLegacyMods() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/Modding/QModProvider.cs:line 171 at QuestPatcher.Core.Modding.ModManager.LoadModsForCurrentApp() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/Modding/ModManager.cs:line 242 at QuestPatcher.Core.QuestPatcherService.RunStartup() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher.Core/QuestPatcherService.cs:line 137 at QuestPatcher.Services.QuestPatcherUiService.LoadAndHandleErrors() in /Users/runner/work/QuestPatcher/QuestPatcher/QuestPatcher/Services/QuestPatcherUiService.cs:line 96

Cannot find solution on the internet

UPD: alright, here is solution: https://github.com/Lauriethefish/QuestPatcher/issues/110#issuecomment-1416942908

I've just removed /sdcard/QuestPatcher directory via SideQuest and relaunched QP and it worked

auhoris avatar Mar 31 '24 14:03 auhoris

Yeah this suggests you've got a corrupted mod in the /sdcard/QuestPatcher directory.

I'll change this issue to be for better error handling in this situation.

Lauriethefish avatar Aug 18 '24 05:08 Lauriethefish

The aim would be to detect any mods that are missing a mod.json, treat them as corrupted and delete the folder. This would also apply for any mods who's mod.jsons don't match the qmod schema.

Lauriethefish avatar Aug 18 '24 05:08 Lauriethefish