Skip to content

Hades II GR2 #286

Description

@DarkBlade909

I know this isn't really a supported game, but Norbyte added support for it over a year ago so I figured I'd try.

A few months ago, Hades 2 updated it's GR2 format, splitting the meshes into a separate .gpk and .sdb file. I can't find any info on these formats online, but the GPK seems to be almost identical to the previous LZ4 compressed GR2 files, with an added string on the header for the mesh name, and all of the rest of the strings in the file removed. The SDB (string database) is where the strings now reside. For the simple GPK files, removing the string at the top (entire section before byte F9), renaming to .gr2.lz4, and using this python LZ4 decompressor, we can retrieve the decompressed .gr2 file. This doesn't work on more complicated meshes (maybe ones with animations?) Unfortunately, this is where my knowledge ends. Granny viewer fails to open these GR2 files without the data from the .sdb, and I don't understand the format enough to join the two files together.

I'm wondering if this is something you'd support with lslib, or if you can offer assistance in any way.

If you're interested, I've uploaded a small example mesh as a gist
GPK: https://gist.github.com/DarkBlade909/507d464edd95153c8960e770beb72cb5
SDB: https://gist.github.com/DarkBlade909/fc4f285ff2e28b657bd44b4846502af8

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