Looking for code for the .bsa file hashes

Post » Thu Sep 27, 2012 9:12 am

I am working on code that will load the BSA files and game data (including loose files) exactly the same way as the game does it but I need some code to calculate the BSA file hashes.

There is code here
http://www.uesp.net/wiki/Tes4Mod:BSA_File_Format
but its in Python and I cant read Python. Does anyone have something in a language like C++ or can someone help me come up with a C++ version of the Python code?
User avatar
sophie
 
Posts: 3482
Joined: Fri Apr 20, 2007 7:31 pm

Post » Thu Sep 27, 2012 12:48 am

I am working on code that will load the BSA files and game data (including loose files) exactly the same way as the game does it but I need some code to calculate the BSA file hashes.

There is code here
http://www.uesp.net/wiki/Tes4Mod:BSA_File_Format
but its in Python and I cant read Python. Does anyone have something in a language like C++ or can someone help me come up with a C++ version of the Python code?
Google BSAOpt by Ethatron. It's in C and C++.

In the future you might also be interested be interested in using libbsa, which is a library for reading and writing BSA files that I'm in the process of writing, using code from BSAOpt. It's not released yet though.
User avatar
Bird
 
Posts: 3492
Joined: Fri Nov 30, 2007 12:45 am

Post » Thu Sep 27, 2012 4:59 am

Thanks, the code there is perfect and yes libbsa sounds good.
User avatar
Luis Reyma
 
Posts: 3361
Joined: Fri Nov 02, 2007 11:10 am

Post » Thu Sep 27, 2012 12:47 am

Such a library would be greatly appreciated
User avatar
Ricky Rayner
 
Posts: 3339
Joined: Fri Jul 13, 2007 2:13 am


Return to IV - Oblivion