I'm working on a Lords Of Fallen text tool and the localization files have a checksum verification, what can be done with this script:
Code: Select all
#------------------------------------------------
# Lords Of The Fallen language *.bin CRC fixer
# Script version: 0.2
# Author: merlinsvk
#------------------------------------------------
idstring "\xFC\x89\xC5\xA3" # just a test if the input file is a supported .bin file
encryption crc 0x01800063 "32 0 0 19 1 1"
get SIZE asize
xmath TXTSIZE "SIZE - 0x18" # 0x18 = size of header
log MEMORY_FILE 0x18 TXTSIZE # 0x18 = start of the data block
encryption "" ""
get NAME basename
get EXT extension
string NAME p= "%s.%s_FIXED" NAME EXT
get SIZE asize
log MEMORY_FILE2 0 SIZE # create copy of file into RAM
putVarChr MEMORY_FILE2 0x04 QUICKBMS_CRC long # write new CRC value on position 0x04
putVarChr MEMORY_FILE2 0x14 TXTSIZE long # write text block size
log NAME 0 SIZE MEMORY_FILE2 # write new file on disk
But I don't understand what that two variables on "encryption crc" means: 0x01800063 "32 0 0 19 1 1".
I asked merlinsvk about it and he replied:
I have no idea. I just used Aluigi's CRC scanner and these values were in the results.
I would like to implement the crc update in my tool, can you explain me about it?