pk3DS icon indicating copy to clipboard operation
pk3DS copied to clipboard

(un)Pack+BCLIM Error

Open MikeCruzer opened this issue 5 years ago • 5 comments

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.<SaveARC>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.

MikeCruzer avatar Aug 19 '20 18:08 MikeCruzer

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

aka

System.IO.IOException: Directory not empty.

This only happens after the GARC packs.

https://github.com/kwsch/pk3DS/blob/f7646eec860840fd85f4f404178c6111f2705a94/pk3DS/Tools/ToolsUI.cs#L272-L273

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%.

kwsch avatar Aug 19 '20 20:08 kwsch

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

MikeCruzer avatar Aug 19 '20 20:08 MikeCruzer

nj6EiHO93M0

MikeCruzer avatar Aug 19 '20 20:08 MikeCruzer

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).

kwsch avatar Aug 19 '20 21:08 kwsch

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.

MikeCruzer avatar Aug 19 '20 21:08 MikeCruzer