Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(un)Pack+BCLIM Error #458

Open
MikeCruzer opened this issue Aug 19, 2020 · 5 comments
Open

(un)Pack+BCLIM Error #458

MikeCruzer opened this issue Aug 19, 2020 · 5 comments

Comments

@MikeCruzer
Copy link

Converting to garc file and then error below occurs. ORAS a/2/1/2. Edited Pokémon Types sprites. Created ROM, and when choosing DexNav, the game freezes.

Exception Details:
System.IO.IOException: Папка не пуста.

в System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
в System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
в System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
в pk3DS.ToolsUI.<>c__DisplayClass10_0.b__0() в d:\a\1\s\pk3DS\Tools\ToolsUI.cs:строка 275
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()

Loaded Assemblies:

mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll

pk3DS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\Admin\Desktop\Переводы игр\Программы\pk3DS\pk3DS.exe

System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll

System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll

System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll

System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll

System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll

System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll

System.Windows.Forms.resources, Version=4.0.0.0, Culture=ru, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\System.Windows.Forms.resources.dll

pk3DS.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
C:\Users\Admin\Desktop\Переводы игр\Программы\pk3DS\pk3DS.Core.dll

Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\Accessibility\v4.0_4.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

mscorlib.resources, Version=4.0.0.0, Culture=ru, PublicKeyToken=b77a5c561934e089
C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_ru_b77a5c561934e089\mscorlib.resources.dll


User Message:
An unhandled exception has occurred.
The program must now close.

@kwsch
Copy link
Owner

kwsch commented Aug 19, 2020

System.IO.IOException: Папка не пуста.

aka

System.IO.IOException: Directory not empty.

This only happens after the GARC packs.

if (CHK_Delete.Checked && Directory.Exists(path))
Directory.Delete(path, true);

I'm assuming you didn't pack the garc with the correct format (for gen6 oras GARC formats)

DialogResult dr = WinFormsUtil.Prompt(MessageBoxButtons.YesNoCancel, "Format Selection:",
                        "Yes: Sun/Moon (Version 6)\nNo: XY/ORAS (Version 4)");

pk3DS might not support repacking language-localized GARCs either; it's been too long for me to remember if that works 100%.

@MikeCruzer
Copy link
Author

I choosed "No: XY/ORAS (Version 4)". Russian text fully working on 3ds & citra

@MikeCruzer
Copy link
Author

nj6EiHO93M0

@kwsch
Copy link
Owner

kwsch commented Aug 19, 2020

The text file localizations are separate GARCs; the localized pictures (like type sprites) are all mashed into a single GARC file that can load based on different languages.

The game panicked because that GARC wasn't packed as required. Assuming you've kept the same file&folder structure (no bak files / etc), things should pack correctly -- the logic in GARC.cs should be handling the localizeable-folder vector packing correctly (since the title screen edits are possible, I think).

@MikeCruzer
Copy link
Author

MikeCruzer commented Aug 19, 2020

I am using pk3ds in English. I tried to unpack and assemble the original GARC(a/2/1/2) file - the error text is identical.
UPD: i packed ROM file with this English original garc (which I unpacked and packed) and game freezed when i choose DexNav.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants