Page 1 of 1

wavescan.bms file names

Posted: Sat Sep 25, 2021 12:40 am
by Maron19
I wanted to extract the pck files from Life is Strange and I have a problem with the names of the extracted files. Wavescan.bms gives the name of the first tag it encounters at the specified location. Unfortunately, some files have the marker_silence tag.
File fragment:
[LIST�...adtllabl......DNE_WAV_MARKER_SILENCE..labl......DNE_WAV_MARKER_SPEAK..labl.......Cue_E1_2A_ArtClass_CHKate_Phase01_Max_011.data]
The file should be named like this:
[...Cue_E1_2A_ArtClass_CHKate_Phase01_Max_011.wav]
and not like this:
[...DNE_WAV_MARKER_SPEAK.wav]
Looking at the wavescan.bms file, I understand the general sense of creating a filename, but can anyone tell me what to do to have the program omit marker_silence when creating the filename? I include an example file and wavescan.bms

Re: wavescan.bms file names

Posted: Sat Sep 25, 2021 12:04 pm
by ikskoks
It seems that this could be solved with "if" condition in the script.
Something like:

Code: Select all

if MNAME == "DNE_WAV_MARKER_SILENCE":
   callfunction retrievename2
But this should be probably raised in the Wwise Unpacker github repository.
https://github.com/Vextil/Wwise-Unpacker/
(if anyone is still active there)
or you should ask original author AlphaTwentyThree for update.

Re: wavescan.bms file names

Posted: Sat Sep 25, 2021 4:41 pm
by Maron19
Thanks for the answer. I wrote to the repository owner because there is an error when extracting the bnk file and the files only have the extension .wem and most of them are omitted. Unfortunately, another month passes and there is no answer. I need proper pck filenames because I want to do dubbing and I need to merge subtitles with wav files. Unfortunately, the program gives the name of the first marker it finds. If there is marker_silence it will be the name, not the real name of the file, which is a little further in the file. You have to somehow omit the silence markers to get the files properly named. Could I ask you to correct this bms file? Unfortunately, I don't know anything about quick bms...

Re: wavescan.bms file names

Posted: Sat Sep 25, 2021 11:19 pm
by ikskoks
Sorry, it's not my script and I don't want to modify it without author's permission.
But I hope you'll find solution for your issue soon.

Re: wavescan.bms file names

Posted: Sun Sep 26, 2021 4:30 pm
by Maron19
Maybe send me a private message? People create something and then don't care about it, I'm not going to abandon my plans to create dubbing for this game for that. Nobody asked Square Enix for permission when creating the subtitles ...

Re: wavescan.bms file names

Posted: Sun Sep 26, 2021 5:25 pm
by ikskoks
Ok, I think I came up with a workaround:

Code: Select all

if MNAME == "DNE_WAV_MARKER_SILENCE" or MNAME == "DNE_WAV_MARKER_SPEAK"
		For
			get NULL_BYTE byte
			get DUMMY long 
			get MSIZE long
			math MSIZE -= 4
			get DUMMY long 
			getDstring MNAME MSIZE
			if MNAME != "DNE_WAV_MARKER_SILENCE" and MNAME != "DNE_WAV_MARKER_SPEAK"
				break
			endif
		Next
		
   endif

Put my code between those two lines:

Code: Select all

getDstring MNAME MSIZE
string NAME += "~"
And let me know if it works for you.

Re: wavescan.bms file names

Posted: Sun Sep 26, 2021 6:37 pm
by Maron19
Cool, it seems that everything works :) After Lara Croft, I didn't think that someone here would help us with our hobby of translating games... I will certainly include you in the dubbing authors. I don't want to abuse your courtesy, but could you please give me any more hint on how to repack the files back to .pck? Even where to look for such information. I read that quick bms can also be used to pack files, but at the same time they must have the same sound parameters as the original.

Re: wavescan.bms file names

Posted: Sun Sep 26, 2021 6:56 pm
by ikskoks
I will certainly include you in the dubbing authors.
Thank you :)
how to repack the files back to .pck?
I read that quick bms can also be used to pack files
Yes, quickbms has something called "reimport mode".
You can read more about it in documentation (section 3) http://aluigi.zenhax.com/papers/quickbms.txt

There are also some tutorials about that
https://www.google.com/search?client=fi ... t+tutorial