Free Game Research Forum | Official QuickBMS support | twitter @zenhax
It is currently Thu Feb 02, 2023 8:19 pm

All times are UTC

Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Tue Sep 27, 2022 5:40 pm 

Joined: Mon Aug 22, 2022 1:02 pm
Posts: 8
# file types: Wwise *.txt with same name as *.bnk files or soundbanks.xml
# script type: parser
# note 1: all *.wem files must be in the same folder as this script and the txt
# note 2: script will maintain the original folder structure
# (c) by AlphaTwentyThree of Zenhax
# script for QuickBMS http://quickbms.aluigi.org

get EXT extension
if EXT == "xml"
   callfunction soundbanks 1
   print "script only for xml"

startfunction soundbanks
   for i = 1
      FindLoc SEARCH string "<File Id="
      if SEARCH == ""
      goto SEARCH
      getDstring DUMMY 10
      getCT DIDX string 0x22
      string DIDX += ".wem"
      getDstring TEST 3 # sometimes the file id tag is empty
      if TEST != " />"
         math SEARCH += 12
         goto SEARCH
         FindLoc SEARCH string "<Path>"
         goto SEARCH
         getDstring DUMMY 6
         getCT FNAME string 0x3c
         string FNAME -= 13
         open FDSE DIDX 1 EXIST
         if EXIST == 1
            get SIZE asize 1
            log MEMORY_FILE 0 0
            log MEMORY_FILE 0 SIZE 1
            string FNAME += ".wem"
            log FNAME 0 SIZE MEMORY_FILE
      math SEARCH += 12
      goto SEARCH
   next i

I don't know if someone could help me, I was looking to add a couple of things to it, but I don't really understand it.

The thing is to add if you don't find the "wem" audio file in the "xml" file because it doesn't exist or isn't there, put that specific file "unknown.wem"

Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

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