Ekey wrote:Hm strange. You can see for example : on my screen offset for file language/portoguese.txt is 0x10674a85c but on your screen 0x10674a858 - difference 4. Seems not all files with FLAG 1 is compressed or bug with OFFSET. I check it later. Try this one
# Castlevania: Lords of Shadow 2 (PC) (PACKED format) 0.1a
#
# Written by Ekey (h4x0r)
# http://forum.xentax.com
#
# script for QuickBMS http://quickbms.aluigi.org
comtype unzip_dynamic
idstring "BFPK"
get VERSION short
get FLAG short
get FILES long
for i = 0 < FILES
get NSIZE long
getdstring NAME NSIZE
get SIZE long
get OFFSET longlong
savepos TEMP
goto OFFSET
get ZSIZE long
savepos OFFSET
if ZSIZE == SIZE
log NAME OFFSET SIZE
else
clog NAME OFFSET ZSIZE SIZE
endif
goto TEMP
next i
A silly request..what i need to change to extract the data?, NOT decompress, i want the files compressed.
Thanks.
DLC content 4 Revelations is complete 'resource pack' to which games switch's when DLC is activated. to make your mod working for DLC just put it in DLC folder for example /content/4/ and name Data01.packed - works like a charm. there is also DataEnglish.packed (in console 64kb chunk format) which contains one localized texture ('no wolves allowed'). didn't tried yet to override, but even if had to be replaced its just 326KB.
Hello
I wanted to open the file Castlevania Lords of Shadow 2 \ content \ 0 \ Data00.packed (1036 343 kb)
[quote]incomplete input file number 0, can't read 4 bytes.
anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted
[/quote]
# Castlevania: Lords of Shadow - Ultimate Edition (PC-DEMO) (DAT format) 0.3
#
# Written by Ekey (h4x0r)
# http://forum.xentax.com
#
# script for QuickBMS http://quickbms.aluigi.org
idstring "BFPK"
get VERSION long
get TABLESIZE long
math TABLESIZE += 16
savepos TABLEOFFSET
callfunction TableDecrypt 1
getdstring TRASH 0x10 MEMORY_FILE
get FILES long MEMORY_FILE
for i = 0 < FILES
get NSIZE long MEMORY_FILE
getdstring NAME NSIZE MEMORY_FILE
get SIZE long MEMORY_FILE
get OFFSET long MEMORY_FILE
if VERSION = 2
log NAME OFFSET SIZE
elseif VERSION = 3
goto OFFSET
get ZSIZE long
savepos OFFSET
clog NAME OFFSET ZSIZE SIZE
endif
next i
startfunction TableDecrypt
encryption aes_256_cbc "\x50\x43\x56\x80\x72\x73\xEE\x6F\xF1\x44\xF3\x6E\xEA\xDF\x79\x43\x6C\x69\x6D\x61\x78\x53\x74\x75\x64\x69\x6F\x73\x32\x30\x31\x33"
log MEMORY_FILE TABLEOFFSET TABLESIZE
encryption "" ""
endfunction
I want to translate (localization) Castlevania: Lords of Shadow, and use of the BMS script's Ekey and uppack sucessfully but when used reimporter 3 file: " english.txt "," arial20.alpha.dds "," bradley47.alpha.dds " the capacity increased file size and game not working. if only import "english.txt" the file size "Data00.dat" no change but could not get into the game. Thanks for any help!
I tried to test on PC and Xbos360 patch, working with text and try to extract file with quickbms, working normal. But with ps3 patch, it show an error. Please help!