READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Castlevania: Lords of Shadow

The Original Forum. Game archives, full of resources. How to open them? Get help here.
mrvan
ultra-n00b
Posts: 1
Joined: Sun Sep 25, 2011 6:01 pm

Re: Castlevania: Lords of Shadow

Post by mrvan » Sat Feb 23, 2013 11:52 pm

aluigi wrote:I have written a script that should match the format at 100% (music.packed included):
http://aluigi.altervista.org/papers/bms ... evania.bms

Tried your link, and it didn't work for me.

User avatar
aluigi
VVIP member
VVIP member
Posts: 1917
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 644 times
Contact:

Re: Castlevania: Lords of Shadow

Post by aluigi » Wed Mar 06, 2013 2:26 pm

it has been tested with an archive of over 600 megabyte of which I don't remember the name.

anyway what exact error message you receive?

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 141 times
Contact:

Re: Castlevania: Lords of Shadow

Post by evin » Wed Jul 31, 2013 6:34 pm

The PC demo available from Steam.
Unfortunately the dat files (.packed on console) still have BFPK header, but the version is 3 (not 0 or 1), and I cannot see the filenames inside the file.
Maybe encrypted or compressed. :[

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 821 times

Re: Castlevania: Lords of Shadow

Post by Ekey » Wed Jul 31, 2013 9:28 pm

Well i see names like (7C66E2C3D83B12F2.bik, 07E3A945F071A231.bik) in BIK folder. Maybe file names in archives just hashed?

Edited: Hashed video file names (FNV64-1a)
Last edited by Ekey on Thu Aug 01, 2013 5:38 pm, edited 2 times in total.

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 276
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

Re: Castlevania: Lords of Shadow

Post by Haoose » Wed Jul 31, 2013 9:28 pm

evin
OffZip - worked
zlib
English Text - http://pastebin.com/KQ0bSxTE
But filetable encrypted =(

Ekey, там же еще должны быть смещения и размеры. Тоже пошифрованы. Так-то можно было бы начать перевод, ибо текст полный в демке. Около 400 новых строк по сравнения с PS3-версией.
-= GP-team =-
Image

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 821 times

Re: Castlevania: Lords of Shadow

Post by Ekey » Thu Aug 01, 2013 11:27 am

Well table really encrypted > it's AES / 256 / CBC mode :)

see below
Last edited by Ekey on Thu Aug 01, 2013 3:54 pm, edited 1 time in total.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 821 times

Re: Castlevania: Lords of Shadow

Post by Ekey » Thu Aug 01, 2013 3:24 pm

Done.

Code: Select all

# 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

User avatar
evin
ultra-veteran
ultra-veteran
Posts: 336
Joined: Sat Aug 05, 2006 2:04 pm
Location: Hungary
Has thanked: 1 time
Been thanked: 141 times
Contact:

Re: Castlevania: Lords of Shadow

Post by evin » Thu Aug 01, 2013 7:31 pm

Ekey, Haoose : :bravo:

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 276
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

Re: Castlevania: Lords of Shadow

Post by Haoose » Fri Aug 02, 2013 6:26 am

Ekey, not work pack =(
P.S. Что-то не до конца разобрано видимо, запаковать не вышло по этому алгоритму. Пробовал поместить измененный файл в конец dat-файла. Игра не стартует. Хотя измененный файл корректно распаковывется твоим скриптом. Где-то еще проверка есть. Или CRC, или может быть последовательность файлов имеет значение.
-= GP-team =-
Image

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 821 times

Re: Castlevania: Lords of Shadow

Post by Ekey » Fri Aug 02, 2013 7:26 am

Edited: Reimport work great. Checked.

User avatar
Savage
VIP member
VIP member
Posts: 560
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 17 times

Re: Castlevania: Lords of Shadow

Post by Savage » Wed Aug 28, 2013 12:28 pm

Ekey wrote:Edited: Reimport work great. Checked.
How you did it? i can't i get errors
example:

unpacked the file Data00.dat with your script, this worked great and i want to add again the file scripts\preload_lua.lbt, i did:
quickbms.exe -w -r castlevania.bms unpacked\scripts\preload_lua.lbt Data00.dat
and i get the error:
- REIMPORT mode enabled!
- open input file d:\Program Files (x86)\casteldata\unpacked\scripts\preload_lua
.lbt
- open script castlevania.bms
- set output folder Data00.dat
- the folder doesn't exist, do you want to create it (y/N)?:
Any idea?

Thanks 8D
Image

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 276
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

Re: Castlevania: Lords of Shadow

Post by Haoose » Wed Aug 28, 2013 2:56 pm

Savage
Try:

Code: Select all

quickbms.exe -w -r castlevania.bms Data00.dat unpacked\
-= GP-team =-
Image

benzinjiq snake
n00b
Posts: 11
Joined: Mon Jul 18, 2011 3:07 pm
Has thanked: 7 times

Re: Castlevania: Lords of Shadow

Post by benzinjiq snake » Wed Aug 28, 2013 8:59 pm

Hello, can anyone give me cyrillic fonts for the game? I've made Bulgarian translation for PS3 and 360, but I cannot adapt the fonts from console versions to PC version. I see here some of you guys speak Russian and if you share your fonts from russian localizations I'll apreceate your help. Thank you in advance. :)

Edit: Fonts are stored in Data00.dat

User avatar
Savage
VIP member
VIP member
Posts: 560
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 17 times

Re: Castlevania: Lords of Shadow

Post by Savage » Thu Aug 29, 2013 9:22 am

Haoose wrote:Savage
Try:

Code: Select all

quickbms.exe -w -r castlevania.bms Data00.dat unpacked\
Thanks!! works great :D
Image

User avatar
Haoose
mega-veteran
mega-veteran
Posts: 276
Joined: Tue Mar 01, 2011 9:34 pm
Has thanked: 68 times
Been thanked: 181 times
Contact:

Re: Castlevania: Lords of Shadow

Post by Haoose » Thu Aug 29, 2013 7:44 pm

benzinjiq snake
Rus Fonts
http://yadi.sk/d/BXSj5eG48TzwJ
-= GP-team =-
Image

Post Reply