Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Blood Knights string .bin File

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
reznov
advanced
Posts: 44
Joined: Fri Dec 17, 2010 11:24 am
Has thanked: 16 times

Blood Knights string .bin File

Post by reznov »

How To Edit Blood Knights string .bin File?
You do not have the required permissions to view the files attached to this post.
reznov
advanced
Posts: 44
Joined: Fri Dec 17, 2010 11:24 am
Has thanked: 16 times

Re: Blood Knights string .bin File

Post by reznov »

reznov wrote:How To Edit Blood Knights string .bin File?
Can anyone take a look at this files.
swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 14 times
Been thanked: 106 times

Re: Blood Knights string .bin File

Post by swuforce »

The game has some kind of file validation, so editing is not possible until someone find out what hash is it.
swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 14 times
Been thanked: 106 times

Re: Blood Knights string .bin File

Post 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
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Blood Knights string .bin File

Post 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.
You do not have the required permissions to view the files attached to this post.
reznov
advanced
Posts: 44
Joined: Fri Dec 17, 2010 11:24 am
Has thanked: 16 times

Re: Blood Knights string .bin File

Post by reznov »

Perfect!
Thanks Ekey. :bravo:
swuforce
veteran
Posts: 121
Joined: Thu Nov 05, 2009 8:46 pm
Has thanked: 14 times
Been thanked: 106 times

Re: Blood Knights string .bin File

Post 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.
Last edited by swuforce on Thu Jun 26, 2014 7:10 am, edited 1 time in total.
reznov
advanced
Posts: 44
Joined: Fri Dec 17, 2010 11:24 am
Has thanked: 16 times

Re: Blood Knights string .bin File

Post by reznov »

Thanks!
It was a big help. :wink:
User avatar
McGregor II
beginner
Posts: 25
Joined: Tue Jun 29, 2010 1:21 am
Location: Polska

Re: Blood Knights string .bin File

Post 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.
You do not have the required permissions to view the files attached to this post.
Image
User avatar
GamerEdu
ultra-n00b
Posts: 2
Joined: Thu Aug 14, 2014 9:17 pm

Re: Blood Knights string .bin File

Post 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!
PetkaBY
ultra-n00b
Posts: 4
Joined: Mon Aug 11, 2014 11:49 am
Has thanked: 1 time

Re: Blood Knights string .bin File

Post 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.
User avatar
makcar
veteran
Posts: 154
Joined: Mon May 12, 2014 10:41 pm
Has thanked: 22 times
Been thanked: 45 times

Re: Blood Knights string .bin File

Post by makcar »

PetkaBY
ultra-n00b
Posts: 4
Joined: Mon Aug 11, 2014 11:49 am
Has thanked: 1 time

Re: Blood Knights string .bin File

Post 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.
Post Reply