Hacking I have an idea to translate GW (6.x) card1 save to cia/legit cart

banxian

Active Member
OP
Newcomer
Joined
Oct 30, 2014
Messages
40
Trophies
0
Age
41
XP
276
Country
Switzerland
If you have tried to use savedatafiler on Gateway's red-card, you will see card1 type ROM shown like "CTR broken data" in SDF lower screen.
this prevents we convert our exists gamesave from gw rom to cia games.

by looking into real game exefs (MH4G) I noticed there two call to load savedata:
Code:
nn::Result nn::fs::MountSaveData(const char *archiveName, bit32 uniqueId, bit8 variation)
{
    nn::Result result= nn::fs::MountOtherUserSaveData(archiveName, MEDIA_TYPE_CTRCARD, uniqueId, variation);
    if ( (result.value & 0x80000000 & 0x80000000) != 0 )
    {
        result= nn::fs::MountOtherUserSaveData(archiveName, MEDIA_TYPE_SDMC, uniqueId, variation);
        if ( (result.value & 0x80000000 & 0x80000000) != 0 )
            result.value = 0xC8804464;
    }
    return result;
}

I guess Gateway is just breaked MEDIA_TYPE_CTRCARD codepath, and hooked SDMC one with non standard 6.x key, in other words, they dropped spi flash support in hardware level that savedatafiler expect.


sadly ctrulib missed savedata support, If we can rip savedata related functions from the new rom, and built 3ds format homebrew rom with same titleID/saveID, I think savedata will mounted after our homebrew start so we can export it now.

any suggestions?
 
  • Like
Reactions: Margen67 and cearp

Timburpton

Well-Known Member
Member
Joined
Nov 18, 2014
Messages
648
Trophies
0
Age
46
XP
580
Country
No one wants to buy an inferior clone just for that.

This argument old. MT is no clone. They just copycat. 3dslink and r4igolddeluxe is clone.

Also, I have one 4.5 3ds and one N3ds. I will using MT for 4.5 and GW for 9.2. MT was cheap for me.
 

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,024
Country
Vietnam
Regarding savefl not being able to backup GW, does this have to do with the new "Real-time" save method (think they have this since 2.0).
 

Timburpton

Well-Known Member
Member
Joined
Nov 18, 2014
Messages
648
Trophies
0
Age
46
XP
580
Country
It's not real time save. GW loads save when game starts, saves saves when game is closed.

I no sure but I think MT is real time save. It loads save when select rom. That's how savefl work with MT.
 

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,024
Country
Vietnam
It's not real time save. GW loads save when game starts, saves saves when game is closed.

I no sure but I think MT is real time save. It loads save when select rom. That's how savefl work with MT.

...That's the exact opposite of real-time.

Anw IIRC GW just read the save from SD and whenever the game calls up the save it writes to SD directly. The EEPROM is ignored. That's also why savefl doesn't work.
 

Arras

Well-Known Member
Member
Joined
Sep 14, 2010
Messages
6,318
Trophies
2
XP
5,409
Country
Netherlands
...That's the exact opposite of real-time.

Anw IIRC GW just read the save from SD and whenever the game calls up the save it writes to SD directly. The EEPROM is ignored. That's also why savefl doesn't work.

Pretty sure you still lose your progress on a Gateway if the 3DS loses power while playing (crash, empty battery) even if you previously saved ingame. It still only writes to SD after you're done playing, but it does this no matter how you exit the game, including the power button, which means it's only a problem if the game/system isn't exited properly.
Unless this was changed at some point, but I'm pretty sure this was how it worked a while ago.
 
  • Like
Reactions: Margen67

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,024
Country
Vietnam
Wait that RTS thing was for CARD2 games.
So I guess GW screwed up save access by overhacking :P

Side question: There's a feature to dump save from card and IIRC it works with scene ROMs. Since saves are encrypted per-card how could it work with those ROMs?
I think it's the same for CARD2 too. You can take your own save from your dumped ROM and inject into a scene release.
 
D

Deleted-19228

