Page 1 of 1

Blood Knights string .bin File

Posted: Sun Dec 01, 2013 2:13 pm
by reznov
How To Edit Blood Knights string .bin File?

Re: Blood Knights string .bin File

Posted: Tue Dec 03, 2013 3:47 pm
by reznov
reznov wrote:How To Edit Blood Knights string .bin File?
Can anyone take a look at this files.

Re: Blood Knights string .bin File

Posted: Thu Dec 05, 2013 10:29 am
by swuforce
The game has some kind of file validation, so editing is not possible until someone find out what hash is it.

Re: Blood Knights string .bin File

Posted: Sat Dec 07, 2013 11:04 pm
by swuforce
I search the game folder for keyword "hash", and found this in FledgeCore.dll: DJB2Hash, SDBMHash.
Does anyone know what are these things? :D

Re: Blood Knights string .bin File

Posted: Tue Dec 10, 2013 1:45 pm
by Ekey
This 2 functions used for strings.

Code: Select all

unsigned long DJB2Hash(unsigned char *pString)
{
    unsigned long pHash = 5381;
    int pChar;

    while (pChar = *pString++)
        pHash = ((pHash << 5) + pHash) + pChar;
    return pHash;
}

unsigned long SDBMHash(unsigned char *pString)
{
    unsigned long pHash = 0;
    int pChar;

    while (pChar = *pString++)
        pHash = pChar + (pHash << 6) + (pHash << 16) - pHash;
    return pHash;
}
Well i disable hash validation. Here results. In attach link for download. Enjoy.

Re: Blood Knights string .bin File

Posted: Wed Dec 11, 2013 4:06 am
by reznov
Perfect!
Thanks Ekey. :bravo:

Re: Blood Knights string .bin File

Posted: Wed Dec 18, 2013 9:26 pm
by swuforce
Here is a tool to edit bin file: https://www.sendspace.com/file/xpdpvz
And don't forget to use Ekey's patch.

Re: Blood Knights string .bin File

Posted: Thu Dec 19, 2013 6:00 pm
by reznov
Thanks!
It was a big help. :wink:

Re: Blood Knights string .bin File

Posted: Wed Jan 22, 2014 10:34 pm
by McGregor II
Any way to edit font.bin file, or how can I add polish signs in font? Link below is to the font.bin and other font files (including textures) in case it will be helpful.

http://www.sendspace.com/file/93p728

EDIT: Hey guys! I manage to edit font.bin file thanks to my fellow friend Brucie! He wrote a template for 010 Editor with which you can edit this file. Remember: do not insert new character (!), replace an already existing one. You can add new character on the texture but you can't add new one in file, replace some other unused character and use X and Y pixels address from the texture file.

Re: Blood Knights string .bin File

Posted: Thu Aug 14, 2014 9:37 pm
by GamerEdu
Sorry my english. Could someone get me the tools to extract the file string.bin? The links are off! I would love to translate this game. Thank you very much!

Re: Blood Knights string .bin File

Posted: Sun Apr 08, 2018 9:58 pm
by PetkaBY
Ekey wrote:This 2 functions used for strings.

Code: Select all

unsigned long DJB2Hash(unsigned char *pString)
{
    unsigned long pHash = 5381;
    int pChar;

    while (pChar = *pString++)
        pHash = ((pHash << 5) + pHash) + pChar;
    return pHash;
}

unsigned long SDBMHash(unsigned char *pString)
{
    unsigned long pHash = 0;
    int pChar;

    while (pChar = *pString++)
        pHash = pChar + (pHash << 6) + (pHash << 16) - pHash;
    return pHash;
}
Well i disable hash validation. Here results. In attach link for download. Enjoy.
Any have this patch and tool ? Update pleas
sorry for english if so.

Re: Blood Knights string .bin File

Posted: Mon Apr 09, 2018 8:15 am
by makcar

Re: Blood Knights string .bin File

Posted: Mon Apr 09, 2018 9:52 am
by PetkaBY
makcar wrote:@PetkaBY
Try this tool https://www33.zippyshare.com/v/StU3r9ws/file.html
Sanks. Anything by decision with Hash, Ekey remove it, but link dead.

Import text not working( create the same file with NEW_ prifix.