craftablescience / VPKEdit

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

Crash when trying to extract files from BSP #139

Closed Tiagoquix closed 6 months ago

Tiagoquix commented 6 months ago

Describe the Bug

Hi there.

When I try to extract files from a BSP file, the program crashes and only creates a folder with the map name.

I assume this is due to the fact that VPKEdit does not display a ZIP file that is often included with maps because the standard way of compressing files is not very compatible with normal extraction. Therefore, the ZIP included by the author in the map's BSP is used to extract the map normally without any problems.

The ZIP file, however, is not displayed in VPKEdit. It is possible to confirm its existence using GCFScape, another program that handles VPKs and displays the file correctly.

There is also usually another file besides a ZIP, but I don't remember its extension.

To Reproduce

Try to extract files from a BSP file. Crashes.

Operating System

Fedora Linux 40 KDE

craftablescience commented 6 months ago

Duplicate of #99 - LZMA compression is unsupported currently, still waiting for the xz fiasco to settle

Tiagoquix commented 6 months ago

Wouldn't it be more interesting to have the ZIP file displayed, so we would be able to extract the ZIP file and then proceed from there?

This way, we don't have to deal with compression issues (from what I believe).

craftablescience commented 6 months ago

If you only want to extract the zip file, 7-zip or GCFScape can probably do that for now. I'd rather add support for LZMA compression than add a halfway hack