I have found a code online which, if implemented, can extract all of the 3D models from Kingdom Hearts 2, including the ones Yaz0r's tool can't extract. The problem is, it's in C# or something and I only know how to extract files from games with QuickBMS. So, can someone convert the following code to BMS script?
int calcHash(char *FileName)
{
int x, FileHash = -1;
for (unsigned int i = 0; i < strlen(FileName); i++ )
{
x = 7;
FileHash ^= FileName << 24;
do
{
if ( FileHash >= 0 )
{
FileHash *= 2;
}
else
{
FileHash *= 2;
FileHash ^= 0x4C11DB7;
}
x--;
}
while ( x >= 0 );
}
return -1 - FileHash;
}
[Request] Kingdom Hearts 2 BMS
- Mirrorman95
- ultra-veteran

- Posts: 353
- Joined: Tue Jul 20, 2010 2:08 am
- Has thanked: 16 times
- Been thanked: 23 times
[Request] Kingdom Hearts 2 BMS
BBSFM and KH2FM+ saves are compatible with KH2.5. viewtopic.php?t=13424
Re: [Request] Kingdom Hearts 2 BMS
That's just the code to compute the hash key (md5 in fact) for a given file name. That doesn't give you the actual filename itself.
