t1f7 / soundbank-editor

Editor for Wwise soundbank files. Feel free to use.
MIT License
13 stars 0 forks source link

How do you choose the New files required by the "replace" command? #1

Open chasedream1129 opened 6 years ago

chasedream1129 commented 6 years ago

I want to replace the audio in SoundBank, but when I input the replacement command, always show "New files are not selected. Ignoring replace command.". I want to know how to selected new files. Thank you very much!

t1f7 commented 6 years ago

I could forget something but you should open wem files (or dir with wem files) when you load the editor. Probably this will work: python3 soundbank.py "sounds/1.bnk" "sounds_replace/" -o "sounds/updated.bnk" Here you provide the second argument (sounds_replace/ dir), it will fill "new files".

chasedream1129 commented 6 years ago

My new file is called "02.wem" and SoundBank is called "c.bnk" I executed the python3 soundbank.py c.bnk 02.wem command and then entered replace. But the output "changed.bnk" has not changed at all, and even md5 is exactly the same as "c.bnk". It is not also need to select the old files "c.bnk" in, and if so, how to select?

t1f7 commented 6 years ago

Oh, how are you using replace? As I remember you should use names after the command, for example: replace 02.wem or replace WEM_ID. To get that use list command.

t1f7 commented 6 years ago

If old file name was 24492492.wem the replacement file should have the same name.

chasedream1129 commented 6 years ago

SoundBank file: c.bnk New file (used to replace): 02.wem Old file (replaced): 24492492.wem in c.bnk

I execute python soundbank.py c.bnk 02.wem Then type replace 02.wem

The output changed.bnk and c.bnk md5 still the same.

t1f7 commented 6 years ago

test testtt default

It works just fine. Here's the screenshots.