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
  • No one is chatting at the moment.
  • BakerMan @ BakerMan:
    click link (the chain icon), then paste the link without adding text for the link to say
    +1
  • BakerMan @ BakerMan:
    that's how you embed
  • K3Nv2 @ K3Nv2:
    Or just hit edit
  • Sicklyboy @ Sicklyboy:
    This newfangled shoutbox always trips me up
  • K3Nv2 tempBOT:
    K3Nv2 rolls 1d6 and gets 2 (2).
  • BakerMan @ BakerMan:
    how do you roll a die?
  • BigOnYa @ BigOnYa:
    with your hands, duh. Well uremum has a party trick that she uses something else
  • BakerMan @ BakerMan:
    in chat i mean
  • BakerMan @ BakerMan:
    and what if i don't have any hands? (i mean, i do (duh), but what if i didn't?)
  • K3Nv2 @ K3Nv2:
    Uremum is in the chat and she told me you're grounded
    +1
  • BakerMan @ BakerMan:
    cap
  • Xdqwerty @ Xdqwerty:
    Uremum's mum grounded her
  • K3Nv2 @ K3Nv2:
    This is Bakermans mum you're grounded no internet
    +1
  • BigOnYa @ BigOnYa:
    He must be listening, no response
  • K3Nv2 @ K3Nv2:
    Well he shouldn't have used chatgpt to do his homework
    +1
  • Xdqwerty @ Xdqwerty:
    Wut
  • HiradeGirl @ HiradeGirl:
    I got crabs
  • Xdqwerty @ Xdqwerty:
    The crustacean or the disease?
  • K3Nv2 @ K3Nv2:
    Well we warned you about Juan
    +4
  • wolffangalchemist @ wolffangalchemist:
    I personally love seafood.
  • Xdqwerty @ Xdqwerty:
    Good night
  • BakerMan @ BakerMan:
    i personally dislike seafood
  • BakerMan @ BakerMan:
    except tuna salad, a tuna melt fucking slaps dude
    BakerMan @ BakerMan: except tuna salad, a tuna melt fucking slaps dude