Dying Light .spb and csb

Codecs, formats, encoding/decoding of game audio, video and music
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Dying Light .spb and csb

Post by ponaromixxx »

Please help unpack and pack back
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dying Light .spb and csb

Post by aluigi »

ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: Dying Light .spb and csb

Post by ponaromixxx »

thank you
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Dying Light .spb and csb

Post by spider91 »

script for .csb works bad. a lot of dummy files and cant extract any fsb from all_quests_local_stream_p1.csb, common_local_1_stream_p1 and common_local_2_stream_p1.csb. I've tried to make it by myself, seems to work fine.

Code: Select all

# Dying Light .csb
# script for QuickBMS http://quickbms.aluigi.org

get EXT extension
if EXT == "csb"

    get MAX_OFF asize
    goto 0x4c
    for CHECK = 0 < MAX_OFF
        getdstring NAME 0x40
        get OFFSET long
        get SIZE long
        get DUMMY long   
        get DUMMY long
        get DUMMY long
        get DUMMY long
        log NAME OFFSET SIZE
        set CHECK OFFSET
        math CHECK += SIZE
    next

else
    print "Error: unsupported extension %EXT%"
    cleanexit
endif
ponaromixxx
Posts: 176
Joined: Tue Sep 30, 2014 5:59 pm

Re: Dying Light .spb and csb

Post by ponaromixxx »

It would be better, now is an extension of the files!


Code: Select all

# Dying Light .csb
# script for QuickBMS http://quickbms.aluigi.org

get EXT extension
if EXT == "csb"

    get MAX_OFF asize
    goto 0x4c
    for CHECK = 0 < MAX_OFF
        getdstring NAME 0x40
        get OFFSET long
        get SIZE long
        get DUMMY long   
        get DUMMY long
        get DUMMY long
        get DUMMY long
        string NAME += ".fsb"
        log NAME OFFSET SIZE
        set CHECK OFFSET
        math CHECK += SIZE
    next

else
    print "Error: unsupported extension %EXT%"
    cleanexit
endif
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Dying Light .spb and csb

Post by spider91 »

yep, forgot about it.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Dying Light .spb and csb

Post by AlphaTwentyThree »

Actually it's also

Code: Select all

goto 0x40
get INFOSIZE long
get FILES long
get DUMMY long
for i = 1 <= FILES
...
...
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Dying Light .spb and csb

Post by aluigi »

I have updated the script with your fixes.
Thanks
rdvlpr
Posts: 2
Joined: Sun Apr 05, 2015 8:31 pm

Re: Dying Light .spb and csb

Post by rdvlpr »

how would i open or conver the extracted files?
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Dying Light .spb and csb

Post by spider91 »

rdvlpr
Posts: 2
Joined: Sun Apr 05, 2015 8:31 pm

Re: Dying Light .spb and csb

Post by rdvlpr »

thanks, it works. Only it looks like the sfx sounds are converted to .ogg and i can't open them in audacity or any other program. Is this normal?
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: Dying Light .spb and csb

Post by spider91 »

fsbext doesn't support ogg yet. I hope aluigi will add ogg support soon.