mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
They're used by Fallout 4. BA2 file and folder hashes are 32-bit, so collisions are much more likely than with BSAs, which use 64-bit hashes. I put in some logging to check the likelihood of collisions, and found that the largest number of assets loaded was by Fallout4.esm (no surprise), which loaded 371182 files across 5746 folders, with the most files in one folder being 124871. That puts the probability of a hash collision within that folder at above 80%. I did see different Fallout4 -*.ba2 files contain files with the same combination of folder and file hashes, and similar for DLCUltraHighResolution -*.ba2 files, so I'm going to try calculating 64-bit hashes from the file paths stored in the BA2 files.