Offtopic: Into Commodore 64 (6502) coding, pixeling or music?
Xentax is looking for new members for the C64 activities!
Just drop us a message at forum@xentax.com and join the Scene Team!

Forum rules: Click here

Castlevania: Lords of Shadow

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Panzah
advanced
Posts: 61
Joined: Wed Jul 21, 2010 10:11 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Castlevania: Lords of Shadow

Post by Panzah » Sat Nov 02, 2013 9:59 am

Thank you very much, will test it now.
And actually it's the PS3 version demo, but PC is supposed to be released soon along with pre-order page for LoS2.
Also Lords of Shadow - Mirror of Fate HD is coming to PC later this year too.

Thief1987
advanced
Posts: 72
Joined: Wed Jan 18, 2012 5:11 am
Has thanked: 1 time
Been thanked: 29 times

Re: Castlevania: Lords of Shadow

Post by Thief1987 » Sat Nov 02, 2013 10:26 am

Hm, for what version this script? Xbox version use chunk compression, zlibbed blocks - 64kb
Last edited by Thief1987 on Sat Nov 02, 2013 10:59 am, edited 1 time in total.

Panzah
advanced
Posts: 61
Joined: Wed Jul 21, 2010 10:11 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Castlevania: Lords of Shadow

Post by Panzah » Sat Nov 02, 2013 10:42 am

It's for PS3 version, as that's the one I requested it for and uploaded example files of.

Also, it doesn't seem to work quite right. All files that are extracted that are EXACTLY 64 KB are broken. Music files simply cut off at points they shouldn't, textures are inopenable and such.
Script needs revision.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1645
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 68 times
Been thanked: 825 times

Re: Castlevania: Lords of Shadow

Post by Ekey » Sun Nov 03, 2013 9:51 am

Well here updated script.

Code: Select all

# Seeing as Lords of Shadow 2 (PS3-DEMO) (PACKED format) 0.2
# 
# Written by Ekey (h4x0r)
# http://forum.xentax.com
# 
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic

idstring "BFPK"
get VERSION long

if VERSION = 256
    get FILES long
elseif VERSION = 258
    get TABLESIZE long
    get FILES long
endif

for i = 0 < FILES
    get NSIZE long
    getdstring NAME NSIZE
    get SIZE long
    get OFFSET long
    get NULL long
    savepos TEMP

    if VERSION = 256
        log NAME OFFSET SIZE
    elseif VERSION = 258
	
        goto OFFSET
        get FULLZSIZE long
        savepos CHUNKOFFSET
		
        log MEMORY_FILE 0 0
        append
        set TEMPZSIZE long 0

        #Ugly part for decompress chunks :)

        do
            goto CHUNKOFFSET
            get CHUNKZSIZE long
            math TEMPZSIZE += CHUNKZSIZE
            math TEMPZSIZE += 4
            savepos OFFSET
            clog MEMORY_FILE OFFSET CHUNKZSIZE CHUNKZSIZE
            math CHUNKOFFSET += CHUNKZSIZE
            math CHUNKOFFSET += 4
        while TEMPZSIZE < FULLZSIZE
		
        append
        log NAME 0 SIZE MEMORY_FILE
        goto TEMP
    endif
next i

Panzah
advanced
Posts: 61
Joined: Wed Jul 21, 2010 10:11 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Castlevania: Lords of Shadow

Post by Panzah » Sun Nov 03, 2013 12:13 pm

This one seems to work perfectly, much appreciated. Hopefully it will work on the final build of the game too.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1645
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 68 times
Been thanked: 825 times

Re: Castlevania: Lords of Shadow

Post by Ekey » Sun Nov 03, 2013 7:44 pm

Panzah wrote:This one seems to work perfectly, much appreciated. Hopefully it will work on the final build of the game too.
I do not think that anything will change in final release.

cienislaw
n00b
Posts: 15
Joined: Fri Mar 29, 2013 10:22 pm
Has thanked: 5 times
Been thanked: 1 time

Re: Castlevania: Lords of Shadow

Post by cienislaw » Thu Nov 07, 2013 7:41 am

PC version probably wont use compressed chunks, most likely it will be the same format as for CLoS1. anyway, kudos Ekey, you make life of many ppl much easier;-)

scripts also works with X360 demo of CLos2.

User avatar
McGregor II
beginner
Posts: 25
Joined: Tue Jun 29, 2010 1:21 am
Location: Polska

Re: Castlevania: Lords of Shadow

Post by McGregor II » Sat Jan 11, 2014 5:46 pm

Hey, I tried to reimport the Castlevania 1 files but it gives me error: wrong cammand-line argument (castlevania.txt) - that's how I named the script file. Here's my input in command-line: quickbms.exe -w -r Castlevania.txt (or bms I tried it too) Data00.dat folder_path\Data00\
Image

cienislaw
n00b
Posts: 15
Joined: Fri Mar 29, 2013 10:22 pm
Has thanked: 5 times
Been thanked: 1 time

