Homebrew [WIP]PCHex++ - PCHex with its own gui

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Is it on 4dsdev? gbatemp? IRC? I am seriously interested in the algorithm too ^-^

There is some documentation spread around the web if you're interested in how to do it, mainly on 3dbrew.

You need to open a particular archive to access the save filesystem: https://3dbrew.org/wiki/Filesystem_services#ArchiveId
(watch for the archiveid 0x567890B1 for gamecard access and for 0x567890B2 for the digital copy access)

here you can find some other informations on how to open that archive: https://3dbrew.org/wiki/Filesystem_services#UserSaveDataForCheck_Archive_Path_Data_Format (i know, is not much)

Once you opened the archive correctly accessing the savefile is the same as accessing every other file on the 3ds filesystem.

some other informations are in the fs.h header of ctrulib.

Of course opening these save archives requires some permissions which are unobtainable in userland.
 
Last edited by Slashcash,
  • Like
Reactions: AileenLumina

Guantanamo

Active Member
Newcomer
Joined
Nov 7, 2010
Messages
41
Trophies
0
Age
41
Location
Morocco
XP
308
Country
Macau
I didn't read jk's source code yet but i'm quite aware of how he did it. The informations are shared behind the scene B-). In all honesty i've just been a little busy and that's the reason why the update is taking its time, but a cia version is definitely in the plan, now more than ever

Take your time bro, at this point, you already done a good work, so, we are expecting better :P
 

Maq47

Lord of Pyro
Member
Joined
Jan 7, 2012
Messages
1,242
Trophies
1
Location
Your basement
Website
idont.have.one
XP
3,290
Country
United States
Do I need to name my .pk6 files that I want to import something specific? I manually created the sdmc:/pk/PCHex++/import folder, then copied the .pk6 file to the import folder, but PCHex++ isn't picking it up. I opened the save, pressed R until I found an empty Box, then pressed Y over an empty slot. I'm trying to import the new GameStop Mew event found here. Am I doing something wrong? Is the Mew I have a 'party only' .pk6 file (incorrect file size), and that is why it isn't being imported? I forget what file size constitutes a 'party' .pk6, anyway. Also, I'm trying to import it into Alpha Sapphire (USA), if that matters.
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Do I need to name my .pk6 files that I want to import something specific? I manually created the sdmc:/pk/PCHex++/import folder, then copied the .pk6 file to the import folder, but PCHex++ isn't picking it up. I opened the save, pressed R until I found an empty Box, then pressed Y over an empty slot. I'm trying to import the new GameStop Mew event found here. Am I doing something wrong? Is the Mew I have a 'party only' .pk6 file (incorrect file size), and that is why it isn't being imported? I forget what file size constitutes a 'party' .pk6, anyway. Also, I'm trying to import it into Alpha Sapphire (USA), if that matters.

PCHex++ import function should work with 260bytes .pk6 (the party pokemon version) and 232 byte .pk6 (the box pokemon)
That file you linked is a .wc6 file, i programmed the import menu to only show .pk6 files (for security reasons, i don't want anyone to inject random files in the save, it would corrupt it) so it finds the file in the folder but it doesn't show it.

I have never heard of this .wc6 files (264 bytes long) if someone has some info about this files i will likely support them
(you could change the extension of the file to .pk6, PCHex++ should list it in the import menu but importing it will likely result in an array out of bound and an instant crash, if you have a backup of the savefile and feel brave you could try anyway, NO, DON'T DO THIS)
 
Last edited by Slashcash,

Deleted member 373223

Pink = Best colour
Member
Joined
Oct 8, 2015
Messages
4,099
Trophies
1
XP
2,790
PCHex++ import function should work with 260bytes .pk6 (the party pokemon version) and 232 byte .pk6 (the box pokemon)
That file you linked is a .wc6 file, i programmed the import menu to only show .pk6 files (for security reasons, i don't want anyone to inject random files in the save, it would corrupt it) so it finds the file in the folder but it doesn't show it.

I have never heard of this .wk6 files (264 bytes long) if someone has some info about this files i will likely support them
(you could change the extension of the file to .pk6, PCHex++ should list it in the import menu but importing it will likely result in an array out of bound and an instant crash, if you have a backup of the savefile and feel brave you could try anyway)
wc6 are the wondercards files.
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
(you could change the extension of the file to .pk6, PCHex++ should list it in the import menu but importing it will likely result in an array out of bound and an instant crash, if you have a backup of the savefile and feel brave you could try anyway)

No, don't do that. I stripped down the last 4 bytes and tried to import it and it failed miserably. The wondercards file likely have a whole different structure and currently won't work with PCHex++. You should find a .pk6 file of the same event pokemon. (If someone has any reliable documentation about this file structure i will likely try to implement it)
 

Deleted member 373223

Pink = Best colour
Member
Joined
Oct 8, 2015
Messages
4,099
Trophies
1
XP
2,790
No, don't do that. I stripped down the last 4 bytes and tried to import it and it failed miserably. The wondercards file likely have a whole different structure and currently won't work with PCHex++. You should find a .pk6 file of the same event pokemon. (If someone has any reliable documentation about this file structure i will likely try to implement it)
Well, pkhex is open source? Because it can import them.
 

joimme

Well-Known Member
Newcomer
Joined
Jan 14, 2016
Messages
78
Trophies
0
Age
28
XP
100
Country
I would also want to see wc6 support since they're easier to find online. (In my experience, anyway)
 

t_hag

New Member
Newbie
Joined
Feb 8, 2016
Messages
1
Trophies
0
Age
30
XP
51
Country
United States
Do I need to name my .pk6 files that I want to import something specific? I manually created the sdmc:/pk/PCHex++/import folder, then copied the .pk6 file to the import folder, but PCHex++ isn't picking it up. I opened the save, pressed R until I found an empty Box, then pressed Y over an empty slot. I'm trying to import the new GameStop Mew event found here. Am I doing something wrong? Is the Mew I have a 'party only' .pk6 file (incorrect file size), and that is why it isn't being imported? I forget what file size constitutes a 'party' .pk6, anyway. Also, I'm trying to import it into Alpha Sapphire (USA), if that matters.

Just fyi, until PCHex++ potentially supports .wc6 files, I was in the same boat and just opened the .wc6 file in PkHex and saved it as a .pk6 file. It works, it's the proper 260 bytes.
 

Slashcash

Well-Known Member
OP
Member
Joined
Oct 15, 2015
Messages
338
Trophies
0
XP
611
Country
Italy
Anyone working on a .cia?

The cia is being worked on among a lot of other things. Don't hold your breath as i am being quite busy and it will require something along a week/ten days to be completed.

If someone feels brave, well...the github is in the first post and i even posted some documentation on how to access savefile from a .cia a page ago
 

joimme

Well-Known Member
Newcomer
Joined
Jan 14, 2016
Messages
78
Trophies
0
Age
28
XP
100
Country
The cia is being worked on among a lot of other things. Don't hold your breath as i am being quite busy and it will require something along a week/ten days to be completed.

If someone feels brave, well...the github is in the first post and i even posted some documentation on how to access savefile from a .cia a page ago
I would really like to help, I'm an experienced developer but I have no idea where to start developing for 3DS. Can you suggest some resources?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Xdqwerty @ Xdqwerty: yawn