ROM Hack MH4U DLC and savefile encryption

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
I've been working on the encryption for Monster Hunter games for a long time (since Monster Hunter Portable 2nd G).
I haven't really spread my code around much but it's always been available on my github and I feel like more people might be interested in it now.

Here's my repo dealing with the encryption:
https://github.com/svanheulen/mhef

It's has code for decrypting/encrypting DLC and saves from Monster Hunter 4 Ultimate and all the the Monster Hunter games from the PSP.


Here's my repo for code dealing with the various file formats:
https://github.com/svanheulen/mhff

The code there is all experimental and not very user friendly but the wiki in that repo has information about the MH4U quest file format which would help you make custom quests.


Here's my repo for a proxy server for hosting DLC quests:
https://github.com/svanheulen/mhqs/tree/dev

The mh4u_proxy.py file is the one for MH4U but it's not user friendly, and you need Twisted. I'll be working on improving it so it's easier for anyone to use. Edit: I made this script much easier to use, please view the README for details.

All my code it's licensed under GPLv3. I would love for people to extend my code, make it better, and contribute. Pull requests are always welcome and I'm often available to chat on freenode using the nick svanheulen.
 
Last edited by moghedien,

SaagiBols

The AnalSavior
Member
Joined
Jan 29, 2015
Messages
319
Trophies
0
Age
31
Location
Here, There, and Everywhere!..
XP
262
Country
Serbia, Republic of
hope some1 will finally make an easy2use mh4u save decrypt/encrypt tool with this:)
...but until that happens could some1 be kind enough to post the specific commands i need to input with n3ds.py to decrypt and then encrypt the save????
 
Last edited by SaagiBols,

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
hope some1 will finally make an easy2use mh4u save decrypt/encrypt tool with this:)
...but until that happens could some1 be kind enough to post the specific commands i need to input with n3ds.py to decrypt and then encrypt the save????
First install the module then use the example script (examples/n3ds/savedata.py)
 

SaagiBols

The AnalSavior
Member
Joined
Jan 29, 2015
Messages
319
Trophies
0
Age
31
Location
Here, There, and Everywhere!..
XP
262
Country
Serbia, Republic of
First install the module then use the example script (examples/n3ds/savedata.py)
c =SavedataCipher(MH4G_EU)

c.decrypt_file('filename.crypted','filename.decrypted')

c.encrypt_file('filename.decrypted', 'filename.crypted')

the 2.x python plus 2.x pycrypto give errors, but it works fine with 3.4 python+ pycrypto for 3.4 that i found on some random github repo...
THANKS ALOT 4 THIS TOOL:>
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
What would I use to read the decrypted file?
Any hex editor. They're binary files, and not easy to edit manually. If you're not a developer it would probably be best to wait until a proper quest editor gets released.
I'm working on making the encryption/decryption and proxy more user friendly first, after that I'll start working on an editor (assuming no one else has made one by then).
 

ness151

Well-Known Member
Member
Joined
Jun 2, 2008
Messages
443
Trophies
1
Location
D:\virus.exe
XP
993
Country
United States
Any hex editor. They're binary files, and not easy to edit manually. If you're not a developer it would probably be best to wait until a proper quest editor gets released.
I'm working on making the encryption/decryption and proxy more user friendly first, after that I'll start working on an editor (assuming no one else has made one by then).

I remember someone attempting a save editor for 4U awhile back, saying that everything was in plaintext.. I can't wait for an much easier solution though. Thank you for the tools.
 

AzuraLove

Well-Known Member
Newcomer
Joined
Jul 6, 2015
Messages
65
Trophies
0
Age
35
XP
113
Country
Indonesia
this are very usefull tolls ...
can some one, write down step by step for decrypting save file user1 with this tolls ?
i'm start phyton then install setup.py.. then next i'm completely confuse :v ...
so please some body, share your kindness knowledge ..... :D
 

AzuraLove

