Skip to content

Find a way to extract structs.dat for FF's Unity version #11

@CakeLancelot

Description

@CakeLancelot

See title.

The main reason we would want to do this is mainly for assets that don't include their type trees, causing them to not read properly.

We can get closer by using an older publicly available structs.dat, for instance I have experimented with using the structs from Unity 3.4.0 which allows me to at least list an asset's objects, but there is still a lot broken.

Another use case is creating objects from scratch. Normally, if you attempt to create an object whose type id doesn't yet exist in an asset file, it will pull it from structs.dat. Since our structs.dat is from a newer Unity version, I often have to rename/remove fields in order to get it to match the old version first.

One disadvantage would be that it would be more difficult to open files from newer Unity versions in UPFF, but given that's not really the primary use case I think it's a fine tradeoff.

References:
HearthSim/UnityPack#8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions