Is there a way to unpack/repack/edit .arc-files?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by ChrisX930, Mar 2, 2015.

  1. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    Hey Guys, right now, I want to customize "Harvest Moon - A new Beginning" (my thread about it)
    And there are some .arc-files which I can open with EveryFileExplorer.

    And now I want to know: is there a way to unpack and repack .arc files or possibly, create new .arc files with own files inside of it?
    Warning: Spoilers inside!
     
  2. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    no one who know how I can do this?
     
  3. Romsstar

    Romsstar Operation Decoded

    Member
    1,093
    1,037
    Sep 14, 2008
    Gambia, The
    There certainly is a way it's just not that easy.
    If I recall correct EFE is open source right?
    Figure out how it reads the .arc format, write your own extractor and repacker based on this.
    Will save you time figuring out the format.
    That's about the best you could do.
    There will usually be a header, followed by a filetable, size descriptions and so on.
    Usually a stream reader+writer are used for such operations.
     
  4. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    uhh... i really don`t know how to write a Tool like this :/
     
  5. Romsstar

    Romsstar Operation Decoded

    Member
    1,093
    1,037
    Sep 14, 2008
    Gambia, The
    Then your only option is to ask someone who knows or wait for such a tool to appear.
     
  6. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    I have to wait then, I guess. I don`t know someone who could do this x_x
     
  7. Anton299

    Anton299 GBAtemp Regular

    Member
    119
    37
    Jan 18, 2012
    Kiev
    What is the header of that .arc file?
    .arc is just a file extension, not file format, AFAIK. Most likely it's just a file container (like DARC, NARC, U8, RARC, whatever) with the .arc extension.
    Or, maybe, you can just replace those .bclims in EFE?
     
  8. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    It's a "darc" header. With EFE, I can export bclims but not insert them back o_o
     
  9. Anton299

    Anton299 GBAtemp Regular

    Member
    119
    37
    Jan 18, 2012
    Kiev
  10. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    argh, that's weird x_x
    the weird thing is, I don`t have any idea how to create a unpacker/repacker for files :/
     
  11. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    No one who could help me with this? I really don't know how to create such a tool >_>
    It's weird that EveryFileExplorer and 3DSExplorer1.5.3 are able to read the files but not to reimport files :/
     
  12. ChrisX930
    OP

    ChrisX930 Banned

    Banned
    788
    317
    Sep 3, 2013
    Gambia, The
    Germany
    No one who could help me with this? :/
    A QuickBMS Script should be enough for export and reimport files from darc-files
     
  13. Safersky

    Safersky Newbie

    Newcomer
    4
    1
    Mar 21, 2015
    Switzerland
    Hi, there!
    I wonder how to convert .bclim to a regular picture format like bmp or png?
     
  14. RainThunder

    RainThunder GBAtemp Regular

    Member
    212
    134
    Jun 22, 2012
    Hanoi
    Open it with EveryFileExplorer, choose File -> Save As..., then choose the PNG format in the dropdown list. You can also use png2bclim
     
  15. puss2puss

    puss2puss ♻ThinkGreen♻

    Member
    737
    456
    Dec 18, 2013
    Canada
    ..so..
    ..any news about if its now possible to replace bclim files inside arc files?
     
  16. [^Blark^]

    [^Blark^] GBAtemp Fan

    Member
    459
    130
    Dec 19, 2012
    United States
    Yes it can be done.

    3 things are needed:
    darc tool
    python 2.7
    png2bclim

    1.extract the arc with darc tool I believe
    2.convert bclim img to png with png2bclim
    3.edit png
    4.run edited img through png2bclim
    5.and use darc tool to inject newly made bclim that will create a newly named arc file.
    6.replace this new arc with the old one in the romfs folder and rebuild rom or use layeredfs

    may be rusty on directions been awhile since ive done it.
     
    Last edited by [^Blark^], Nov 9, 2015
  17. CeeDee

    CeeDee hm?~

    Member
    3,822
    5,373
    May 4, 2014
    United States
    somewhere
    While we're on 3DS image formats, any news on the .tex format? It's used in Cave Story eShop, for instance.
     
  18. puss2puss

    puss2puss ♻ThinkGreen♻

    Member
    737
    456
    Dec 18, 2013
    Canada
    Thank you :)
    I already made a bunch of edited textures, so now all i need is to use darc tool to replace the bclim in it :)
    Gonna try it in a couple of minutes!
    Thanks for the help ;)
     
    [^Blark^] likes this.
  19. [^Blark^]

    [^Blark^] GBAtemp Fan

    Member
    459
    130
    Dec 19, 2012
    United States
    I know nothing on this format but a quick search I found a video on YouTube with a mega link to a tool too extract img from .tex files? but again I know nothing on them. sorry
     
  20. CeeDee

    CeeDee hm?~

    Member
    3,822
    5,373
    May 4, 2014
    United States
    somewhere
    I saw that, wrong/different type.

    And I know what the images are, as the EUR CIA I downloaded uses .png, but I need some way to convert png to tex as the USA eShop version uses .tex.