-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to repack properly #234
Comments
If this is one of these packed web files, UABEA can't handle it out of the box. We already had this conversation in a different issue, but some web files start with the standard bundle header so they look like just a bundle, but in reality there are many other files also packed after it as well. Whenever UABEA saves, it strips the rest of the data since it's not part of the bundle. I don't have an answer for how to handle it but I'm sure there's a separate listing file that shows which part of the packed file extracts to other files. |
This is indeed one of the web package files. It comes from the ba2.data file. Is there any other way to modify it? |
The last time this was asked was issue #223. I don't have a solution right now. |
Are you still interested in solving this, I can provide more details |
I have successfully modified global-metadata.dat and encapsulated it back to achieve string replacement |
Did you do that by overwriting the original file in a hex editor? Or something else? What would be best is to find a way to automate how to extract and repack the files. |
Almost, I achieved it by replacing the binary |
https://1drv.ms/u/s!Ah0MLfDa4AHqebRTCXYTIhzbE2o?e=NfRTEW |
The |
The |
The |
A simple binary replacement script with open('./ba2.data', 'rb') as f:
data = f.read()
with open('./global-metadata.dat', 'rb') as f:
metadata = f.read()
with open('./global-metadata_new.dat', 'rb') as f:
new_metadata = f.read()
# 替换二进制
new_data = data.replace(metadata, new_metadata)
with open('./ba2_new.data', 'wb') as f:
f.write(new_data) |
Everything was going fine until I tried to replace the |
When I tried to repackage a data.unity3d file, I found that even if I didn’t modify anything, the file he packed still couldn’t run normally, and no matter whether I used L4Z or LZAM, he couldn’t make him pack the same file as before.
File link: https://1drv.ms/u/s!Ah0MLfDa4AHqajuahlRKrWL2O7Q?e=h2iChD
The text was updated successfully, but these errors were encountered: