Skip to content

Edit and repack packages with chunk files - #39

Closed
w1tcherrr wants to merge 7 commits into
ValveResourceFormat:masterfrom
w1tcherrr:multi-chunk-editing
Closed

w1tcherrr wants to merge 7 commits into
ValveResourceFormat:masterfrom
w1tcherrr:multi-chunk-editing

Conversation

@w1tcherrr

@w1tcherrr w1tcherrr commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #40, which depends on #38, only the last 3 commits are new.

Allows editing packages that were read with their files in chunk files, and saving them back.

  • New files go into new chunk files after the highest one, existing chunk files are never written to.
  • Write keeps the location, preload and hashes of files in chunk files.
  • Write can write over the file the package was read from.
  • Repack: Write(path, repack: true) rewrites the chunk files compactly, drops the data of removed files and allows writing under another name.
  • The directory file is written like Valve's packer: sorted tree, BLAKE3 hashes, unsigned signature section.

@w1tcherrr
w1tcherrr force-pushed the multi-chunk-editing branch from 39e6c36 to 8140e31 Compare October 18, 2026 16:51
@xPaw xPaw closed this Oct 19, 2026
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.

2 participants