Hacking 3DS rom dump info

Pong20302000

making notes on everything
OP
Member
Joined
Sep 8, 2009
Messages
8,079
Trophies
2
Location
One's inner self
Website
3dsdb.com
XP
2,446
Country
Now ,guys,guys wait a second...

if trimming removes fucntionnality i hope you rot in hell !!!
For now the hole 3ds roms are 148 7z packed.
If trimming removes 30-40 Gb im all for it ,if not ,well ill see as one of various ''Mess with Original Backup'' LOL.

@Pong : expect a huge pack ill made will all icons ,High res covers for the 3ds (around 200 mb).
For a feature rom manager with high res cover (maybe??),cause i dont know about you guys but we reached 2013 (56K modem and dinosaurs are long gone) and my eyes hurts trying to read 3ds back or front covers.

@Ris312
Where have i seen this pseudo? an impression of Deja vu .

Rom trimming doesnt remove functionality
but on a flashcard that cant auto do some items (e.g. cards that use RGF's Kernel) you cannot expect a trimmed rom to work because the ID has changed
and i prefer not to trim roms as it eliminates the point of it being a 1:1 backup (im just fussy with preserving data tho)

a huge pack would be good and a manager
but i don't know how to make such things but the database does allow for the XML do be downloaded to could have a manager that can load the download from the database, but the manager would have to have its own downloadable database for new games etc

i wouldnt ask Ris312 that question because the answer is against site rules :P
 

abdelmajidtolba

Active Member
Newcomer
Joined
Dec 21, 2011
Messages
33
Trophies
0
Age
38
Location
Saudi Arabia
XP
77
Country
Mauritania
Im down for it as long as a coder know knows his way around coding.
I was checking gametdb and had eye cancer trying to read wii disc id or 3d covers.
The idea came to me when trying to organize my roms i wanted a good readable cover cause 320 pix pictures are from the past.
BTW pong,do you know Touffu ? the god of japanese games cover
the dude has like thousands of Hires jap covers .
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
but on a flashcard that cant auto do some items (e.g. cards that use RGF's Kernel) you cannot expect a trimmed rom to work because the ID has changed
and i prefer not to trim roms as it eliminates the point of it being a 1:1 backup (im just fussy with preserving data tho)
uhm...

-flashcarts can't do shit with 3ds roms anyway
-the ID isn't changed at all
-the only thing changes/removed are tailing 0xFFs (that's actually checked during trimming)
-untriming is produces a 100% identical file
-any future program/flashcart that can actually play 3ds roms can trivially make the it appear untrimmed dynamically*


@abdelmajidtolba:
the code is a python script, its meant to be saved as a file and be executed by the python interpreter
it was meant more as a proof of concept/example to be included somewhere else
I can polish it a bit and provide .exe versions if there is need, but I don't think that's the best way



*: in the read function, if the read it beyond the actual file size but still belog the original size (stored in the header) simply return 0xFFs
this is much simpler than eg dynamically reading from a compressed file that wont even be smaller
 

Pong20302000

making notes on everything
OP
Member
Joined
Sep 8, 2009
Messages
8,079
Trophies
2
Location
One's inner self
Website
3dsdb.com
XP
2,446
Country
Im down for it as long as a coder know knows his way around coding.
I was checking gametdb and had eye cancer trying to read wii disc id or 3d covers.
The idea came to me when trying to organize my roms i wanted a good readable cover cause 320 pix pictures are from the past.
BTW pong,do you know Touffu ? the god of japanese games cover
the dude has like thousands of Hires jap covers .

no i do not know him, havnt heard of him either lol

uhm...

-flashcarts can't do shit with 3ds roms anyway
-the ID isn't changed at all
-the only thing changes/removed are tailing 0xFFs (that's actually checked during trimming)
-untriming is produces a 100% identical file
-any future program/flashcart that can actually play 3ds roms can trivially make the it appear untrimmed dynamically*

i was on about DS roms and there trimming
the AP removal relies on crc32 numbers so trimming on majority of cards = AP problems

i understand what you mean about 3DS roms and how they would play
but who is not to say about what checks the console can make
the 3DS (im 99.9% certain) checks the card and makes sure all the data, including the fat is there, doesn't mean a hack cant change this but obviously left in the dark about the hack. but obviously for emulators the feature to add the fat for a check would be passable.
but the check is the reason the 3DS team cant have every 3DS rom on there flashcard as each chip is checked for max size & game size for the 3DS (so you would need a re-flashable chip for every card size and a switch between them or being all separate carts which is Big $ so wouldnt be cost affective for cart makers)
 

Tattorack

Interstellar Explorer
Member
Joined
Jun 15, 2011
Messages
267
Trophies
1
Age
30
Location
Calisto Prime Orbital
Website
tattorack.deviantart.com
XP
428
Country
Denmark
and yes guys
Super Street Fighter IV - 3D Edition 16384 Mbit

HUGE!!!!!!!

and also dead or alive is HUGE!!!

but all legit

info is now all complete
I wonder if there are flash big enough for those games!!
The biggest Micro SanDisk I know of is 128GB.
Some N3DS games are 128GB! And since there is always minimum 1GB missing on a MSD card of that size I'm wondering how is anybody going to play those games!? (should the N3DS finally get hacked..........)
 

porkiewpyne

Report-er
Supervisor
Joined
Jun 8, 2008
Messages
2,496
Trophies
2
XP
4,561
Country
Australia
I wonder if there are flash big enough for those games!!
The biggest Micro SanDisk I know of is 128GB.
Some N3DS games are 128GB! And since there is always minimum 1GB missing on a MSD card of that size I'm wondering how is anybody going to play those games!? (should the N3DS finally get hacked..........)
B(yte) =/= b(it)

Afaik, the biggest 3DS rom dump is 32 Gb which is ~ 4GB.
 

Pong20302000

making notes on everything
OP
Member
Joined
Sep 8, 2009
Messages
8,079
Trophies
2
Location
One's inner self
Website
3dsdb.com
XP
2,446
Country
I knew that already, but I looked at the list of existing games on Wiki (was a while back though) and some of them were 128 GB

biggest games are 4GB, which is 32Gb
quite confusing but dont worry too much
but again micro SD storage wont come into it

due to the fact they will need to be flashed chips which would have to be done on a PC
 

andibad

Soon™
Member
Joined
Sep 14, 2009
Messages
701
Trophies
0
Location
hospital
XP
247
Country
Indonesia
I knew that already, but I looked at the list of existing games on Wiki (was a while back though) and some of them were 128 GB
huh, yeah i know maybe is confused you about Gigabit (IEC Bit unit), GigaByte (Traditional Byte unit) and Gibibyte (IEC Byte Unit)

if is GigaBit, 16 GB? until now biggest size of 3ds games is 4 GByte.
is ridiculous if is 128 GB.
 

Thorhian

My CPU's prefer Water
Member
Joined
May 23, 2012
Messages
355
Trophies
0
Location
Shazezar
XP
142
Country
United States
biggest games are 4GB, which is 32Gb
quite confusing but dont worry too much
but again micro SD storage wont come into it

due to the fact they will need to be flashed chips which would have to be done on a PC
Well, Not for too long, Ninty has already said that they will offer up to 8GB in the future.
 

Pong20302000

making notes on everything
OP
Member
Joined
Sep 8, 2009
Messages
8,079
Trophies
2
Location
One's inner self
Website
3dsdb.com
XP
2,446
Country
Well, Not for too long, Ninty has already said that they will offer up to 8GB in the future.

ive never seen such a message. have you got any info on the net to back it up
the only 4GB/32Gb games so far are
Resident Evil - Revelations & Metal Gear Solid 3D - Snake Eater
i cant really see them going that much larger than 4GB but only time will tell
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
45
Location
Engine room, learning
XP
15,650
Country
France
They said they will support up to 8GB on launch.
Not that it will be the limit in future.
I don't remember where I've read it either. (I think it was on their official website, showing specs of the console)

Developers only made up to 4GB games so far, but I think if they wanted they could use 8GB cartridges.

edit:
I can find only info on SDHC 8GB on nintendo websites :/
no mention to 3DS cartridge 8GB size.
 

FearItSelf23

Well-Known Member
Member
Joined
Feb 24, 2013
Messages
172
Trophies
1
Age
32
XP
371
Country
United States
8GB maybe hell even up to 16GB games could be possible, pretty unlikely though on that hardware as nothing on the 3DS would really benefit from that much, but 128 Gigabytes is not only unlikely it simply won't happen and not only because no game would need that much.
 

abdelmajidtolba

Active Member
Newcomer
Joined
Dec 21, 2011
Messages
33
Trophies
0
Age
38
Location
Saudi Arabia
XP
77
Country
Mauritania
@cyan
i also read it somewhere and even saw one of nintendo's 8 gb prototype card in a pic somewhere.
i guess its nice to see that nintendo didnt do the microsoft's mistake (DL dvd instead of hdvd) by allocating more space for later use.
u never know in the dev world.

@psy and pong
thanks for the insight

@guys

we have alot of devs here ,havent we found anything about 3ds dumping tools ? i mean cmon.... i know release teams are good but read earlier in this thread that one of the teams had no history with any dumping involving hardware.

@Tattorack
Stop trolling ,you should know before anyone else about Bit Byte thingy cause youre french.
 

Thorhian

My CPU's prefer Water
Member
Joined
May 23, 2012
Messages
355
Trophies
0
Location
Shazezar
XP
142
Country
United States
They said they will support up to 8GB on launch.
Not that it will be the limit in future.
I don't remember where I've read it either. (I think it was on their official website, showing specs of the console)

Developers only made up to 4GB games so far, but I think if they wanted they could use 8GB cartridges.

edit:
I can find only info on SDHC 8GB on nintendo websites :/
no mention to 3DS cartridge 8GB size.
I believe it was during one of their presentations, maybe at the e3 it was revealed. It was QUITE a while ago.

Update: Here's one source: http://www.nintendoworldreport.com/news/24569
But yeah, if a dev could pull the strings for an epic game release (Super Smash Brothers anyone?) this could potentially end up happening. It might end up like the Wii and dual layer discs, it but will happen eventually. Of course, it could end up to be popular, especially since 8GB of flash mem is actually pretty compared to what it used to be in the past. So Pong, you will most likely see >4GB game in the future.
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
a short demo how to do checksums on trimmed files

it calcs the sha1 and md5 of
-the actual file as it currently is
-the checksum it would have after you trim it
-the checksum it would have after you trim and untrim it (which matches the checksum of the untrimmed rom)

rom checkers can eg use the 3rd to find roms in their database regardless of its trimming status

Code:
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
 
import sys, io, struct
import hashlib
 
print "checksuming {}".format(sys.argv[1])
rom = io.open(sys.argv[1], "rb")
rom.seek(0x100)
assert rom.read(4).decode("ascii") == "NCSD"
fullsize = struct.unpack("<I",rom.read(4))[0] << 9
rom.seek(0x300)
trimsize = struct.unpack("<I",rom.read(4))[0]
rom.seek(0)
md5 = hashlib.md5()
sha1 = hashlib.sha1()
while rom.tell() < trimsize:
    data = rom.read1(min(1<<16,trimsize-rom.tell()))
    md5.update(data)
    sha1.update(data)
omd5=md5.copy()
osha1=sha1.copy()
for data in rom:
    omd5.update(data)
    osha1.update(data)
rom.close()
print "current MD5    : {}".format(omd5.hexdigest())
print "current SHA1  : {}".format(osha1.hexdigest())
print "trimmed MD5    : {}".format(md5.hexdigest())
print "trimmed SHA1  : {}".format(sha1.hexdigest())
md5.update("\xff"*(fullsize-trimsize))
sha1.update("\xff"*(fullsize-trimsize))
print "untrimmed MD5  : {}".format(md5.hexdigest())
print "untrimmed SHA1 : {}".format(sha1.hexdigest())
 

abdelmajidtolba

Active Member
Newcomer
Joined
Dec 21, 2011
Messages
33
Trophies
0
Age
38
Location
Saudi Arabia
XP
77
Country
Mauritania
it calcs the sha1 and md5 of
-the actual file as it currently is
-the checksum it would have after you trim it
-the checksum it would have after you trim and untrim it (which matches the checksum of the untrimmed rom)

rom checkers can eg use the 3rd to find roms in their database regardless of its trimming status

if we can restore a file crc,sha1 and such ,then why the hell our guys in the wii world wont do it?
im thinking (actually talking out of my ass) of a huge file used to unscramble wii games.

I dont know about you guys but wheres our buddy from Venom team? i miss their 5 roms releases every 2 weeks.
Cause since they stopped ,contrast guys doesnt feel pressured and only releases big Hits .
not much but ...
Luigis.Mansion.2.EUR.3DS-CONTRAST
Monster.Hunter.3.Ultimate.EUR.3DS-CONTRAST

Back to our bets shall we?
will we get a hack before the 300'th Rom? the tension is building:wacko:
5bucks
 

PsyBlade

Snake Charmer
Member
Joined
Jul 30, 2009
Messages
2,204
Trophies
0
Location
Sol III
XP
458
Country
Gambia, The
if we can restore a file crc,sha1 and such ,then why the hell our guys in the wii world wont do it?
the pattern used to fill up the unneeded portions of 3DS roms is 0xff, 0xff, 0xff, ... until full
thats easy to restore

the pattern used for wii games is more complicated, it might even be random
and the filler data resulting from it is afaik different for every game
afaik no one has figured out a way to recreate it
that means once you deleted it, its gome
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I was playing need for speed remastered and said to myself this is a nice Forza remaster
  • Psionic Roshambo @ Psionic Roshambo:
    https://en.wikipedia.org/wiki/List_of_video_games_developed_by_Rare Not all of them are awesome but man the hits on that list.
  • Psionic Roshambo @ Psionic Roshambo:
    Oh snap Super Offroad was by them too? lol damn
    +1
  • BakerMan @ BakerMan:
    Today I learned that the creators of the Donkey Kong games also made Sea of Thieves
  • BakerMan @ BakerMan:
    why do i feel the sudden urge to start singing pirate's scorn from the donkey kong country cartoon?
  • BigOnYa @ BigOnYa:
    Are you being for real, cause that's hard to believe, DK is Nintendo and made in japan, Sea of thieves was from Microsoft, in America. I'm not calling you a liar, just didn't know.
  • BigOnYa @ BigOnYa:
    Ok yes they were both made by Rare, but DK was from Rare back then, Rare now is owned by MS. So makes since.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    They even developed a LJN game.... lol
  • K3Nv2 @ K3Nv2:
    It was pretty rare
  • Psionic Roshambo @ Psionic Roshambo:
    I wonder what deal with Satan LJN worked to get Rare to make that one...
  • BigOnYa @ BigOnYa:
    I remember couple years ago, they announced they were working on a Perfect Dark remake, wonder what ever happen with that?
  • K3Nv2 @ K3Nv2:
    It went into the darkness
  • BigOnYa @ BigOnYa:
    Me and buddies used to play the hell out of Perfect Dark on N64, that and Goldeneye, was the first real PvP shooter games I remember
  • BigOnYa @ BigOnYa:
    4-way split screen on a tiny 19" TV, lol
  • K3Nv2 @ K3Nv2:
    Did you share joysticks also
  • BigOnYa @ BigOnYa:
    Nuh we had the 4 controller add on thingy for n64. Duh I just got your joke, lol
  • K3Nv2 @ K3Nv2:
    So you touched ends
  • BigOnYa @ BigOnYa:
    Yea, but being in the boy scouts, they forced us to
  • K3Nv2 @ K3Nv2:
    Chopped down some wood for the scout master
  • BigOnYa @ BigOnYa:
    Big Gay Al was our Scout leader.
  • BigOnYa @ BigOnYa:
    I was actually in the scouts for 1 week, til they assigned me homework, n I was like f this, and quit, I was like 10 yrs old. And no I didn't join the girl Scouts.
  • K3Nv2 @ K3Nv2:
    Was the homework about getting to know the scout leaders
  • BigOnYa @ BigOnYa:
    I had to memorize how to tell 15 different trees species, I think, been awhile. But yea it was about knowing Wood.
  • K3Nv2 @ K3Nv2:
    Could've just wrote down firewood
    K3Nv2 @ K3Nv2: Could've just wrote down firewood