Homebrew [Realease]Card1 <-> Card2 Converter

onepiecefreak

Kuriimu 2 Developer
OP
Member
Joined
Aug 12, 2015
Messages
525
Trophies
0
XP
1,733
Country
Germany
Which version of python do you use? I worked the script out for Python 2.7.

I looked over your last picture again. And it says me that he can't find a specific attribute for an object that always has this attribute. Maybe it's really the Python version you're using that causes the error.
 
Last edited by onepiecefreak,

HolyAtro

Member
Newcomer
Joined
Dec 28, 2015
Messages
24
Trophies
0
Age
28
XP
53
Country
Ahh that could be the problem. I have 3.5.1, would I have to completely uninstall python then reinstall with 2.7?
 

Stark264

Member
Newcomer
Joined
Apr 24, 2015
Messages
23
Trophies
0
Age
29
XP
170
Country
United States
Hello. First off I want to say thanks for making this tool. Second I wanted to tell you about an error that occurred while I was trying to use it. I don't know what to do. I write the path and press enter and it crashes immediately. I write the path with the name of the game at the end of the path and it still crashes. I don't know if this board is still active but hopefully someone will reply with help.
 

Attachments

  • error.png
    error.png
    5.3 KB · Views: 378

onepiecefreak

Kuriimu 2 Developer
OP
Member
Joined
Aug 12, 2015
Messages
525
Trophies
0
XP
1,733
Country
Germany
I always have an eye on my thread, don't worry.
What you can try is to drag&drop the file on the script. The script will get the path by itself.
If the error still exist after that we will find another way.
 

onepiecefreak

Kuriimu 2 Developer
OP
Member
Joined
Aug 12, 2015
Messages
525
Trophies
0
XP
1,733
Country
Germany
If you play games for example on a Gateway3ds, card1 games store their savegames on the internal SD card but if you power off your system without exiting the game through the home menu this savegame is lost.
Card2 games store their savegames in the game itself. Means you can save games and power off your system everywhere and whenever you want without any risk for this savegame.
 
Last edited by onepiecefreak,
  • Like
Reactions: cvskid

DragarX

Well-Known Member
Member
Joined
Apr 26, 2016
Messages
113
Trophies
0
Age
31
XP
345
Country
Australia
This is an awesome tool! Just have to backup all my saves before converting them all.
great way to clean up the sd card and also save myself some peril of save corruption. Happened a few times in smash, rune factory and LBX.
 

Jordanli8

Active Member
Newcomer
Joined
Sep 8, 2017
Messages
27
Trophies
0
Age
39
XP
116
Country
Australia
The difference between these two types is, that you can hold your savegame in the gamefile itself. Means you can take your Gateway or other flashcart with you and can play your games with your saves on any console.
Are the games in card1 the saves are on the built-in SD card in the 3DS.
is there a tool like this for switch ?
 

Jordanli8

Active Member
Newcomer
Joined
Sep 8, 2017
Messages
27
Trophies
0
Age
39
XP
116
Country
Australia
Afaik, unlike the 3DS, a XCI, NCA, or NSP doesn't contain information at which address save data should be stored on the cartridge.
So no, there is no such tool for Switch. It's also more than likely that there will never be one.
One piece has any one found out why we get blank thumbnails on sx pro do you think it’s because of firmware version ?
 

onepiecefreak

Kuriimu 2 Developer
OP
Member
Joined
Aug 12, 2015
Messages
525
Trophies
0
XP
1,733
Country
Germany
I don't have the script anymore and it seems the site I chose doesn't let me download it again.
Maybe someone else got it stored and can attach it here. Otherwise you're out of luck.
 

V0idst4r

Active Member
Newcomer
Joined
Apr 2, 2017
Messages
36
Trophies
0
XP
107
Country
United States
Oh well, for now https://gist.github.com/iGlitch/e5f817986830c25c78f7 has worked with some modifications, if anyone needs something to accomplish this in the future. And instead of calling whatever the hell "Trunc.exe" is you can just do "f.truncate(padOffset);" (If using for Pokemon games make sure to use the first revision without trimming/truncation)
 
Last edited by V0idst4r,

draftguy

