[Request] Kingdom Hearts 2 BMS

Post questions about game models here, or help out others!
Post Reply
User avatar
Mirrorman95
ultra-veteran
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

Post by Mirrorman95 » Thu Aug 05, 2010 2:01 am

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;
}
BBSFM and KH2FM+ saves are compatible with KH2.5. viewtopic.php?t=13424

yaz0r
beginner
Posts: 39
Joined: Thu Sep 23, 2010 9:32 am
Been thanked: 1 time

Re: [Request] Kingdom Hearts 2 BMS

Post by yaz0r » Thu Sep 23, 2010 9:36 am

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.

Post Reply