Page 2 of 2

Re: Obscure 2 - HVP files

Posted: Mon Dec 19, 2022 4:00 pm
by ikskoks
I have some good news for Obscure 2 fans. ;)

I've spent some time researching HVP archives and now it's clear to me what type of hash function was used to store filenames.
It turns out it was just regular CRC32.

File format is available on the wiki here http://wiki.xentax.com/index.php/Obscure_2_HVP
with all the notes/comments that should be useful for further research.
My focus was mainly on PC version of the game, but afaik PSP/PS2/WII versions uses the same file format.

I was able to correctly guess 80-90% of all hashes for PC release.
Here are the current results:

Code: Select all

cachpack.hvp --> 98.73%
kinepack.hvp --> 89.29%
loadpack.hvp --> 84.32%
datapack.hvp --> 91.37%
Some of the hashes are identical or similar in PS2/PSP release, so you can use it as a starting point in further research.

To make a good use of filenames, I've created a HVP extractor (and some other tools as well)
All of them are available here:
https://github.com/bartlomiejduda/Tools ... bsCure%202

Usage is explained in the readme file.

It is possible to get 100% of the correct hashes, but it requires a lot of time.
If you want to help, you can send me a PM with correct filenames and I will add them to the tool.

Here is a tutorial with explanation how to do it:
https://ikskoks.pl/tutorial-how-to-rest ... -archives/

Also, game is able to read files outside of the archives, but I didn't figure out how to do it yet. ;)
(even with the files unpacked in the correct directory, game preferred to load files from HVP archives)

If you know how to help with that, please let me know.


By the way, if you are interested in my "Obscure 1" research as well, here are the links:
http://wiki.xentax.com/index.php/Obscure_HVP
https://github.com/bartlomiejduda/Tools ... script.bms

Re: Obscure 2 - HVP files

Posted: Wed Dec 21, 2022 6:19 pm
by Ekey
Just found my old research stuff, might be useful :)

Re: Obscure 2 - HVP files

Posted: Wed Dec 21, 2022 11:01 pm
by ikskoks
Just found my old research stuff, might be useful
Thank you, I have compared your logs with my filenames list and there is some progress:

Code: Select all

kinepack --> from 89.29% to 100%
loadpack  --> from  84.32% to 85.97%
datapack --> from 91.37% to 94.2%
Here is a commit with new filenames https://github.com/bartlomiejduda/Tools ... 9934073e86

as for PACK_EN.hvp and STRMPACK.hvp, in my version of the game (PC version) those files comes already unpacked,
so I should have 100% of names for both of them, but to be sure I need to do some testing.
If someone could upload those archives, I would be able to test it.

Re: Obscure 2 - HVP files

Posted: Thu Dec 22, 2022 1:11 am
by Ekey
STRMPACK is missing 3 files and these filenames are in french encoding. You can check soundfx.xmc or streams.xmc files to get them, I don't remember which one :)

PS: PACK_EN.hvp and STRMPACK.hvp present in Russian version from 1C Company. You can download torrent here <link deleted by moderator> if you need it :)

Re: Obscure 2 - HVP files

Posted: Thu Dec 22, 2022 6:36 pm
by ikskoks
Ok, thanks, in the newest commit I was able to get those missing french names
https://github.com/bartlomiejduda/Tools ... 40da9c5900
(I had encoding issue in my tool... but now it's fixed)

So I can confirm that we have 100% names for STRMPACK.hvp (for PC release)
and 22.22% for PACK_EN.hvp (for PC release)
;)