Homebrew Official [Download] Decrypt9 - Open Source Decryption Tools (WIP)

  • Thread starter d0k3
  • Start date
  • Views 840,715
  • Replies 4,476
  • Likes 71

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
@d0k3 I have a question about gba save injects. I noticed that when i dump saves from system is only 32kb file size, i usually dump them to to use in emulators to play on my tv. But when i save the game it seem to store the data in a large 64kb file size. Just by examination in hex editor, it adds extra garbage data. (nothing but FF) at the end of the data. So i realize i have to delete the extra data to restore the 32kb file size to make hourglass... decrypt 9 recognize it again to inject it back.

Is there some way to add a auto patcher or trimmer to the homebrew to make injections from emulator saves easier? The problem is it won't recognize it if the file size isn't the same exact one as the dumped file so i had to manual trim every time i do the transfer.
 

Asia81

Yuri Lover ~
Member
Joined
Nov 15, 2014
Messages
6,661
Trophies
3
Age
29
XP
3,525
Country
France
Can Decrypt9 decrypt splitted 4GB roms, like PokemonSun.3d0 (P1) and PokémonSun.3d1 (P2) ?
If yes, then can we just merge both 3d0 and 3d1 files and have a fully decrypted .3ds?
Because if not, we will have to trim the rom, decrypt it, and un-trim it, and I guess this can corrupt the rom, right?
 

d0k3

3DS Homebrew Legend
OP
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
@d0k3 I have a question about gba save injects. I noticed that when i dump saves from system is only 32kb file size, i usually dump them to to use in emulators to play on my tv. But when i save the game it seem to store the data in a large 64kb file size. Just by examination in hex editor, it adds extra garbage data. (nothing but FF) at the end of the data. So i realize i have to delete the extra data to restore the 32kb file size to make hourglass... decrypt 9 recognize it again to inject it back.

Is there some way to add a auto patcher or trimmer to the homebrew to make injections from emulator saves easier? The problem is it won't recognize it if the file size isn't the same exact one as the dumped file so i had to manual trim every time i do the transfer.
Try this test build:
https://transfer.sh/OcCXd/decrypt9wip-20161126-111022.zip

Can Decrypt9 decrypt splitted 4GB roms, like PokemonSun.3d0 (P1) and PokémonSun.3d1 (P2) ?
If yes, then can we just merge both 3d0 and 3d1 files and have a fully decrypted .3ds?
Because if not, we will have to trim the rom, decrypt it, and un-trim it, and I guess this can corrupt the rom, right?
Duh. Use Decrypt9 to dump roms, not GW. Now, you have to (1) remove the last byte of the .3d1 file, (2) merge the two files together, then decrypt. Would have been easier if D9 would have done that in one step, right? And no, if you do everything right there is no chance for corruption.
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
I tried the download link and it worked. Just like i said, dumps are usually smaller size than what emulators like visualboy advance use, loading the save in emulator doubles size. After the enhanced size i loaded back into decrypt9 and injected, no problems. :)

Think you can add this feature to hourglass9 as well? Also I will have to try the other save format, i noticed visualboy advance has option for 64k and 128k file size save data. Not sure why but if anyone know a game that requires that setup, let me know so i can test dump/injection please?:unsure:
 
