wfowler1 / LibBSP

C# library for parsing and reading BSP (Binary Space Partition) structures in Quake-based game engines
Other
92 stars 26 forks source link

LZMA compressed entity lump in Team Fortress 2 #1

Open xPaw opened 3 years ago

xPaw commented 3 years ago

I used your library to dump entity lumps from tf2 and csgo maps. And as it turns out lumps can be LZMA compressed in tf2 maps.

Is this something you're interested in adding support for?

As per: https://developer.valvesoftware.com/wiki/Source_BSP_File_Format#Versions Example map would be tf/maps/koth_undergrove_event.bsp

I've implemented the lzma decompression in my tool here: https://github.com/xPaw/EntityLumpDumper/commit/f15372cca44aadabe2f0773bf609eb1fa32e8001

wfowler1 commented 2 years ago

Ok, so finally getting back to this. Originally, my instinct was to not use the LZMA SDK because I don't much like the idea of adding dependencies on external libraries, partly because I'm not sure of the compatibility of source code licensing. But lately I've come around to the idea. I have a couple other priorities in this library that I'd like to hit first, but I think I'll do this. Thanks!