Join also our Discord channel! Click here.

.arc-archives (Fire Emblem If) Repacker needed

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
ChrisX930
veteran
Posts: 152
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 2 times

.arc-archives (Fire Emblem If) Repacker needed

Post by ChrisX930 » Tue Jul 14, 2015 6:03 pm

Hey Guys,

I want to edit/create .arc-archives for Fire Emblem If (Nintendo 3DS).
They're a bit different than the .arc-archives from other games.
I'm not able to open/edit them with EveryFileExplorer.

There's already a tool to extract this files (FEAT) but this tool can't repack this files.

I'll upload one of this .arc-files, possibly someone could help me with this (would be awesome!)

I just want to edit the bch.lz files which are inside of this archive to use them Ingame.


THank you for your help!
You do not have the required permissions to view the files attached to this post.

ChrisX930
veteran
Posts: 152
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 2 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by ChrisX930 » Wed Jul 15, 2015 7:55 pm

/pushdatthreadupbecauseistillneedyourhelp

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3138
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 835 times
Been thanked: 1702 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by shakotay2 » Wed Jul 15, 2015 9:48 pm

come on, boy! Tell us the whole truth. :D

Your request consists of at least three tasks, doesn't it?
o pack *.png as *.bch
o compress *.bch to *.bch.lz
o pack the lz files into an *.arc archive

I found that there's an lz compression inside the source code but seems it's used on text files only.

1) what was your research so far?
2) did you ask the author for an update? (It's very unlikely that someone else will dig into the code.)
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

ChrisX930
veteran
Posts: 152
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 2 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by ChrisX930 » Thu Jul 16, 2015 10:41 am

I'm able to pack the *.png to *.bch already :P (using Ohana3DS for it).
I can compress the *.bch to *.bch.lz already :P (using DSDecmp.exe for it "DSDecmp.exe -c lz11 "File.bch")
The only problem is: I'm not able to repack the .arc-archive again with the modified files :\

2) Yea, I asked the Author already but he has no plans to add this feature at the moment...

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3138
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 835 times
Been thanked: 1702 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by shakotay2 » Thu Jul 16, 2015 11:05 am

thx for clearifying!
In my experience it's somewhat harder to pack than to unpack an archive.
Guess you've searched for a similar type of archive and didn't find any?
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

ChrisX930
veteran
Posts: 152
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 2 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by ChrisX930 » Thu Jul 16, 2015 11:13 am

shakotay2 wrote:thx for clearifying!
In my experience it's somewhat harder to pack than to unpack an archive.
Guess you've searched for a similar type of archive and didn't find any?
I guess this .arc-file type is similar to another .arc-filetypes that can be opened with EveryFileExplorer.
I tried to open this file with EFE but it does not work.
I've tried every .arc-tool but none of them worked.
Yes, I've searched for a similar type of archive^^

User avatar
shakotay2
MEGAVETERAN
MEGAVETERAN
Posts: 3138
Joined: Fri Apr 20, 2012 9:24 am
Location: Nexus, searching for Jim Kirk
Has thanked: 835 times
Been thanked: 1702 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by shakotay2 » Thu Jul 16, 2015 1:16 pm

ChrisX930 wrote:I guess this .arc-file type is similar to another .arc-filetypes that can be opened with EveryFileExplorer.
Talking about BustUp_WITCH.arc you've uploaded some months ago? Its signature is "darc" while the Fire Emblem .arc begins like this:

Code: Select all

Offset  0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

00000  3A 58 01 00 54 57 01 00  07 00 00 00 0A 00 00 00   :X..TW..........
00010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
Bigchillghost, Reverse Engineering a Game Model: viewtopic.php?f=29&t=17889
extracting simple models: viewtopic.php?f=29&t=10894
Make_H2O-ForzaHor3-jm9.zip
"You quoted the whole thing, what a mess."

ChrisX930
veteran
Posts: 152
Joined: Sun Feb 23, 2014 4:10 pm
Has thanked: 4 times
Been thanked: 2 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by ChrisX930 » Thu Jul 16, 2015 2:09 pm

shakotay2 wrote:
ChrisX930 wrote:I guess this .arc-file type is similar to another .arc-filetypes that can be opened with EveryFileExplorer.
Talking about BustUp_WITCH.arc you've uploaded some months ago? Its signature is "darc" while the Fire Emblem .arc begins like this:

Code: Select all

Offset  0  1  2  3  4  5  6  7   8  9  A  B  C  D  E  F

00000  3A 58 01 00 54 57 01 00  07 00 00 00 0A 00 00 00   :X..TW..........
00010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00
For the .darc-files, I've a tool already to replace files in it (does not work on this .arc-files)

3A 58 01 00 = Filesize?
54 57 01 00 = MetaOffset?
07 00 00 00 0A 00 00 00 = always 07 00 00 00 0A 00 00 00

User avatar
GovanifY
advanced
Posts: 59
Joined: Wed Apr 16, 2014 9:25 pm
Location: In the depths of a game...
Has thanked: 1 time
Been thanked: 32 times
Contact:

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by GovanifY » Thu Jul 16, 2015 3:07 pm

Tool has been providen to ChrisX930 and the Fire Emblem If Translation team by me.
If the mods aren't released in 3 month I'll publish the source. Other wise the source will be released the day the mods will be available.

If you have any necessity of it please contact me on skype or in pm

Bye,
-GY

P.S: Please close this discussion

EDIT: 3 months have passed so here goes nothing: https://github.com/GovanifY/FEIF_ARC/
Enjoy
The only limit I've encountered so far is my brain.

-----------------------------------------------
Ya can check my work here:
http://www.govanify.blogspot.fr
http://www.govanify.com
https://twitter.com/GovanifY

Panzah
advanced
Posts: 62
Joined: Wed Jul 21, 2010 10:11 pm
Has thanked: 6 times
Been thanked: 2 times

Re: .arc-archives (Fire Emblem If) Repacker needed

Post by Panzah » Tue Oct 18, 2016 5:41 pm

GovanifY wrote:EDIT: 3 months have passed so here goes nothing: https://github.com/GovanifY/FEIF_ARC/
Enjoy
Thanks for sharing this but unfortunately this didn't seem to work properly, as it wasn't processing the entire directory along with subdirectories and files inside them.
A friend of mine had a look at the source code and modified it to actually work, a few pointers were apparently wrong as well.
I'm attaching the modified source and compiled exe, the modified code has comments as to what was wrong.

There is however one problem my friend was unable to solve, some of the arc achives (at least all the DLC ones) seem to have some sort of verification for the files at the end of the file.
It seems like some sort of hash check that ends with "TFRC" at the end, in all of them. My friend was unable to figure it out so the modified tool I attached won't work for arc archives with that TFRC stuff but for others it should work nice and dandy.
If anyone is interested in trying to figure out the TFRC check thingy, here's a few sample files, look at the last 12 bytes:
https://mega.nz/#!SJhlEaRb!yDSFiePpABIB ... nLGyHNbb4k
You do not have the required permissions to view the files attached to this post.

Post Reply