ROM Hack Is there a way to edit MH4G Save Data?

anthony001

Well-Known Member
OP
Member
Joined
Oct 19, 2007
Messages
461
Trophies
1
XP
1,462
Country
Im using gateway to play the game so the save file is in the root of 3ds SD card. Do I need to decrypt it? also the save file is in number. is it possible to know which of that is the monster hunter save file?

Im not using cia im using the .3ds extension
 

didix16

Well-Known Member
Newcomer
Joined
Jan 23, 2015
Messages
82
Trophies
0
Age
31
XP
224
Country
For the moment is not possible. I'm trying to understand how this save file works but its too hard to understand (almost for me). The save file has (minimum) 2 files: userX and system.

The userX is the user X data like money, items, weapons, etc, where X is the slot number of your character. The file is encrypted of course... I found a webpage that can modify your hunter's name and palico's name. I tested it and I saw that at the offset 0x0000 - 0x0007 it has some type of cheksum that changes always you modify your name.

http://my1993.com/wip/mh4genc.php

Also I found Palico's offset name 0xC4B8-0xC4BF and Hunter's name offset 0x0038 - 0x003F. But also, some other bytes are implied... This log shows the diferences after chaning Hunter's name and Palico's name.

SAV user1 - 1 Pos[0x00] = 0x56
SAV user1 - 1_edit3 Pos[0x00] = 0xEB
SAV user1 - 1 Pos[0x01] = 0xDC
SAV user1 - 1_edit3 Pos[0x01] = 0x76
SAV user1 - 1 Pos[0x02] = 0x1E
SAV user1 - 1_edit3 Pos[0x02] = 0xEF
SAV user1 - 1 Pos[0x03] = 0xD0
SAV user1 - 1_edit3 Pos[0x03] = 0x3B
SAV user1 - 1 Pos[0x04] = 0x50
SAV user1 - 1_edit3 Pos[0x04] = 0x2E
SAV user1 - 1 Pos[0x05] = 0x2D
SAV user1 - 1_edit3 Pos[0x05] = 0x0B
SAV user1 - 1 Pos[0x06] = 0x3B
SAV user1 - 1_edit3 Pos[0x06] = 0xD3
SAV user1 - 1 Pos[0x07] = 0x46
SAV user1 - 1_edit3 Pos[0x07] = 0xD8
-----------------------------------------------
Bytes: 8 |Offset: 0x00 - 0x07
-----------------------------------------------

SAV user1 - 1 Pos[0x38] = 0x97
SAV user1 - 1_edit3 Pos[0x38] = 0xEA
SAV user1 - 1 Pos[0x39] = 0x6D
SAV user1 - 1_edit3 Pos[0x39] = 0x14
SAV user1 - 1 Pos[0x3A] = 0xB7
SAV user1 - 1_edit3 Pos[0x3A] = 0xC2
SAV user1 - 1 Pos[0x3B] = 0x88
SAV user1 - 1_edit3 Pos[0x3B] = 0xDD
SAV user1 - 1 Pos[0x3C] = 0x67
SAV user1 - 1_edit3 Pos[0x3C] = 0x42
SAV user1 - 1 Pos[0x3D] = 0x50
SAV user1 - 1_edit3 Pos[0x3D] = 0x82
SAV user1 - 1 Pos[0x3E] = 0x19
SAV user1 - 1_edit3 Pos[0x3E] = 0xD1
SAV user1 - 1 Pos[0x3F] = 0x1E
SAV user1 - 1_edit3 Pos[0x3F] = 0xD8
-----------------------------------------------
Bytes: 8 |Offset: 0x38 - 0x3F
-----------------------------------------------

