craftablescience / VPKEdit

A CLI/GUI tool to create, read, and write several pack file formats.
https://developer.valvesoftware.com/wiki/VPKEdit
MIT License
211 stars 17 forks source link

BSP paklump editing is currently broken #171

Closed craftablescience closed 1 day ago

craftablescience commented 2 weeks ago

Describe the Bug

When a BSP is modified and saved, the paklump will be written incorrectly, potentially corrupting the BSP?

This is a regression in v4.2.3. v4.2.2 and lower will correctly edit the BSP paklump.

To Reproduce

  1. Open BSP
  2. Remove a file
  3. Save
  4. Close BSP
  5. Reopen BSP
  6. File contents are either missing or unreadable

VPKEdit Version

4.2.3

Operating System

n/a