Kirkman / STTApi

Star Trek Timelines API
GNU General Public License v3.0
0 stars 1 forks source link

Asset bundles don't parse correctly #1

Open Kirkman opened 4 years ago

Kirkman commented 4 years ago

There still seems to be a problem with these assets, which started several months ago.

As far as I can tell parseAssetBundle() doesn't parse .sd, .ld, and other asset bundle files correctly any more.

I don't know anything about Unity. Not sure if the unitiyfs-asset-parser library can be fixed, or if a new library is needed.

This issue in an unrelated repo indicates the asset bundle format changed in 2019. Not sure if that's what we're facing here.

Also, another repo has its own altered version of unitiyfs-asset-parser from 8 months ago. Not sure if that bears on this problem, either.

michaelsmoody commented 4 years ago

Good find. I suspect that the format change IS the issue. Looking into it now

michaelsmoody commented 4 years ago

Research notes:

https://www.imbushuo.net/blog/archives/505 https://github.com/marcan/deresuteme/commit/f388056646315b8cf33d2ef45715ebcd30fe261a https://github.com/HearthSim/UnityPack and https://github.com/HearthSim/UnityPack/pull/94 https://github.com/keichi/binary-parser

More as I continue to research

Kirkman commented 4 years ago

Just a note to say I have been methodically going through unitiyfs-asset-parser and comparing it with HearthSim's UnityPack (which it clearly is based on).

I made several changes that seem to be allowing unitiyfs-asset-parser to correctly parse v17 bundles (which is what I'm seeing from STT right now).

It's still not quite working right in the app, though. I'll check in again soon.

michaelsmoody commented 4 years ago

Do you have a branch you're working on that I can pull and review?

Kirkman commented 4 years ago

No, I don't. It's still a mess, but I'll put something up here when I have a little more clarity.

Kirkman commented 4 years ago

It is working. I need to do a little more to properly integrate this updated version into STT, but you can see the changes here:

https://github.com/Kirkman/unityfs-asset-parser/commit/43a0da893a61eb6b761539c1c466d74bca2c46ce