XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed Aug 23, 2017 5:25 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 98 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: Castlevania: Lords of Shadow
PostPosted: Tue Sep 28, 2010 10:36 am 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2431
Has thanked: 56 times
Have thanks: 1175 times

This is a bms script to extract the assets of Castlevania: Lords of Shadow
I tested this on the ps3 files.
Code:

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
next i



You can make the ads go away by registering



Last edited by chrrox on Tue Oct 05, 2010 3:16 am, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Thu Sep 30, 2010 7:49 am 
Offline
ultra-n00b

Joined: Fri Sep 10, 2010 7:56 am
Posts: 9
Has thanked: 0 time
Have thanks: 2 times
Great job! I wonder if it'll works on XBOX360 files.


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Mon Oct 04, 2010 10:27 pm 
Offline
ultra-n00b

Joined: Mon Oct 04, 2010 10:11 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
It doesn't work for X360 version, or maybe it only works for demo files?

I get error: incomplete input file number 0, can't read xxxxxxxx bytes.

However when used with -l parameters, it lists file list correctly, so it seem it doesn't extract data...


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Mon Oct 04, 2010 10:49 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Fri Nov 06, 2009 12:13 am
Posts: 580
Has thanked: 65 times
Have thanks: 124 times
there's a typo in the script.

change

Quote:
log name ofset size


to
Code:
log name offset size


?

_________________
Useful tool links:


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Mon Oct 04, 2010 10:57 pm 
Offline
ultra-n00b

Joined: Mon Oct 04, 2010 10:11 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
Well it actually works, but I get error when trying to extract Music.packed, first file has space in its file name. Could that be an issue? Data00 for example worked fine.

And change ofset to offset didn't work :)

EDIT: So English.packed didn't work either, and there was no space in filename....Hmm what could it be? quickbms -l parameter does however work for all files, including English.packed and Music.packed. But extracting works with Data00.packed, and I imagine with Data01.packed as well...

Here's verbose log:

Code:
QuickBMS generic files extractor 0.4.7
by Luigi Auriemma
e-mail: aluigi@autistici.org
web:    aluigi.org

- open input file English.packed
- open script los.bms
READLINE 1   idstring BFPK
READLINE 2   get version long
             >set version (0) to version
READLINE 3   get files long
             >set files (1) to files
READLINE 4   savepos TMP
             >set TMP (2) to TMP
READLINE 5   for i = 0 < files
             >set i (3) to i
             >set 0 (4) to 0x00000000
             >set i (3) to i
             >set files (1) to files
READLINE 6   goto TMP
             >set TMP (2) to TMP
READLINE 7   get NSIZE long
             >set NSIZE (5) to NSIZE
READLINE 8   getdstring name NSIZE
             >set name (6) to name
             >set NSIZE (5) to NSIZE
READLINE 9   get size long
             >set size (7) to size
READLINE 10  get offset long
             >set offset (8) to offset
READLINE 11  savepos TMP
             >set TMP (2) to TMP
READLINE 12  goto offset
             >set offset (8) to offset
READLINE 13  get zsize long
             >set zsize (9) to zsize
READLINE 14  savepos OFFSET
             >set offset (8) to offset
READLINE 15  if zsize == size
             >set zsize (9) to zsize
             >set size (7) to size
READLINE 16  log name offset size
             >set name (6) to name
             >set offset (8) to offset
             >set size (7) to size
READLINE 17  else
READLINE 18  clog name offset zsize size
             >set name (6) to name
             >set offset (8) to offset
             >set zsize (9) to zsize
             >set size (7) to size
READLINE 19  endif
READLINE 20  goto TMP
             >set TMP (2) to TMP
READLINE 21  next i
             >set i (3) to i
- set output folder ./Test/

  offset   filesize   filename
------------------------------
             .start_bms start: -1 0 0

00000000 1   idstring BFPK

00000004 2   get version long
             >set version (0) to 0x00000000

00000008 3   get files long
             >set files (1) to 0x00000246

0000000c 4   savepos TMP
             >set TMP (2) to 0x0000000c
- variable i seems uninitialized, I use its name
             >get i (3) i
             >get 0 (4) 0x00000000
             >set i (3) to 0x00000000
             .start_bms start: 6 0 0

0000000c 5   for i = 0 < files
             >get i (3) 0x00000000
             >get files (1) 0x00000246
             condition < is met

0000000c 6   goto TMP
             >get TMP (2) 0x0000000c
             >get TMP (2) 0x0000000c

0000000c 7   get NSIZE long
             >set NSIZE (5) to 0x00000029

00000010 8   getdstring name NSIZE
             >get NSIZE (5) 0x00000029
             >set name (6) to sounds/voices/english/babba_off_msg_1.ogg

00000039 9   get size long
             >set size (7) to 0x000076f7

0000003d 10  get offset long
             >set offset (8) to 0x00008e17

00000041 11  savepos TMP
             >set TMP (2) to 0x00000041

00000041 12  goto offset
             >get offset (8) 0x00008e17
             >get offset (8) 0x00008e17

00008e17 13  get zsize long
             >set zsize (9) to 0x5367674f

00008e1b 14  savepos OFFSET
             >set offset (8) to 0x00008e1b

