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,256
Trophies
1
Location
Your basement
Website
idont.have.one
XP
3,318
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
  • BigOnYa @ BigOnYa:
    So a man, wifey laying in bed, and man wants sum and rubs on her a little, she turns and says "Not tonight, I have a gyno apt in the morning." So man rolls over, but after few minutes starts rubbing her again. She says didn't you here me, no messing around, I have a gyno apt tomorrow. " Man says, "Well you don't have a dentist apt tomorrow also do you?"
  • BigOnYa @ BigOnYa:
    Damn I have 8 modded rgh3 x360 slims I've done, I need to get rid of, I figured my family members or friends would want but times have changed. Think I'm gonna stop buying them and modding. Time to Switch it up (pun intended)
  • K3Nv2 @ K3Nv2:
    Yay power outages
  • K3Nv2 @ K3Nv2:
    @BigOnYa, I'm your friend
    +1
  • BigOnYa @ BigOnYa:
    There literally no storms in your area, does it go out alot? You need to just send me your slim n ill rgh3 it free.
  • BigOnYa @ BigOnYa:
    Or grow sum balls and do it yourself, not hard. More of a pain to jailbreak a ps4 than it is the 360, other than little soldering.
  • K3Nv2 @ K3Nv2:
    Problem is my dick gets in the way
  • BigOnYa @ BigOnYa:
    Yea true, would be a pain having that on your forehead
  • K3Nv2 @ K3Nv2:
    The chicks love it
    +1
  • K3Nv2 @ K3Nv2:
    Every damn time there's a loud noise dudes car alarm goes off freaking annoying
  • BigOnYa @ BigOnYa:
    Stun gun the metal of the car (door, bumper, etc), you won't hear it again, promise.
  • realtimesave @ realtimesave:
    damn accidentally ripped my car cover just now
  • realtimesave @ realtimesave:
    happens
  • K3Nv2 @ K3Nv2:
    Or plant drugs get him evicted
  • realtimesave @ realtimesave:
    the one on my other car is all ripped up
  • K3Nv2 @ K3Nv2:
    Not your $400 car cover :ohnoes:
  • BigOnYa @ BigOnYa:
    There you go, thinking with your "dickhead"
  • realtimesave @ realtimesave:
    some day the wind will blow so hard it'll rip in half
  • K3Nv2 @ K3Nv2:
    I think in big inches
    +1
  • BigOnYa @ BigOnYa:
    @realtimesave Can you sew it back together? Or is it not worth trying.
  • realtimesave @ realtimesave:
    nah sewing it will make it come apart more :)
  • realtimesave @ realtimesave:
    that one is pretty old
  • realtimesave @ realtimesave:
    the one on my mercedes is a couple years old. these things don't last very long at all
    realtimesave @ realtimesave: the one on my mercedes is a couple years old. these things don't last very long at all