Skip to content

feat: add GEARSET.DAT parsing (only content, it needs libxivdat to parse the wrapper) #7

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

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

LouisBrunner
Copy link
Contributor

Resolves #6

I kept GearSlotType independent from Slot to avoid issues in chardat.rs but maybe it should be unified?
There are a bunch of flags and values I couldn't guess from the values so I marked them as "unknown".

Apart from this, you should be able to parse your own GEARSET.DAT 😄

@redstrate
Copy link
Owner

redstrate commented Mar 10, 2025

I kept GearSlotType independent from Slot to avoid issues in chardat.rs but maybe it should be unified?

FWIW your solution looks fine for now, I have a similar problem in char save data as I have to map between it's own integers and the race/subrace/gender enums. If I have a solution I like then I'll just clean it all up.

LGTM, but you need to add REUSE metadata at the top of your new module - see the others for an example. I also appreciate you including an example file to test with!

@redstrate redstrate merged commit 5378d72 into redstrate:main Mar 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing GEARSET.DAT files
2 participants