SAV user1 - 1 Pos[0xC4B8] = 0xAF
SAV user1 - 1_edit3 Pos[0xC4B8] = 0x85
SAV user1 - 1 Pos[0xC4B9] = 0xCC
SAV user1 - 1_edit3 Pos[0xC4B9] = 0x44
SAV user1 - 1 Pos[0xC4BA] = 0x2D
SAV user1 - 1_edit3 Pos[0xC4BA] = 0x23
SAV user1 - 1 Pos[0xC4BB] = 0x19
SAV user1 - 1_edit3 Pos[0xC4BB] = 0xD6
SAV user1 - 1 Pos[0xC4BC] = 0x07
SAV user1 - 1_edit3 Pos[0xC4BC] = 0x48
SAV user1 - 1 Pos[0xC4BD] = 0x3B
SAV user1 - 1_edit3 Pos[0xC4BD] = 0x2B
SAV user1 - 1 Pos[0xC4BE] = 0xF7
SAV user1 - 1_edit3 Pos[0xC4BE] = 0x08
SAV user1 - 1 Pos[0xC4BF] = 0xB3
SAV user1 - 1_edit3 Pos[0xC4BF] = 0x4F
SAV user1 - 1 Pos[0xC4C0] = 0xA5
SAV user1 - 1_edit3 Pos[0xC4C0] = 0xBD
SAV user1 - 1 Pos[0xC4C1] = 0x54
SAV user1 - 1_edit3 Pos[0xC4C1] = 0x84
SAV user1 - 1 Pos[0xC4C2] = 0x0D
SAV user1 - 1_edit3 Pos[0xC4C2] = 0xF4
SAV user1 - 1 Pos[0xC4C3] = 0x9C
SAV user1 - 1_edit3 Pos[0xC4C3] = 0xD4
SAV user1 - 1 Pos[0xC4C4] = 0x12
SAV user1 - 1_edit3 Pos[0xC4C4] = 0x5F
SAV user1 - 1 Pos[0xC4C5] = 0x37
SAV user1 - 1_edit3 Pos[0xC4C5] = 0x8A
SAV user1 - 1 Pos[0xC4C6] = 0x9F
SAV user1 - 1_edit3 Pos[0xC4C6] = 0x4C
SAV user1 - 1 Pos[0xC4C7] = 0xB6
SAV user1 - 1_edit3 Pos[0xC4C7] = 0x98
-----------------------------------------------
Bytes: 16 |Offset: 0xC4B8 - 0xC4C7
-----------------------------------------------

Bytes readed: 81408
Diferent bytes: 32

I would apreciate if someone want and can help me to create and mh4 sav editor

Thanks in advance.
 

didix16

Well-Known Member
Newcomer
Joined
Jan 23, 2015
Messages
82
Trophies
0
Age
31
XP
224
Country
Oh sorry i didn't see the G... Whell that is for MH4U. Anyway I think both works equal
 

upfromtheskies

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
293
Trophies
0
Age
33
XP
1,076
Country
United States
It's possible because Powersaves has cheats for Monster Hunter, but the save is uploaded to their server, edited, then downloaded again, so no one knows what they're doing exactly.
 

upfromtheskies

Well-Known Member
Member
Joined
Mar 21, 2015
Messages
293
Trophies
0
Age
33
XP
1,076
Country
United States
I'm not sure exactly how powersaves does it, but I know they somehow encrypt the game saves, because powersaves save dumps can't be loaded into other save editors like PKHeX
 

didix16

Well-Known Member
Newcomer
Joined
Jan 23, 2015
Messages
82
Trophies
0
Age
31
XP
224
Country
are powersaves extracted save file the same format as the gateway save file?


Not exactly, but similar. Powersave has an extraheader checksum and savenamefile that checks he inegrity of the file and analize if the file is "legit" to inject into cartdrige. Any code applied to the save, generates a new checksum. This is what Datel server does. We need to know how the mh4u encryption works for decrypt it and edit it by ourselves. In some forum I saw an user specultaing about blowfish encryption...
 

didix16

Well-Known Member
Newcomer
Joined
Jan 23, 2015
Messages
82
Trophies
0
Age
31
XP
224
Country
I'm not sure exactly how powersaves does it, but I know they somehow encrypt the game saves, because powersaves save dumps can't be loaded into other save editors like PKHeX


The save can be extracted from powersave and load with pkhex but reverse its impossible. Only Datel does.
 

didix16

Well-Known Member
Newcomer
Joined
Jan 23, 2015
Messages
82
Trophies
0
Age
31
XP
224
Country
how aboutr gateways save? is it the same as the retail?

Yes since it is possible extract save in classic mode, edit it and reinject it with SDF, however the encryption that use gateway is kinda diferent from the update firmwares of 3DS, this means if you want to play with game that is saved in normal mode and then you want to play in classic mode, the result would be a data save corrupted.
 

didix16

Well-Known Member
Newcomer
Joined
Jan 23, 2015
Messages
82
Trophies
0
Age
31
XP
224
Country
Classic Mode is a mode of Gateway software wich allows play physical cartdrige using emuNAND. Normal mode is how I referer when playing a game without Gateway nor Sky3DS or any other third-party hardware/software
 

Arcanuskun

Well-Known Member
Member
Joined
May 7, 2014
Messages
241
Trophies
0
Age
28
Location
In the depths of hell
XP
1,242
Country
Philippines
you can actually use savedatafiler for extracting the save in decrypted form. The problem is applying hex codes in the save. I believe it has checksums that needs to be satisfied before loading the said "cheats."
 

_eyCaRambA_

Well-Known Member
Member
Joined
Apr 22, 2009
Messages
525
Trophies
1
Location
Right around the corner™
XP
399
Country
United States
you can actually use savedatafiler for extracting the save in decrypted form. The problem is applying hex codes in the save. I believe it has checksums that needs to be satisfied before loading the said "cheats."
MH4G/U save uses an additional encryption layer. SDF will just give you the encrypted file.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Sonic Angel Knight @ Sonic Angel Knight: :ninja: