ROM Hack [Help] Decompressing .arc with unusual(?) header

kyrosa

New Member
OP
Newbie
Joined
Jul 22, 2019
Messages
3
Trophies
0
Age
35
XP
596
Country
United States
Hello. I've been working on translating Haikyuu Cross Team Match, and I've run into a bit of a problem with some of the .arc files that hold most of the game script and UI resources. For most of the .arc files, the usual tools (EFE, kuriimu, tinke, etc.) work just fine, but many of the larger archives that have the most important data don't work. They all start with this "ustarc" header, and the structure of archive seems really simple to understand, but none of the utilities I've tried just can't make it work.

I've attached a picture of a sample of one of the smaller archives that shows the structure pretty well, but the larger archives have the same format:

The red part is the first 8 bytes, clearly.
The blue part at 0xC tells the number of files in the archive (6).
The green part at 0x10 points to the list of filenames (starting at 0x78.
And the purple part lists location of the first file (at 0x180), it's length (923 bytes), and the location of it's filename (bl_cam.bch), each with it's own 4 byte pointer.

So, even though this archive seems to be laid out pretty simply, I can't extract the files without individually going to each pointer, copying the compressed file, putting them in a new hex file, then decrypting them, which would be a nightmare considering there are hundreds of game script files to go through. I'm hoping someone can point me toward a easier solution for decompressing. I've never been able to find any documentation or any other info on this "ustarc" header anywhere online, but I'm a bit of a beginner when it comes to this sort of thing so I might be missing something completely obvious.

Thanks in advance, and tell me if there's any other info I can give to sort this out.
 

Attachments

  • header sample.png
    header sample.png
    32.1 KB · Views: 314

Orvurator

Member
Newcomer
Joined
Mar 26, 2020
Messages
5
Trophies
0
Age
23
XP
65
Country
United States
hey i'm dealing with the same issue, I tried using seven different arc extraction tools and none worked. Not sure what to do at this point
 

kyrosa

New Member
OP
Newbie
Joined
Jul 22, 2019
Messages
3
Trophies
0
Age
35
XP
596
Country
United States
Sorry I didn't respond to this sooner. I actually ended writing a few quickbms scripts to work with these files and as far as I can tell they work fine for both extraction and insertion. I'll post them as an attachment if you're interested. 'haikyuu_ustarc' works on files with the 'ustarc' header, and 'haikyuu_ustcomp' is for ones with the 'ustcomp' header. Just rename them to be .bms files and they should work.

Are you looking into Cross Team Match, too? I can't promise it will work on other games, but you're free to give it a try.
 

Attachments

  • haikyuu_ustarc.txt
    337 bytes · Views: 77
  • haikyuu_ustcomp.txt
    142 bytes · Views: 81

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    They're asking for a tip.
  • Veho @ Veho:
    "Support us on Patreon."
    +1
  • The Real Jdbye @ The Real Jdbye:
    and when you get caught the fine is probably less than what you made by being a jackass
  • SylverReZ @ SylverReZ:
    @The Real Jdbye, They pulled a Completionist.
  • Veho @ Veho:
    It's like, I'm supporting you by buying your overpriced crap.
  • Veho @ Veho:
    It's not a charity drive, they're outright asking for more money.
  • The Real Jdbye @ The Real Jdbye:
    if you send like 25% of it to charity and take the rest as "operating costs" then it's perfectly legal. that's what half the big charities do anyway
    +1
  • Veho @ Veho:
    This is not a charity, it's just them asking for money so they can have money.
  • The Real Jdbye @ The Real Jdbye:
    yeah they didn't @SylverReZ i'm just saying that would be more effective
    +1
  • The Real Jdbye @ The Real Jdbye:
    everybody hates forced tipping but people like donating to charities
    +1
  • The Real Jdbye @ The Real Jdbye:
    so glad tipping culture is not a thing here but doesn't stop some places from trying... bars for some reason always make you type the price into the card scanner and i always type my pin... luckily it checks for that
  • SylverReZ @ SylverReZ:
    @The Real Jdbye, I have a thought. Do the charities even donate to help poor African children or anybody in need?
  • The Real Jdbye @ The Real Jdbye:
    drunk people tip more i guess
  • The Real Jdbye @ The Real Jdbye:
    and the nearest pizza place does it too
  • SylverReZ @ SylverReZ:
    Drunkards buy more beer.
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ africa doesn't want our help. the african government gets mad every time we donate anything because it makes them seem weak
    +1
  • The Real Jdbye @ The Real Jdbye:
    that pizza place also happens to serve beer... i sense a pattern here
    +1
  • Veho @ Veho:
    They accept it though.
  • Veho @ Veho:
    They make a show of "not needing help" but then take it anyway.
  • Veho @ Veho:
    I mean they do have a point, developing nations don't need a can of beans, they need tools to grow their own beans.
  • Veho @ Veho:
    But that's a very long term project and it's easier to just pelt them with cans.
  • Veho @ Veho:
    BEAN UP!
  • The Real Jdbye @ The Real Jdbye:
    they still complain when people give them tools so idk
  • Veho @ Veho:
    Fucking SP is $100 with shipping and customs, grumble grumble.
    Veho @ Veho: Fucking SP is $100 with shipping and customs, grumble grumble.