¯\_(ツ)_/¯
Member
Joined
Nov 20, 2020
Messages
809
Trophies
2
Location
the wordless chamber
XP
1,765
Country
Germany
I don't have the script anymore and it seems the site I chose doesn't let me download it again.
Maybe someone else got it stored and can attach it here. Otherwise you're out of luck.
V1.2, rename .txt to .py and drag n drop your 3ds file over the script.

(Sorry for the late response just found this thread today again.)
 

Attachments

  • cardTypeConverter12.txt
    4 KB · Views: 21

Spider_Man

Well-Known Member
Member
Joined
May 28, 2015
Messages
3,924
Trophies
0
Age
38
XP
5,162
Country
United States
just what i was looking for, hope it works.

my 8 year old thought it would be a good idea to take is SD card out of his 2DS and try re insert it upside down and backwards, forcing it all the way in and now his SD card slot doesn't work.

so, when i tried to put Pokemon Y on his stargate3ds+ card and boot it, the game wont play because it cant read the SD card.

i am hoping converting the rom from card2 to card1 will make the rom save to the flashcard sd card rather than the consoles sd card.

EDIT:
Ok, so what was on page 1, also tried the one above my post and neither of them worked, or at least it didnt look like it, dragged and dropped the rom into the py file, window opened saying it was card1 and to press 1 to convert to card 2 then press Enter.

So following the instructions nothing seems to happen, after hitting Enter the window just closes.

Has anyone got any ideas how I can change edit the rom so it saves to the flashcard sd card and not the console SD card please.
 
Last edited by Spider_Man,

onepiecefreak

Kuriimu 2 Developer
OP
Member
Joined
Aug 12, 2015
Messages
525
Trophies
0
XP
1,733
Country
Germany
just what i was looking for, hope it works.

my 8 year old thought it would be a good idea to take is SD card out of his 2DS and try re insert it upside down and backwards, forcing it all the way in and now his SD card slot doesn't work.

so, when i tried to put Pokemon Y on his stargate3ds+ card and boot it, the game wont play because it cant read the SD card.

i am hoping converting the rom from card2 to card1 will make the rom save to the flashcard sd card rather than the consoles sd card.

EDIT:
Ok, so what was on page 1, also tried the one above my post and neither of them worked, or at least it didnt look like it, dragged and dropped the rom into the py file, window opened saying it was card1 and to press 1 to convert to card 2 then press Enter.

So following the instructions nothing seems to happen, after hitting Enter the window just closes.

Has anyone got any ideas how I can change edit the rom so it saves to the flashcard sd card and not the console SD card please.
I'm not sure if you just confuse what card1 and card2 means.

card1 means that the game stores the save file outside the ROM. However, where that is depends on how you execute the ROM. For Gateway3DS (as written in the OP) it seems to write the save file to the flashcard itself temporarily, and only persists it to the 3DS NAND when you exit the game cleanly. If you play the game normally via the original cardridge or via a downloaded title, then the save file is directly written to the 3DS NAND.

card2 means that the game stores the save file inside the ROM. There is a small region of writable memory on the game cardridge that will hold the save file. This save file will either be written physically to the original cardridge, or into the ROM itself, when you play it via flashcard.

"[...] so it saves to the flashcard sd card and not the console SD card [...]" is probably a misunderstanding of how this works. Saves are not stored on the console SD card afaik, but the internal 3DS NAND. The save file is also never really written to the flashcard SD. It's written into the ROM of the game itself as card2.

When the window closed that means your ROM is now a card2 and it will proceed to read and write the save file into the ROM itself, whereever it is located.
 

Spider_Man

Well-Known Member
Member
Joined
May 28, 2015
Messages
3,924
Trophies
0
Age
38
XP
5,162
Country
United States
I'm not sure if you just confuse what card1 and card2 means.

card1 means that the game stores the save file outside the ROM. However, where that is depends on how you execute the ROM. For Gateway3DS (as written in the OP) it seems to write the save file to the flashcard itself temporarily, and only persists it to the 3DS NAND when you exit the game cleanly. If you play the game normally via the original cardridge or via a downloaded title, then the save file is directly written to the 3DS NAND.

