script can work good in reimport2 and there is no reason to bad happening but game always has been stoped work and give error
what is the problem?
problem is: need to fix CHUNK_ALL
what is the CHUNK_ALL? when you extracting whole archive, size of all file in folder are CHUNK_ALL (2704) and need to update in reimport mode how can i solve it? you can download test archive in this topic
findloc DIDX_POINT binary "\x44\x49\x44\x58" goto DIDX_POINT get DIDX_HEADER long get HEADER_HEADING long
goto 0x0 findloc DATA binary "\x44\x41\x54\x41" get DATA long get CHUNK_ALL long #all extracted size goto 0x0 findloc HEADER_TWO_SCOUND binary "\x44\x49\x44\x58" goto HEADER_TWO_SCOUND get DIDX_HEADER long get HEADER_TWO long math HEADER_TWO /= 12 #12, (CRC, OFFSET, SIZE long)
math DUMMY_ADDER = 24 math HEADER_HEADING + HEADER_ONE math HEADER_HEADING + DUMMY_ADDER
for i = 0 < HEADER_TWO get CRC long get OFFSET long get SIZE long math OFFSET + HEADER_HEADING string CRC p "%08x.wem" CRC log CRC OFFSET SIZE next i
right, good Script... but for pck (AKPK), not .bnk
if all files size (whole extrcted files Size) doesnt match with CHUNK_ALL, then game will going to (stop working!) or black screen or even audio can play, or some files cant play i have same problem in umod unreal engine 2.5 (.umd)! need to Update CHUNK_ALL too!
# Life Is Strange .bnk # not Supported reimport2 yet! # Script By Shokoniraya idstring "BKHD" get HEADER_ONE long
findloc DIDX_POINT binary "\x44\x49\x44\x58" goto DIDX_POINT get DIDX_HEADER long get HEADER_HEADING long
goto 0x0 findloc DATA binary "\x44\x41\x54\x41" get DATA long get CHUNK long #all extracted size goto 0x0 findloc HEADER_TWO_SCOUND binary "\x44\x49\x44\x58" goto HEADER_TWO_SCOUND get DIDX_HEADER long get HEADER_TWO long math HEADER_TWO /= 12 #12, (CRC, OFFSET, SIZE long)
math DUMMY_ADDER = 24 math HEADER_HEADING + HEADER_ONE math HEADER_HEADING + DUMMY_ADDER
for i = 0 < HEADER_TWO get CRC long get OFFSET long get SIZE long math OFFSET + HEADER_HEADING string CRC p "%08x.wem" CRC log CRC OFFSET SIZE next i
not Chunk_all, its just a memory scanner when game want to load, plug will check size of file, not size of full archive, and that is why bnk is decompressed, because of speed for reading by CPU and optimizing and some other thing...
anyway, i hope this will help you to set memory scanner size (dont use -r, just using as extracting mode)
GHOST DEAD wrote:not Chunk_all, its just a memory scanner when game want to load, plug will check size of file, not size of full archive, and that is why bnk is decompressed, because of speed for reading by CPU and optimizing and some other thing...
anyway, i hope this will help you to set memory scanner size (dont use -r, just using as extracting mode)
oh... and i forgot to tell you somthing, game cant read wem file in new offset, must be one by one (forgot bms and try something else)