Guest
Not sure why this keeps cropping up. The game doesn't control the save encryption. The reason that (currently) the save encryption is using the old KeyX method is because the system uses the save encryption that the system started up with, in this case, 4.0-4.5. The only way this will be fixable is if Gateway ever decides to allow you to use a custom encryption key for saves (like the 6.x KeyY key). I don't see this happening any time soon but when the new exploit for 9.0-9.2 is released it will actually be operating on the new save encryption and since they claim it has kernel access SaveDataFiler will also allow you to decrypt your retail Card2 save, modify it, and inject it back into your cart :)
 

drfsupercenter

Flash Cart Aficionado
Member
Joined
Mar 26, 2008
Messages
1,909
Trophies
1
XP
1,163
Country
United States
Another method, if you have a NAND flasher installed... can't you just take your emuNAND which you've installed SaveDataFiler on, use the emuNAND Tool to extract it and then write it to your sysNAND? Then you should be able to use legit carts all you want :P
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
Another method, if you have a NAND flasher installed... can't you just take your emuNAND which you've installed SaveDataFiler on, use the emuNAND Tool to extract it and then write it to your sysNAND? Then you should be able to use legit carts all you want :P
nope, you cant just use illegit installed items on a unpatched system....its patched when you go into emunand on the fly.....not only that since 8.x+ emunand it seems you cant flash an emunand backup to the console as it will just result in a black screen of death
 

drfsupercenter

Flash Cart Aficionado
Member
Joined
Mar 26, 2008
Messages
1,909
Trophies
1
XP
1,163
Country
United States
nope, you cant just use illegit installed items on a unpatched system....its patched when you go into emunand on the fly.....not only that since 8.x+ emunand it seems you cant flash an emunand backup to the console as it will just result in a black screen of death

So then Gateway is still doing stupid things with CIA installation then, it's not doing it the way CFW would do it. I guess I should have expected that from them. As much as I want to respect MT-Card, it seems they did the same crap, where you can only use the installed CIA files in flashcart mode, classic mode disables it
 

VerseHell

Well-Known Member
Member
Joined
Jun 29, 2014
Messages
3,073
Trophies
1
Age
30
XP
1,660
Country
France
Do you realise that if they allowed cias in classic mode it would be almost like a free cfw with updated emunand?
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
So then Gateway is still doing stupid things with CIA installation then, it's not doing it the way CFW would do it. I guess I should have expected that from them. As much as I want to respect MT-Card, it seems they did the same crap, where you can only use the installed CIA files in flashcart mode, classic mode disables it
yeah.....enabling it in classic mode would be completely stupid of them from a business standpoint ....its like here you go you don't need us except for once to install dev menu, other than that enjoy 9.x emunand with all roms converted to .cia files........as much as we would like such things it would be stupid of them to allow it and expect people not to just buy a MT/gateway card install dev menu and sell it off
 

drfsupercenter

Flash Cart Aficionado
Member
Joined
Mar 26, 2008
Messages
1,909
Trophies
1
XP
1,163
Country
United States
You'd still need the flash cart itself to boot into classic mode - or at least with Gateway.

MT-Card has the same warning that Gateway does about how "some features might not work" but from what I can tell it all works anyway...
 

gamesquest1

Nabnut
Former Staff
Joined
Sep 23, 2013
Messages
15,153
Trophies
2
XP
12,247
You'd still need the flash cart itself to boot into classic mode - or at least with Gateway.

MT-Card has the same warning that Gateway does about how "some features might not work" but from what I can tell it all works anyway...
yeah i think gateway kinda didnt trust MT to copy them competently (and they where right)....i guess thats why they left cia install out of classic mode.....truth is assuming they fix the save sizes issue and rework how games load there saves so they are dump-able with SDF, then there really isnt any need for cia install in classic mode as you could just dump the game and save and edit from there
 
  • Like
Reactions: Margen67

drfsupercenter

Flash Cart Aficionado
Member
Joined
Mar 26, 2008
Messages
1,909
Trophies
1
XP
1,163
Country
United States
Well, I'm more interested in going from my eShop copies of games (that I legally own, btw) to cartridges. Can't do that with Gateway, but how else would I install SaveDataFiler? That's my dilemma, even if I did a system transfer to emuNAND, it seems that's kind-of pointless.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Faust03 @ Faust03: hey the spam bots are acting up again