card2 means that the game stores the save file inside the ROM. There is a small region of writable memory on the game cardridge that will hold the save file. This save file will either be written physically to the original cardridge, or into the ROM itself, when you play it via flashcard.

"[...] so it saves to the flashcard sd card and not the console SD card [...]" is probably a misunderstanding of how this works. Saves are not stored on the console SD card afaik, but the internal 3DS NAND. The save file is also never really written to the flashcard SD. It's written into the ROM of the game itself as card2.

When the window closed that means your ROM is now a card2 and it will proceed to read and write the save file into the ROM itself, whereever it is located.
I had to use an older version of 1to2 that i had emailed way back to gateway when pokemon sun/moon first leaked and that was slightly different, you'd drag the rom into an exe that had the py in a different folder.

Anyways, what I am trying to do is my son 8 autistic thought it would be a good idea to take out the consoles sd card and force it back into the console sd slot backwards and inside out.

so now when you turn the console on it will say the sd card is locked and data cant be accessed, so he has pretty much fecked up the sd slot.

I had a spare Sky3DS+ flashcard and thought maybe safer to just put roms onto it and tell him never to remove the flashcard.

I am trying to find Pokemon games that will run off the flashcard and first game was Pokemon Y, but as soon as you boot the rom it gives a message saying:
The SD Card couldn't be recognized.
Please end the game and start again.

I assumed maybe this is because it is trying to create a save file.

So i was wondering if it is, maybe if I could change the rom so that the game saves to the flashcard sd card or as you said, it saves to the rom file.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    There's also this thing where I'm hyperfocused at night and cannot get to sleep.
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I'm doing alright, thanks.
    +1
  • Maximumbeans @ Maximumbeans:
    That must be rough. Productive I'm sure but hard to balance with daily life
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Indeed. I've been working on getting this Infecutus chip to work on my PS2. But after soldering, I realised that a plastic piece was missing from the power ribbon cable to the power and eject buttons.
  • SylverReZ @ SylverReZ:
    Now I could go with soldering the contacts from the cable to the connector on the mobo, but doesn't sound like a good permanent solution.
  • Maximumbeans @ Maximumbeans:
    Man, that's beyond my brain :rofl: I'm no good with hardware for now. I'd like to get into hardmods in future though
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Maybe start practice soldering. Get a cheap-ass soldering iron and follow some good YouTube tutorials.
    +1
  • SylverReZ @ SylverReZ:
    Least my experience has gotten better than over a decade ago. My iron would constantly bump into components and break them.
  • Maximumbeans @ Maximumbeans:
    Sounds good. I actually did soldering but like 16 years ago for school so uuuuh probably rusty haha
  • SylverReZ @ SylverReZ:
    @Maximumbeans, Same here. I did soldering at school from a teacher who I honestly liked since he had plenty of good electronics experience.
    +1
  • Maximumbeans @ Maximumbeans:
    I wish I could play chess well
    +1
  • Maximumbeans @ Maximumbeans:
    Useless but a true art
    +1
  • SylverReZ @ SylverReZ:
    @Maximumbeans, I had a friend who had a glass chess set for their birthday.
  • SylverReZ @ SylverReZ:
    It was like all clear and fancy. Tbf I'm not too experienced with chess, but would like to learn someday.
  • Maximumbeans @ Maximumbeans:
    That sounds really cool
  • Maximumbeans @ Maximumbeans:
    I know the basics but no strategy at all :rofl:
    +1
  • Veho @ Veho:
    Watch chess streamers on Twitch and you'll pick up a thing or two.
    +1
  • Veho @ Veho:
    Not to mention there's an infinite number of chess games for every possible platform.
    +1
  • DinohScene @ DinohScene:
    just play it, get beaten a few times and start dominating
    +1
  • K3Nv2 @ K3Nv2:
    Nude chess is best
    +1
  • DinohScene @ DinohScene:
    strip checkers > nude chess
    +1
  • K3Nv2 @ K3Nv2:
    Nude checkers get jumped
    +1
  • SylverReZ @ SylverReZ:
    @Veho, I guess you'd pick up something while watching tub streams.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Dick fights. :tpi:
    SylverReZ @ SylverReZ: @K3Nv2, Dick fights. :tpi: