Skip to content

[#52] feat(Vfs): support compressed VDF Union files#124

Merged
lmichaelis merged 5 commits intoGothicKit:mainfrom
skejt23:main
Mar 15, 2026
Merged

[#52] feat(Vfs): support compressed VDF Union files#124
lmichaelis merged 5 commits intoGothicKit:mainfrom
skejt23:main

Conversation

@skejt23
Copy link
Contributor

@skejt23 skejt23 commented Feb 25, 2026

This PR adds support for reading and saving zipped VDF files (Union ZippedStream format).
The support is optional (disabled by default) and can be turned on with ZK_ENABLE_ZIPPED_VDF cmake option.

See the issue #52 for more details.

What's been done to verify that it works:

  • Verified that Union.vdf file mentioned in the issue above can be successfully loaded by ZenKit.
  • Verified that "VDFSTool" (made by one of the authors of Union) which is now commonly used instead of "GothicVDFS" can read zipped files created by ZenKit, and correctly qualifies them as "zipped".
  • Added two test cases: one which reads basic_zipped.vdf file that was saved as zipped by the aforementioned VDFSTool, and the second which tests the round-trip: saves vdf as zipped, and then reads it.

@lmichaelis lmichaelis self-requested a review March 2, 2026 15:40
@lmichaelis lmichaelis added enhancement New feature or request modded Issues or features related to modifications of Gothic labels Mar 2, 2026
@lmichaelis
Copy link
Member

Thank you for this work! It looks good a cursory glance and I hope to find some time later this week to take a closer look :)

The failing tests on Windows are likely not related to this PR btw

Copy link
Member

@lmichaelis lmichaelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! I only a have a few minor requests.

@skejt23
Copy link
Contributor Author

skejt23 commented Mar 15, 2026

Thanks for the review! I made the changes you requested.

@lmichaelis lmichaelis merged commit 083cc5f into GothicKit:main Mar 15, 2026
10 of 12 checks passed
@lmichaelis
Copy link
Member

Thank you so much! It's merged :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request modded Issues or features related to modifications of Gothic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants