ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sat Aug 18, 2018 8:55 am

All times are UTC




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Sun Jun 10, 2018 10:54 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 645
Hello there!
I've been trying to write a script for this archive, but I don't know any further. The problem is, that there are two more names than given in the TOC. (0x3d vs. 0x3f). Really hate when that happens... The problem is that I cannot link the TOC to the name section (0x1b18). Can somebody try to link this? Maybe I'm just blind...

Here is the archive: https://www27.zippyshare.com/v/g269OyiR/file.html

And here is what I've written so far:

Code:
idstring "res"
goto 0xc
get INFO_BIAS long
goto 0x14
get DATA_START long
goto 0x20
get INFO_OFF long
goto INFO_OFF
get FIELDS long
get UNK long
for i = 1 <= FIELDS
   getDstring IDENT 4
   if IDENT == "mdat"
      get UNK byte
      get OFFSET threebyte
      math OFFSET *= 0x100
      get SIZE long
      get ZERO long
      get ONE long
   elif IDENT == "musc"
      get OFFSET_INFO long
      math OFFSET_INFO += INFO_BIAS
      get UNK longlong
      get SOME_OFFSET long
      savepos MYOFF
      goto OFFSET_INFO
      get BITS short
      get CH short
      get FREQ long
      get SIZE long
      get OFFSET long
      math OFFSET += DATA_START
      goto MYOFF
   else
      getDstring UNKNOWN_DATA 0x10
   endif
next i


Top
   
PostPosted: Mon Jun 11, 2018 4:18 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
Same format of http://aluigi.org/bms/spiderman_web_shadows.bms
Yeah you will get an error at the end that probably I should check but... come on 99% maybe I can ignore it because there are no other files to extract anyway :D


Top
   
PostPosted: Mon Jun 11, 2018 4:23 pm 

Joined: Sat Aug 09, 2014 11:21 am
Posts: 645
Ah, thanks. Unfortunately, the names are not correct: if you apply the script on the file I've uploaded, you'll get a file named "silence" that doesn't have any silence and another one, that HAS silence. So there's a small problem. Maybe that's where the error comes from?
Would be nice to check that out.


Top
   
PostPosted: Mon Jun 11, 2018 5:34 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8614
They are sequential names, can't do anything.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited