Skip to content

Commit

Permalink
docs(Readme): Added FAQ
Browse files Browse the repository at this point in the history
Signed-off-by: Jorixon <143650598+Jorixon@users.noreply.github.com>
  • Loading branch information
Jorixon authored Sep 2, 2023
1 parent 69eb509 commit 2ca4007
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


0 comments on commit 2ca4007

Please sign in to comment.