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: Select all
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: