kwsch / pk3DS

Pokémon (3DS) ROM Editor & Randomizer
https://projectpokemon.org/forums/forums/topic/34377-pk3ds-xyoras-rom-editor-randomizer/
Other
404 stars 150 forks source link

pk3ds incorrectly throwing "Folder does not contain an 'a' folder in the top level" on ext4 filesystems #511

Open ImperatorStorm opened 2 years ago

ImperatorStorm commented 2 years ago

pk3ds is incorrectly throwing "Folder does not contain an 'a' folder in the top level" despite the dump folder meeting requirements. running via mono

$ tree -a .

kwsch commented 2 years ago

The program also checks the count of files in the folders; are you sure you have dumped all the files for the game you are trying to load?

ImperatorStorm commented 2 years ago

Assuming https://github.com/Asia81/HackingToolkit9DS-Deprecated- worked correctly, yes.

kwsch commented 2 years ago

Valid file counts within the a* folders: https://github.com/kwsch/pk3DS/blob/94f23bb1c345b9557a12cc17948f87f6e661f48c/pk3DS.Core/Game/GameConfig.cs#L12-L17

ImperatorStorm commented 2 years ago

i've got exactly 299 files in a

kwsch commented 2 years ago

Here's the logic that checks for the existence of the a folder:

https://github.com/kwsch/pk3DS/blob/dfdbce758fbb3526fa7cfdadf0f2a17b4630bd44/pk3DS/Main.cs#L504-L528

Not sure what all you have in there, but it's expecting the first directory in the folder to be called a exactly. If there's two, then it checks the second (order unk)

ImperatorStorm commented 2 years ago

first folder is indeed exactly a.

ImperatorStorm commented 2 years ago

Retrying on Windows worked perfectly, somehow I'm gonna guess pk3DS doesn't like ext4 filesystems for some wierd reason