Re: Castlevania: Lords of Shadow

Post by cienislaw » Sat Feb 01, 2014 10:52 pm

I take back what I said about PC version;-) C2 will have open world with no loading screens, so 64kb chunks makes now more sense. can't wait to see what they did!

cienislaw
n00b
Posts: 15
Joined: Fri Mar 29, 2013 10:22 pm
Has thanked: 5 times
Been thanked: 1 time

Re: Castlevania: Lords of Shadow

Post by cienislaw » Tue Feb 11, 2014 8:58 pm

PC demo of C2 is out. data is in .packed archives which has one difference from a aluigi script - extra 4 nulls after each file entry in table. sadly texts are not final retail and DLC lang file in english is missing too. format didn't change, so get ready for translation.

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

Re: Castlevania: Lords of Shadow

Post by Haoose » Sun Feb 16, 2014 5:18 pm

For PC:

Code: Select all

idstring BFPK
get version long
get files long
savepos TMP
for i = 0 < files
#goto TMP
get NSIZE long
getdstring name NSIZE
get size long
get offset long
savepos TMP
goto offset
get zsize long
savepos OFFSET
if zsize == size
log name offset zsize
else
clog name offset zsize size
endif
goto TMP
get dummy long
next i
-= GP-team =-
Image

Isilfor
n00b
Posts: 13
Joined: Mon Jul 19, 2010 5:01 pm
Has thanked: 1 time

Re: Castlevania: Lords of Shadow

Post by Isilfor » Wed Feb 26, 2014 4:06 pm

Ekey wrote:Well here updated script.

Code: Select all

# Seeing as Lords of Shadow 2 (PS3-DEMO) (PACKED format) 0.2
# 
# Written by Ekey (h4x0r)
# http://forum.xentax.com
# 
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic

idstring "BFPK"
get VERSION long

if VERSION = 256
    get FILES long
elseif VERSION = 258
    get TABLESIZE long
    get FILES long
endif

for i = 0 < FILES
    get NSIZE long
    getdstring NAME NSIZE
    get SIZE long
    get OFFSET long
    get NULL long
    savepos TEMP

    if VERSION = 256
        log NAME OFFSET SIZE
    elseif VERSION = 258
	
        goto OFFSET
        get FULLZSIZE long
        savepos CHUNKOFFSET
		
        log MEMORY_FILE 0 0
        append
        set TEMPZSIZE long 0

        #Ugly part for decompress chunks :)

        do
            goto CHUNKOFFSET
            get CHUNKZSIZE long
            math TEMPZSIZE += CHUNKZSIZE
            math TEMPZSIZE += 4
            savepos OFFSET
            clog MEMORY_FILE OFFSET CHUNKZSIZE CHUNKZSIZE
            math CHUNKOFFSET += CHUNKZSIZE
            math CHUNKOFFSET += 4
        while TEMPZSIZE < FULLZSIZE
		
        append
        log NAME 0 SIZE MEMORY_FILE
        goto TEMP
    endif
next i
This script works for full PC version of Castlevania - Lords of Shadow 2.
Except 4,1 Gb file Data00.packed.
Error: "memory allocation problem Not enough storage is available to process this command/"
- error is src\xalloc.h line 600^ xdbg_malloc()

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

Re: Castlevania: Lords of Shadow

Post by Haoose » Thu Feb 27, 2014 12:44 am

Isilfor wrote: This script works for full PC version of Castlevania - Lords of Shadow 2.
Except 4,1 Gb file Data00.packed.
Haoose wrote:For PC:

Code: Select all

idstring BFPK
get version long
get files long
savepos TMP
for i = 0 < files
#goto TMP
get NSIZE long
getdstring name NSIZE
get size long
get offset long
savepos TMP
goto offset
get zsize long
savepos OFFSET
if zsize == size
log name offset zsize
else
clog name offset zsize size
endif
goto TMP
get dummy long
next i
-= GP-team =-
Image

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 Feb 27, 2014 1:29 am

Tried the last bms for Pc with the big file Data00.packed (4,120Gb's) using quickbms_4gb_files last version i get:
0000000000019ba8 524416 2d/loading/book/i_menu_sw_relics_01-b.dds
Error: the compressed zlib/deflate input is wrong or incomplete (-3)

Error: there is an error with the decompression
the returned output size is negative (-1)
Image

User avatar
zardalu
veteran
Posts: 93
Joined: Sat Sep 13, 2008 3:13 pm
Has thanked: 3 times
Been thanked: 12 times
Contact:

Re: Castlevania: Lords of Shadow

Post by zardalu » Thu Feb 27, 2014 2:16 am

Thanks Ekey, Haoose for the updated scripts, I was able to get them working for Data00.packed by using quickbms_4gb_files.exe.

I see the high res detail textures in the 1 GB content\0\Data00.packed archive, but I haven't been able to locate the high res normal maps... can anyone confirm if they exist?

Post Reply