amakvana / SwitchEmuModDownloader

SwitchEmuModDownloader - A Cross-Platform One-Click Games Mod Downloader for Switch emulators. Formerly YuzuModDownloader.
GNU General Public License v3.0
567 stars 35 forks source link

An attempt was made to move the file pointer before the file #16

Closed waxp69 closed 2 years ago

waxp69 commented 2 years ago

Screenshot 2022-08-08 223538

amakvana commented 2 years ago

Thanks for opening this! Are you able to provide me a couple of things please :)

Can you also run the program again. When the error pops up, click on the Details button and copy/paste the errors within there?

fieldkim commented 2 years ago

I'm not the reporter. But I have exactly same message. so I report it in my case :) (but debug messages in Korean. Sorry :( )

`이 대화 상자 대신 JIT(Just-in-time) 디버깅을 호출하는 방법에 대한 자세한 내용은 이 메시지의 뒷부분을 참조하십시오.

** 예외 텍스트 ** System.IO.IOException: 파일 시작 앞으로 파일 포인터를 이동하려고 했습니다.

위치: System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 위치: System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin) 위치: System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin) 위치: System.IO.Compression.ZipArchive.ReadEndOfCentralDirectory()

** 로드된 어셈블리 ** mscorlib 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4515.0 built by: NET48REL1LAST_C 코드베이스: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

YuzuModDownloader 어셈블리 버전: 1.1.0.0 Win32 버전: 1.1.0.0 코드베이스: file:///D:/Emulators/nsw/yuzu/yuzu-windows-msvc/YuzuModDownloader.exe

System.Windows.Forms 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4515.0 built by: NET48REL1LAST_C 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4488.0 built by: NET48REL1LAST_C 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4395.0 built by: NET48REL1LAST_B 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4341.0 built by: NET48REL1LAST_C 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Core 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4515.0 built by: NET48REL1LAST_C 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Xml 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 built by: NET48REL1 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.resources 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 built by: NET48REL1 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_ko_b77a5c561934e089/System.resources.dll

System.IO.Compression.FileSystem 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll

System.IO.Compression 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 built by: NET48REL1 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll

mscorlib.resources 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 built by: NET48REL1 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ko_b77a5c561934e089/mscorlib.resources.dll

System.IO.Compression.resources 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 built by: NET48REL1 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.resources/v4.0_4.0.0.0_ko_b77a5c561934e089/System.IO.Compression.resources.dll

System.Windows.Forms.resources 어셈블리 버전: 4.0.0.0 Win32 버전: 4.8.4161.0 built by: NET48REL1 코드베이스: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ko_b77a5c561934e089/System.Windows.Forms.resources.dll

** JIT 디버깅 ** JIT(Just In Time) 디버깅을 사용하려면 이 응용 프로그램 또는 컴퓨터의 config 파일(machine.config)의 jitDebugging 값을 system.windows.forms 섹션에 설정해야 합니다. 또한 응용 프로그램은 디버깅할 수 있도록 컴파일되어야 합니다.

예:

JIT 디버깅을 사용하면 처리되지 않은 모든 예외는 이 대화 상자에서 처리되지 않고 컴퓨터에 등록된 JIT 디버거에 보내집니다.

`

amakvana commented 2 years ago

Thanks for this @fieldkim , can you also send me the full path from where you run YuzuModDownloader.exe from?

I will look into this as soon as possible and troubleshoot!

amakvana commented 2 years ago

@fieldkim can you also tell me if you have the following directory created?

D:\Emulators\nsw\yuzu\yuzu-windows-msvc\7z

If so, what is inside the directory?

fieldkim commented 2 years ago

Nope. no 7z folder.

fieldkim commented 2 years ago

.......and YuzuModDownloader.exe ran on D:\Emulators\nsw\yuzu\yuzu-windows-msvc directory

amakvana commented 2 years ago

Usually the load folder is populated inside the User folder if Yuzu is set up as a standalone version. Can you take a screenshot of the entire directory structure where yuzu.exe resides? @fieldkim, sorry for the specific questions.

fieldkim commented 2 years ago

image

it won't source of the problem. I changed load folder from default (in user folder) to that (in sub folder), after I got same exception error. (yes. in default setting, i got same exception error)

amakvana commented 2 years ago

@fieldkim I haven't forgotten about this. Thanks for getting back to me! Can you confirm if the following directory exists on your PC. Hold the Windows Key + R down, in the Run prompt, enter the following below:

%appdata%\yuzu

If a folder launches, can you take a screenshot of the entire folder structure for me please

fieldkim commented 2 years ago

image

amakvana commented 2 years ago

@fieldkim thanks! Can you also take a screenshot of the 7z folder and the load folder?

Also within the load folder, can you check if anything has been downloaded into any of the subfolders.

fieldkim commented 2 years ago

image image

fieldkim commented 2 years ago

Oh, after deleting contents in load folder, Exception error gone! huh.

amakvana commented 2 years ago

Can you delete the 7z folder, also delete the contents of the load folder too;. Rerun the application and see if the exception goes away

fieldkim commented 2 years ago

I did, and yes. Exception errors went away.

amakvana commented 2 years ago

Can you just screenshot me the 7z folder again now that the exception errors have gone. Also, can you confirm the mods successfully downloaded for your games?

amakvana commented 2 years ago

@waxp69 try running the following:

  1. Start > Command Prompt
  2. Copy & Paste the commands below into Command Prompt, pressing Enter after typing each one:
    rd /s /q "%appdata%\yuzu\7z"
    rd /s /q "%appdata%\yuzu\load"
    md "%appdata%\yuzu\load"
  3. Rerun YuzuModDownloader and see if the errors persist
fieldkim commented 2 years ago

image And yes. mods are successfully downloaded and could be enabled. thanks.:)

amakvana commented 2 years ago

Thanks for confirming this @fieldkim

@waxp69 are you able to confirm the problem is resolved if you follow the steps in this reply

waxp69 commented 2 years ago

@waxp69 try running the following:

  1. Start > Command Prompt
  2. Copy & Paste the commands below into Command Prompt, pressing Enter after typing each one:
rd /s /q "%appdata%\yuzu\7z"
rd /s /q "%appdata%\yuzu\load"
md "%appdata%\yuzu\load"
  1. Rerun YuzuModDownloader and see if the errors persist

I do not have 7z

amakvana commented 2 years ago

I do not have 7z

Are you able to provide me a couple of things please

Can you also run the program again. When the error pops up, click on the Details button and copy/paste the errors within there into here.

waxp69 commented 2 years ago

yuzu: C:\Users\moham\AppData\Roaming\yuzu Mod downloader: C:\Users\moham\AppData\Local\yuzu\yuzu-windows-msvc yuzu folder yuzu games

amakvana commented 2 years ago

Thanks for that! Can you also show me the path to Mod Load Root, this can be found in yuzu.exe > Emulation > Configure > System > Filesystem.

Also, can you also run the program again. When the error pops up, click on the Details button and copy/paste the errors within there into here.

waxp69 commented 2 years ago

oh wow, it works now for whatever reason

amakvana commented 2 years ago

oh wow, it works now for whatever reason

Okay good! Can you confirm mods are being downloaded? If so, I'll close this

waxp69 commented 2 years ago

they are