dnasdw / 3dstool

An all-in-one tool for extracting/creating 3ds roms.
MIT License
335 stars 35 forks source link

3ds file grows by 200ish mb on rebuild? #19

Closed gaberilde closed 6 years ago

gaberilde commented 6 years ago

when extracting a 3ds file and rebuilding with this app, instead of the original file size, the file is always 512mb

can you fix this bug?

dnasdw commented 6 years ago

The min size of CARD2 is 512MB. It's official standard.

gaberilde commented 6 years ago

But my files seem to grow bigger even tho i never edited anything

gaberilde commented 6 years ago

Even a 700mb game grows in size its not right

dnasdw commented 6 years ago

Check your ROM file(or ncsdheader.bin). The offset of CARDTYPE is 0x18D: CARD1: 0x01 CARD2: 0x02 The min size of CARD1 is 128MB. The min size of CARD2 is 512MB. Check the original data, please visit http://www.3dsdb.com . Check the last column "card". If the data is not match your ROM, your ROM is modified. You can change it back to the original by yourself, then create it.

gaberilde commented 6 years ago

It says card1 and the file is 300mb so thats correct right? this happens to mario 2 to it grows 212mb more then the original? And mario kart 7 grows by 351mb? This dosent make any sense!

dnasdw commented 6 years ago

Ah, I got it. You'er talking about the trimmed ROMs. If you want rebuild the 3ds file without the fill data, you can use --not-pad option. Like this: 3dstool -cvt01267f cci 0.cxi 1.cfa 2.cfa 6.cfa 7.cfa output.3ds --header ncsdheader.bin --not-pad

gaberilde commented 6 years ago

yes that fixed it thank you very much

PS: what does -cvt01267f do?

dnasdw commented 6 years ago

3dstool -cvt01267f cci 0.cxi 1.cfa 2.cfa 6.cfa 7.cfa output.3ds --header ncsdheader.bin --not-pad is short for 3dstool -c -v -t cci -0 0.cxi -1 1.cfa -6 6.cfa -7 7.cfa -f output.3ds --header ncsdheader.bin --not-pad

gaberilde commented 6 years ago

werid because it works fine if i just add not pad on the command i think il just stick to that thanks much