00008e1b 15  if zsize == size
             >get zsize (9) 0x5367674f
             >get size (7) 0x000076f7
             condition == is not met
             .start_bms start: 17 1 0
             .start_bms end: 17 1 0 (ret 18)
             .start_bms start: 19 0 0

00008e1b 18  clog name offset zsize size
             >get name (6) sounds/voices/english/babba_off_msg_1.ogg
             >get offset (8) 0x00008e1b
             >get zsize (9) 0x5367674f
             >get size (7) 0x000076f7
  00008e1b 30455      sounds/voices/english/babba_off_msg_1.ogg

Error: incomplete input file number 0, can't read 1362753026 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


Note that if both the scripts and your files are correct then it's possible
that the script needs a newer version of QuickBMS, in which case download it:

  http://aluigi.org/quickbms


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Tue Oct 05, 2010 3:16 am 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2431
Has thanked: 56 times
Have thanks: 1175 times
it was a type just correct the one word offset it was a copy paste error.
i edited my first post try it now.


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Tue Oct 05, 2010 3:24 am 
Offline
ultra-n00b

Joined: Mon Oct 04, 2010 10:11 pm
Posts: 3
Has thanked: 0 time
Have thanks: 0 time
It still didn't work.

However this script did (took from Clive Barker's Jericho)

Code:
ImpType Standard ;
Goto 8 0 ;
Get FNum Long 0 ;
For n = 1 to FNum ;
Get FNLen Long 0 ;
GetDString FN FNLen 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Log FN FS FO FSO FOO ;
Next n ;


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Tue Oct 05, 2010 3:40 am 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2431
Has thanked: 56 times
Have thanks: 1175 times
I don't have the full game only the one pac file they gave me glad to hear the other script worked tho.


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Tue Oct 05, 2010 9:51 pm 
Offline
advanced

Joined: Tue Oct 05, 2010 9:42 pm
Posts: 55
Has thanked: 2 times
Have thanks: 2 times
¿and to create a new *.packed file? i want to join dvd1 and dvd 2 packages.

thanks for the scripts.


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Sat Jan 01, 2011 1:47 pm 
Offline
ultra-n00b

Joined: Sat Jan 01, 2011 12:15 pm
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
hello script helped me managed to unpack everything but I need to wrap it back again I tried to translate the lyrics, and now try whether it works


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Wed Jun 22, 2011 6:50 am 
Offline
beginner

Joined: Thu Jul 08, 2010 3:17 am
Posts: 38
Location: Bulgaria
Has thanked: 1 time
Have thanks: 0 time
Please tell us how to pack it back again!

_________________
A Member of the Bulgarian Game Localization Teams: http://playonbg.info/ & http://adventurersbg.info/


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Thu Jun 23, 2011 7:40 pm 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 933
Has thanked: 10 times
Have thanks: 120 times
That scrip it could be use also for repack, but there is 1 problem with filesize of some files. Bu they are exact the same size like it was just after extract:
Please help ?

Code:
Error: file "language/english.txt"
       the reimport option acts as a reimporter and so you cannot reinsert a
       file if it's bigger than the original otherwise it will overwrite the
       rest of the archive:
         new size: 104229
         old size: 102588



EDIT : This is strange i have my file modded and it has 30KB less than the oringal and still telling me new file is bigger. Anyone seen this before ?

_________________
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Fri Jun 24, 2011 7:23 am 
Offline
Moderator

Joined: Sun Mar 27, 2011 8:42 pm
Posts: 933
Has thanked: 10 times
Have thanks: 120 times
please anyone ???

_________________
Quick BMS Editor GUI - simple easy to use
Goto : viewtopic.php?uid=34229&f=29&t=6797&start=0

Downloads from DropBox : https://dl.dropboxusercontent.com/u/


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Fri Jul 06, 2012 9:11 pm 
Offline
beginner

Joined: Tue Jun 26, 2012 3:21 pm
Posts: 35
Location: Brazil
Has thanked: 0 time
Have thanks: 2 times
Guys I am having the same problem that michalss friend, when you import the file contents Data00.packed some files show the error message stating that the size is different from the original, but in my case these files are not edited, or are unique how can they be bigger?
Would fix this?

Code:
Error: file "bmp\vsh\grafico2d\font.0585d3fd.x360.psb"
       the reimport option acts as a reimporter and so you cannot reinsert a
       file if it's bigger than the original otherwise it will overwrite the
       rest of the archive:
         new size: 141 (189)
         old size: 126 (189)

- do you want to skip this file? (y/N)


PS
File size English.txt was around 60 ~ 63KB larger than the original and was able to import successfully.


Top
 Profile  
 
 Post subject: Re: Castlevania: Lords of Shadow
PostPosted: Thu Jan 31, 2013 11:11 am 
Offline
VVIP member
VVIP member
User avatar

Joined: Thu Dec 08, 2005 12:26 pm
Posts: 1925
Location: www.ZENHAX.com
Has thanked: 4 times
Have thanks: 629 times
I have written a script that should match the format at 100% (music.packed included):
http://aluigi.altervista.org/papers/bms ... evania.bms



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 98 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group