nesrak1 / UABEA

c# uabe for newer versions of unity
MIT License
1.13k stars 144 forks source link

Packing resources issue #188

Closed AtsushiShiga closed 1 year ago

AtsushiShiga commented 2 years ago

Working on latest games fan-localisation While trying to replace MonoBehaviour file with localisation, UABEA (the latest build) gives me negative path ID, and after changing even one single byte of text there and replacing it with a new one, the game enters endless black screen. This game is not il2cpp-compiled. Filename - localize_assets_all_d32ca783d25393ad76183914c19258a8.bundle, it is from subfolder in StreamingAssets. It would be nice if this issue would be solved.

nesrak1 commented 2 years ago

The issue is not with UABEA but the addressables CRC checking. See #129. I posted an updated python script in the discord to remove this check:

https://cdn.discordapp.com/attachments/862035809795964969/927372959746768996/updatecatalog.py Run this python script in the StreamingAssets/aa folder (next to catalog.json) and it should make a catalog_new.json file with CRCs disabled. Just replace the old one with the new one.

AtsushiShiga commented 2 years ago

I thought it works fine, but it seems this script requires catalog.json and settings.json in the folder, but there is no catalog.json, only catalog.bundle + settings.json

nesrak1 commented 2 years ago

I've heard of catalog.bundle but I don't think I have any games that use that yet. If I had to guess, if you open that bundle with UABEA you'll find a TextAsset with catalog.json inside.

AtsushiShiga commented 2 years ago

You're totally right. There is TextAsset, but when I add it to folder for using script, it gives me another error JCejxwVimZ8

nesrak1 commented 2 years ago

I'll try to find a game later today that uses this new catalog format and I'll get back to you.

AtsushiShiga commented 2 years ago

Thanks in advance!

nesrak1 commented 2 years ago

Just to keep you updated, I'm making an addressables catalog.json/bundle editing library and will make it an automatic part of UABEA when you save any addressables bundle.

AtsushiShiga commented 2 years ago

Thanks! I'll be looking forward to it.

AtsushiShiga commented 1 year ago

Tried to deserialize catalog.json from catalog.bundle, and it ends with error using your new cleaning tool image

nesrak1 commented 1 year ago

The game is probably an older version of Addressables (from an older version of Unity). I'm guessing m_InstanceProviderData doesn't exist in your json file.

I haven't yet figured out how the fields change over multiple versions, so if you want to help with that, feel free to.

AtsushiShiga commented 1 year ago

Well, I really want to, but really don't know, where to start. Should I send you a link to this file? As far as I can see, m_InstanceProviderData exists there in the third line under "m_Script" brackets.

nesrak1 commented 1 year ago

Do you have Discord? It might be easier to work you through it on there.

Edit: just reread your message. I think you export dumped rather than used the export TextAsset plugin since m_Script is a field in TextAsset.

AtsushiShiga commented 1 year ago

Well, it works now! Thank you for noticing my mistake!