ROM Hack Need help with .PACK Files/Nintendo 3DS Camera RomFS

rescribe

Well-Known Member
OP
Newcomer
Joined
Dec 31, 2014
Messages
58
Trophies
0
Location
That place in the U.S.A
XP
200
Country
United States
Hello, I have been trying to find the image assets for the effects (hearts, stars, bubbles, etc. that appear on screen) in the Nintendo 3DS camera.
2ds4yg0.jpg

ezfvrk.jpg
I have decrypted/extracted the romfs from the .cia and have successfully been able to open a few files such as .arc and view the images within them using EveryFileExplorer but the file that the effects are located in is .pack format which cannot be opened.

I opened it in HXD and can see some text such as "BubB.bcptl.LZ" which is what I think I'm looking for but I cannot extract them from this file.
ny92z8.jpg

20zdycp.png
Does anyone know how to view or extract these from a .pack file?

Download to the .pack file.
 

sentimental

New Member
Newbie
Joined
Mar 6, 2017
Messages
2
Trophies
0
XP
201
Country
You can extract them with hex editor manually. The header format is simple.

[Header0]
00h-37h: Filename
38h-3Bh: Offset of LZ11 compressed data
3Ch-3Fh: Size of LZ11 compressed data
[Header1]
...


For example:
the 32-bit integer at 0x38 is 0x480
the 32-bit integer at 0x3C is 0x3C06

then you can copy the data from 0x480 to 0x480+0x3C06(=0x4086), save them as a new file.
There're many tools are capable to extract lz11 compressed data.
I've used nlzss to decompress this sample data.
 
  • Like
Reactions: rescribe

rescribe

Well-Known Member
OP
Newcomer
Joined
Dec 31, 2014
Messages
58
Trophies
0
Location
That place in the U.S.A
XP
200
Country
United States
You can extract them with hex editor manually. The header format is simple.

[Header0]
00h-37h: Filename
38h-3Bh: Offset of LZ11 compressed data
3Ch-3Fh: Size of LZ11 compressed data
[Header1]
...


For example:
the 32-bit integer at 0x38 is 0x480
the 32-bit integer at 0x3C is 0x3C06

then you can copy the data from 0x480 to 0x480+0x3C06(=0x4086), save them as a new file.
There're many tools are capable to extract lz11 compressed data.
I've used nlzss to decompress this sample data.
Thank you for all your help! I ended up following your example and creating the files using HxD, then I used EveryFileExplorer's feature (Tools>Compression>Common Compressors Plugin>LZ11>Decompress) and this sucessfully decompressed them. Then to view and extract the .pngs I used Kukki/Kuriimu which worked perfectly. Also a note for anyone in the future, instead of manually extracting the .lz files using HxD, you can use Karameru to extract the .LZ from the .pack file.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    I like how the AP still hasn't updated 3 points for secure victory
  • Skelletonike @ Skelletonike:
    What's AP?
  • K3Nv2 @ K3Nv2:
    The Associated Press
  • Veho @ Veho:
    AssPress.
  • K3Nv2 @ K3Nv2:
    AssPrump
  • K3Nv2 @ K3Nv2:
    Sinus cold is going down doesn't feel like I have a new post political virus now
  • Veho @ Veho:
    Viruses are political now.
  • Veho @ Veho:
    I was sick last night, puked my guts out.
  • K3Nv2 @ K3Nv2:
    I'd rather puke then have a clogged nose
  • Veho @ Veho:
    A combination of ephedrine and loratadine unclogs my nose better than a plunger.
  • K3Nv2 @ K3Nv2:
    Doctor gave me Ipratropium Bromide Nasal Solution and was like good luck don't die
  • K3Nv2 @ K3Nv2:
    I do have some Claritin but already have benadrayl and been pill popping Tylenol pm more than elvis
  • Veho @ Veho:
    On the subject of fake Lego, there's a giveaway going on, if anyone wants to enter:
    https://dyno.gg/giveaway/98913ab9
  • K3Nv2 @ K3Nv2:
    This would be a good time to test my Bot email script
  • Veho @ Veho:
    You have to join their Discord in order to enter.
  • Veho @ Veho:
    And there's a giveaway once a week, at the moment.
  • K3Nv2 @ K3Nv2:
    Ew discord thy can keep it
  • Veho @ Veho:
    Yeah, that's why I didn't enter :tpi:
  • Veho @ Veho:
    I love those giveaways that are like "follow us on Twitter, Facebook and Discord to enter the raffle" and I'm like... nope.
  • K3Nv2 @ K3Nv2:
    Amazon selling a portable at a fair price https://a.co/d/drGPUYO
  • K3Nv2 @ K3Nv2:
    Some syrup leaked into my pantry didn't realize it until everything got all moldy
  • The Real Jdbye @ The Real Jdbye:
    kens got moldy panties
  • K3Nv2 @ K3Nv2:
    Tends to happen after uremum gives me hers
  • Veho @ Veho:
    Why you got a leaky pantry Ken?
    Veho @ Veho: Why you got a leaky pantry Ken?