Dying Light .spb and csb
- 
				ponaromixxx
- Posts: 176
- Joined: Tue Sep 30, 2014 5:59 pm
Dying Light .spb and csb
Please help unpack and pack back
			
			
									
						
										
						- 
				aluigi
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
- 
				spider91
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Dying Light .spb and csb
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
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
yep, forgot about it.
			
			
									
						
										
						- 
				AlphaTwentyThree
- Posts: 909
- Joined: Sat Aug 09, 2014 11:21 am
Re: Dying Light .spb and csb
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
I have updated the script with your fixes.
Thanks
			
			
									
						
										
						Thanks
- 
				rdvlpr
- Posts: 2
- Joined: Sun Apr 05, 2015 8:31 pm
Re: Dying Light .spb and csb
how would i open or  conver the extracted files?
			
			
									
						
										
						- 
				spider91
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
- 
				rdvlpr
- Posts: 2
- Joined: Sun Apr 05, 2015 8:31 pm
Re: Dying Light .spb and csb
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
fsbext doesn't support ogg yet. I hope aluigi will add ogg support soon.