From 2ca40079b4bc129e89b9119a9e9e402a87782041 Mon Sep 17 00:00:00 2001 From: Jorixon <143650598+Jorixon@users.noreply.github.com> Date: Sun, 3 Sep 2023 00:02:33 +0200 Subject: [PATCH] docs(Readme): Added FAQ Signed-off-by: Jorixon <143650598+Jorixon@users.noreply.github.com> --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index e262ce25..2f8ea16f 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,24 @@ The [H.InputSimulator](https://github.com/HavenDV/H.InputSimulator) library is u If you want to contribute to this project, feel free to do so. I am not a professional developer when it comes to WinUI and I am still actively learning. **Just be aware that the code is not super clean...** + +## FAQ + +### I Get the error: An error occurred while adding the storage items. Mod may have been partially copied. Could not find a part of the path "C:\Users\\AppData\Local\Temp\7z..." When draging mods from 7z +This still seems to happen with certain mods, though an alternative is to use the “Add Archive…” command or drag and drop the entire archive file. Just note that it is not smart enough to detect a skin nested inside a “Mods/” folder, at least not yet. + +#### The short reason for why this happens: + +There seems to be some odd behavior between WinUI/WinAppSdk frameworks and the way 7zip extracts files. Currently I don’t have a quick fix. + +#### Long Version: + +For some reason when you drag and drop 7z contents into, let’s say file explorer, the archive is first extracted to a “C:\Users\\AppData\Local\Temp\7z…” folder. The folder is then moved/copied to where you dropped the files. The temp 7z folder is deleted once this process finishes. At least that’s how I understand it when it comes to drag and drop into file explorer. The exact details might be a little different. + +This process is similar for this application. The problem is that for some reason 7z seems to delete the extracted contents in “/Temp/7z…” before JASM can copy/move the files to the mod’s directory. This took quite a while to debug and a lot of trial and error until I got to something that worked (during development?). + +I believe it has something to do with IPC between 7z process and JASM. I’ve read some posts on Github of others having similar problems with drag and drop. + +At the moment I don’t know what makes it sometimes fail, but I know it happens sometimes. I would really like to fix this, I just don’t how yet. + +