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
    K3Nv2 @ K3Nv2: This movie rip so werid has 1080p quality but the audios ripped with movie theater audio quality