Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Documents about dual UnityFS headers?

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
ice
beginner
Posts: 28
Joined: Mon Mar 11, 2019 6:24 pm
Has thanked: 1 time

Documents about dual UnityFS headers?

Post by ice »

Hello everyone!
I found that many games have two UnityFS headers. All data before the second UnityFS header must be deleted to correctly identify the file.
However, many games have a lot of files, and the offset of the second UnityFS header of many files is different. Manual modification is very troublesome. . .
I have a bms script that determines the offset and then deletes it, which is not what I want.
Code:
get ArcName filename
set Name string "new\\"
string Name + ArcName
get Size asize
math Size - 0x04
log Name 0x04 Size


My idea is to determine the offset of the second header through the bms script, and then use math Size-the offset of the second header. I don't know how to write this script.
help me. . .

.

The following samples belong to the same game:
Desktop.zip
You do not have the required permissions to view the files attached to this post.
User avatar
ikskoks
Moderator
Posts: 1666
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 647 times
Been thanked: 431 times
Contact:

Re: Documents about dual UnityFS headers?

Post by ikskoks »

Check this script
https://github.com/bartlomiejduda/Tools ... script.bms

It works on all of your samples ;)
Post Reply