Well-Known Member
Newcomer
Joined
Jul 6, 2015
Messages
65
Trophies
0
Age
35
XP
113
Country
Indonesia
the decryption work nice.. thanks moghedien...
but, after i decrypt save file then i encrypt it (with or without editing)..
importing use encrypted save to the game always fail...
 

Death78793

What is this, a first person shooter?
Member
Joined
Jan 16, 2015
Messages
251
Trophies
0
Age
28
XP
379
Country
It's sad to see so many people making a fuss about this :glare:
There's little to no people making "wrong" (to a pro hunter) use of this, and those who are, they're not really showing off or making any kind of detrimental comments against people who do play. Heck, I've invested a lot in my game and I did use one of those custom DLC quests to raise my HR a bit on a secondary profile I use for training. Keep in mind, I have played many hours and I've done pretty much everything up to this point on my main profile. I wish I could make one for the event tickets, since it's hard to get by 30+ quests to get everything I need for a set that I might not even use at all. Cheers to you guys for making an awesome tool, and I guess I better enjoy the few days I have before capcom either decides to go on a banning spree or patching everything up so it no longer works.
/rant
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
the decryption work nice.. thanks moghedien...
but, after i decrypt save file then i encrypt it (with or without editing)..
importing use encrypted save to the game always fail...
Sorry, I'll look into that.

It's sad to see so many people making a fuss about this :glare:
There's little to no people making "wrong" (to a pro hunter) use of this, and those who are, they're not really showing off or making any kind of detrimental comments against people who do play. Heck, I've invested a lot in my game and I did use one of those custom DLC quests to raise my HR a bit on a secondary profile I use for training. Keep in mind, I have played many hours and I've done pretty much everything up to this point on my main profile. I wish I could make one for the event tickets, since it's hard to get by 30+ quests to get everything I need for a set that I might not even use at all. Cheers to you guys for making an awesome tool, and I guess I better enjoy the few days I have before capcom either decides to go on a banning spree or patching everything up so it no longer works.
/rant
Meh, It doesn't bother me :) I've been doing this for every MH game since Freedom 1 and I've always released my code, and I'll probably do the same for MHX :)
 

AzuraLove

Well-Known Member
Newcomer
Joined
Jul 6, 2015
Messages
65
Trophies
0
Age
35
XP
113
Country
Indonesia
Sorry, I'll look into that.

progress that i do :
- game to savedatafiler to get user1 ..
- decrypt user1 with mhef ..
- open hex editor ..
- (sees my char name no editing)
- encript user1 with mhef
- put it to savedatafiler for import save ...
- error can not import the decrypted user1 file..

fyi i'm using GW and use switching 0004000000126300.sav <=> 000400000FF40A00.sav methode
python 3.4.3 and pycrypto 2.6.1 for 3.4 python , this i use

sorry for bothering you master ... :D
 

Death78793

What is this, a first person shooter?
Member
Joined
Jan 16, 2015
Messages
251
Trophies
0
Age
28
XP
379
Country
Meh, It doesn't bother me :) I've been doing this for every MH game since Freedom 1 and I've always released my code, and I'll probably do the same for MHX :)
Thanks for the work :)
Also forgot to add in that I've been straining the python scripts to find any bugs but everything's fine on my end (only once or twice have I gotten an error and it's been my fault, not the script's) :P
 

moghedien

Well-Known Member
OP
Member
Joined
Mar 9, 2015
Messages
411
Trophies
0
XP
317
Country
United States
progress that i do :
- game to savedatafiler to get user1 ..
- decrypt user1 with mhef ..
- open hex editor ..
- (sees my char name no editing)
- encript user1 with mhef
- put it to savedatafiler for import save ...
- error can not import the decrypted user1 file..

fyi i'm using GW and use switching 0004000000126300.sav <=> 000400000FF40A00.sav methode
python 3.4.3 and pycrypto 2.6.1 for 3.4 python , this i use

sorry for bothering you master ... :D

Hmm, I just tried it on mine and it worked fine (I even changed my character's name). I just used Pasta to run SaveDataFiler. I don't have a GW so I'm not sure what that switching method is.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87...