ROM Hack Question Decrypting/Decompressing Switch Saves & Files

SupImBirDy

Member
OP
Newcomer
Joined
Aug 24, 2018
Messages
24
Trophies
0
Age
32
XP
274
Country
United States
Hey everyone so I was just wondering if anyone has had any tutorials, books, or forums laying around with information about reverse engineering switch files... you know to find magic numbers to decompress and decrypt game files to modify and repack. I'm not new to this, just spreading my horizons. I looked into quickbms, but all the tutorials for making scripts for it didnt make any sense so I scrapped that idea. Any help would be appreciated!
 

SupImBirDy

Member
OP
Newcomer
Joined
Aug 24, 2018
Messages
24
Trophies
0
Age
32
XP
274
Country
United States
Well I'm not this new my friend. I'm running atmosphere and reinx on 8.0. I already dumped some games using nxdumper to get the encrypted files off the rom. Some are accessible, some aren't. So I want to access the ones I cant.
 

SupImBirDy

Member
OP
Newcomer
Joined
Aug 24, 2018
Messages
24
Trophies
0
Age
32
XP
274
Country
United States
I thought i was pretty specific with what I wanted to know. I know what I am doing to an extent. I was asking for a tutorial or guidance on finding file magic numbers and headers for the switch so i can access files that are encrypted and view the content inside. I dont want to be game specific because then its not a challenge for me with someone just doing it for me. If someone were to show me how with another game id like that.
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,074
Country
Poland
I thought i was pretty specific with what I wanted to know. I know what I am doing to an extent. I was asking for a tutorial or guidance on finding file magic numbers and headers for the switch so i can access files that are encrypted and view the content inside. I dont want to be game specific because then its not a challenge for me with someone just doing it for me. If someone were to show me how with another game id like that.
But you know each engine is using different compression, different way for size table, name table, offset table, serializing, etc? If quickbms is too hard for you, then I don't know what you expect. Even quickbms author is not a god and couldn't figure out f.e. vpp_nx64 in Saints Row 3 for Switch. This is like asking how to repair car engine without knowing where to start. F.e. for me one of the hardest parts is finding compression method, because almost none of them are using headers (I'm aware only of zstd and zlib), you need to learn on many files how each compression looks like (Oodle has very easy to recognize data).
Look at quickbms scripts for games like Astral Chain, Xenoblade 2, etc. and learn from it. If you want to go more deeper, you need to learn Python, how to write scripts and implement compression libraries.
 
Last edited by masagrator,
  • Like
Reactions: SupImBirDy

SupImBirDy

Member
OP
Newcomer
Joined
Aug 24, 2018
Messages
24
Trophies
0
Age
32
XP
274
Country
United States
But you know each engine is using different compression, different way for size table, name table, offset table, serializing, etc? If quickbms is too hard for you, then I don't know what you expect. Even quickbms author is not a god and couldn't figure out f.e. vpp_nx64 in Saints Row 3 for Switch. This is like asking how to repair car engine without knowing where to start. F.e. for me one of the hardest parts is finding compression method, because almost none of them are using headers (I'm aware only of zstd and zlib), you need to learn on many files how each compression looks like (Oodle has very easy to recognize data).
Look at quickbms scripts for games like Astral Chain, Xenoblade 2, etc. and learn from it. If you want to go more deeper, you need to learn Python, how to write scripts and implement compression libraries.
I can write in C,C++, python, C#, Java so im good there. I know to check the game engines, for what format the coding is in (big indian, little indian etc), but its not that QuickBMS is hard, the only info out on it or any tutorial on it that has educational value is out of date and the pictures applied arent even available anymore so it sucks. But good idea to look at some programs that do what i am looking to learn. I appreciate you taking time out of your day to explain. Like i said i some what know what im doing but some things i need to learn
 
Last edited by SupImBirDy,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2
  • BakerMan
    I rather enjoy a life of taking it easy. I haven't reached that life yet though.
  • Veho @ Veho:
    Do you dangle a baggie in front of them, like a carrot?
    +1
  • The Real Jdbye @ The Real Jdbye:
    they're the same thing
    +1
  • The Real Jdbye @ The Real Jdbye:
    i like that idea
    +1
  • Veho @ Veho:
    What's the same thing?
    +1
  • The Real Jdbye @ The Real Jdbye:
    before or after a hit
    +1
  • Veho @ Veho:
    Nah, a hit gives them mad meth powers, but makes them more difficult to control.
    +1
  • Veho @ Veho:
    Before a hit they're like zombies, persistent but slow.
    +1
  • Veho @ Veho:
    It's a tradeoff.
    +1
  • The Real Jdbye @ The Real Jdbye:
    no i mean, before a hit is after the previous hit
    +1
  • The Real Jdbye @ The Real Jdbye:
    if you keep them well enough fed, it's the same thing
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    By the power of Florida Man, I have the power!!! *Lifts up meth pipe* Meth Man!!! lol
  • BakerMan @ BakerMan:
    Guys, I just learned my little brother is in the hospital because he had a seizure last night.
  • cearp @ cearp:
    Sorry to hear that BakerMan
    +2
  • BakerMan @ BakerMan:
    Just found out he's doing alright, doing a lot of complaining too, rightfully so. Who wouldn't complain after having a seizure and being hospitalized?
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Glad he is OK and complaining is cool :)
    +1
  • K3Nv2 @ K3Nv2:
    Yeah been there had that no fun
    +1
  • K3Nv2 @ K3Nv2:
    They'll give him sleep studies eegs and possibly one week hospital stay
    +1
  • BakerMan @ BakerMan:
    I hope it's not a week.
  • K3Nv2 @ K3Nv2:
    It's standard so doctors can get a idea about what's going on
  • BakerMan @ BakerMan:
    understood
  • BakerMan @ BakerMan:
    well, i'm glad he seems to be doing fine, and ig i'm going to start spewing goofy shit again
  • BakerMan @ BakerMan:
    Update: Turns out he's epileptic
  • K3Nv2 @ K3Nv2:
    Get a 2nd opinion run mris etc they told me that also
    K3Nv2 @ K3Nv2: Get a 2nd opinion run mris etc they told me that also