Open leontristain opened 4 years ago
Sorry for the really late reply. I'm going to be marking this repo as archived since I no longer will be able to maintain it and it honestly could use a bunch of rework to better support plugin loading.
My only suggestion would be to maybe try and swap out lz4.frame.decompress
with lz4.block.decompress
. The LZ4 compression handling for BSA archives was never fully tested with a ton of archives and I'm sure that there are a few that this will fail decompression. Again sorry for the trouble.
Hi,
Just wanted to report a problem. I tried to use
bethesda-structs
to extractCathedral Weathers - Textures.bsa
from the Cathedral Weathers and Seasons mod, and ran into an lz4-related crash.My python:
My virtual environment:
My sample repro script:
The output:
The lz4 stuff are beyond me to understand. Looking at other BSA extractors, the Bethesda Archive Extractor page has in its version history a line that says "0.07 - Corrected the size sent to LZ4 for decompression, which affected only a very small number of files." Maybe this is related?
Confirmed that the same bsa file can be successfully extracted through the Bethesda Archive Extractor (above mentioned GUI tool) and the BSA Browser, which comes with a cli utility that I can use for the time being. Still though, it would be nice to be able to code this in native python at some point.
Anyway, thanks for your library!