Last edited by Sonic Angel Knight,

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
Well, for example, lets take Mario 4 Advance.
1. Start Mario 4
2. Leave it and start D9
3. Dump the Gba save.
4. Look at the size it is, lets call it Needed Size. In this example, it might be 16 kb
5. Compare it with the size of your save. Its 32 kb
6. Use a gba savetrimmer if it is different (https://xerodotc.wordpress.com/2012/06/11/visualboyadvance-sav-file-trimmer/)
7. If asked what size you wish your save to be, use the Needed size (so in this case, put 16 kb into it)
8. rename it and inject it

I experience some ERROR on trimming the save file...
i have pokemon emerald save data which is 128 in size...
i used the trimmer, and the size of the file bacame 64...
everyting is working but i noticed 1 thing...
when i access hall of fame, it tells that the "hall of fame data is corrupted)"
i beat the elite 4 again, the latest team that i used, registers on the hall of fame but all the older hall of famer pokemon are not in the list anymore...
so is there any workaround about this issue? thanks and have a nice day...
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
I experience some ERROR on trimming the save file...
i have pokemon emerald save data which is 128 in size...
i used the trimmer, and the size of the file bacame 64...
everyting is working but i noticed 1 thing...
when i access hall of fame, it tells that the "hall of fame data is corrupted)"
i beat the elite 4 again, the latest team that i used, registers on the hall of fame but all the older hall of famer pokemon are not in the list anymore...
so is there any workaround about this issue? thanks and have a nice day...
Did you try using the Decrypt9 build in d0k3 recent post? I used that to inject my save data and it work with no problem.

Before i had to manual fix it by using hex editor to erase the extra data to get file size back to normal.
 

Durig

OMGWTFBBQ
Member
Joined
Jul 27, 2015
Messages
230
Trophies
0
Age
33
XP
338
Country
Bolivia
is it normal if my nandmin.bin is corrupted all the time and simple nand.bin is fine?
just got nandmin.bin before dsiware downgrade and nandmin.bin after dsiware downgrade (source 3ds of course)
and no matter what validator keep saying they are both corrupt,
however nand.bin after dsiware downgrade is fine.
Can i force-restore my nandmin anyway and will i lost my al9h after?
 
Last edited by Durig,

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
is it normal if my nandmin.bin is corrupted all the time and simple nand.bin is fine?
just got nandmin.bin before dsiware downgrade and nandmin.bin after dsiware downgrade (source 3ds of course)
and no matter what validator keep saying they are both corrupt,
however nand.bin after dsiware downgrade is fine.
Can i force-restore my nandmin anyway and will i lost my al9h after?
I think is supposed to be that way if you have a9lh installed. It is using a system flaw exploit to work you know. ^_^
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
thanks for respond ( read something similair long ago )
but what about last two questions?
Last two questions? Well if you dump a nand from when the a9lh is installed then all dumps will probably have that error. Also i think if you do inject nand dumps to system, it should give a option to keep a9lh IF the nand dump doesn't have it installed. Maybe d0k3 can answer this better since is his homebrew after all. You really should be using Hourglass9 if you worry about saftey since is the simple version unlike decrypt9 which has more advance options that may be unnecessary to just basic consumer user.:ninja:
 

Durig

OMGWTFBBQ
Member
Joined
Jul 27, 2015
Messages
230
Trophies
0
Age
33
XP
338
Country
Bolivia
Last two questions? Well if you dump a nand from when the a9lh is installed then all dumps will probably have that error. Also i think if you do inject nand dumps to system, it should give a option to keep a9lh IF the nand dump doesn't have it installed. Maybe d0k3 can answer this better since is his homebrew after all. You really should be using Hourglass9 if you worry about saftey since is the simple version unlike decrypt9 which has more advance options that may be unnecessary to just basic consumer user.:ninja:


erm, if you dont know answer for the question (not this case, just if you dont know what you talking about) can you please not?
this is common sense, no?
not trying to be rude, but shitposting is serious dicease, just like cancer
 

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
Did you try using the Decrypt9 build in d0k3 recent post? I used that to inject my save data and it work with no problem.

Before i had to manual fix it by using hex editor to erase the extra data to get file size back to normal.
yup i used that but i think decrypt9 is not the problem,
even on vba emulator (not yet injected the save to VC), after i change the save file to 64kb, hall of fame is corrupted...

so your experience is you also have a 128kb vba save file? then you convert it to 64kb, then you inject it to vc... still your hall of fame intact?
can you make a step by step on how did you do it if you have free time, i might miss something... thanks...
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
yup i used that but i think decrypt9 is not the problem,
even on vba emulator (not yet injected the save to VC), after i change the save file to 64kb, hall of fame is corrupted...

so your experience is you also have a 128kb vba save file? then you convert it to 64kb, then you inject it to vc... still your hall of fame intact?
can you make a step by step on how did you do it if you have free time, i might miss something... thanks...
Are you talking about a pokemon game? Sorry i wouldn't know about it. I didn't use any save injection for that. I only used save injection for Breath of Fire cia game i made. Perhaps your save data is fragmented by corruption during your trimming. I only used a hex editor to remove the extra junk data the emulators add when using my dumped save file from BOF from 3DS to VBA.

VC game i play seem to dump data of 32KB when loading that save data into a emulator it doubles the size to 64KB for some reason. It just added a bunch of junk data to the end of the file. (Comparing the VC save to emu save in hex editor it adds constant "FF FF FF FF FF" at the end of the file.) So i just removed it from the file until it matches the VC file size to inject.

The build D0k3 put up a few days ago just allows you to inject emu saves without needing to modify anything. The current versions of decrypt9 and hourglass does not recognize any files that isn't the proper size compared to the dump file.
 

noctis90210

Well-Known Member
Member
Joined
Dec 24, 2013
Messages
969
Trophies
0
Age
37
XP
1,635
Country
Are you talking about a pokemon game? Sorry i wouldn't know about it. I didn't use any save injection for that. I only used save injection for Breath of Fire cia game i made. Perhaps your save data is fragmented by corruption during your trimming. I only used a hex editor to remove the extra junk data the emulators add when using my dumped save file from BOF from 3DS to VBA.

VC game i play seem to dump data of 32KB when loading that save data into a emulator it doubles the size to 64KB for some reason. It just added a bunch of junk data to the end of the file. (Comparing the VC save to emu save in hex editor it adds constant "FF FF FF FF FF" at the end of the file.) So i just removed it from the file until it matches the VC file size to inject.

The build D0k3 put up a few days ago just allows you to inject emu saves without needing to modify anything. The current versions of decrypt9 and hourglass does not recognize any files that isn't the proper size compared to the dump file.
i tried to manually trim the save into half using hex editor... but same result happens... :-(
so the newer d9 doesnt look if the file is larger than whst it needs? so even i have 128kb save on sd, decrypt9 will detect and inject it?
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
i tried to manually trim the save into half using hex editor... but same result happens... :-(
so the newer d9 doesnt look if the file is larger than whst it needs? so even i have 128kb save on sd, decrypt9 will detect and inject it?
Did you try injecting a unmodified save data in the decrypt9? Make sure you using the one in d0k3 post from few days ago.
 

Sonic Angel Knight

Well-Known Member
Member
Joined
May 27, 2016
Messages
14,406
Trophies
1
Location
New York
XP
12,971
Country
United States
i tried what u said, indeed it allow injection, but when i played the game... still received hall of fame corruption on pokemon center pc...
Then obviously something is wrong with the save data, and VC injection has nothing to do with it. Is just the data is corrupt i guesss. Sorry i'm not much help.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Materia_tofu @ Materia_tofu:
    im not a very bright individual, but we live and we learn
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
    The Real Jdbye @ The Real Jdbye: you can report it and request deletion