monkeyman192 / bnkEditor

Wwise bnk file editor and extractor
6 stars 0 forks source link

BNK Editor

BNK Editor is designed to open and edit Wwise .bnk files. Currently it is still fairly early in development and mostly just supports No Man's Sky, but ideally I'd like it to be able to support .bnk files from other games too.

BNK Editor proudly made with Godot

Usage

The following instructions will be provided for No Man's Sky.

Initial Setup

Double click on the binary to open it. The first option that needs to be set is the location of the audio folder (PCBANKS/AUDIO/WINDOWS). If this folder doesn't exist you will need to extract the audio files from your .pak files. There are many ways to do this. See here for one potential method. This option is set By selecting File from the top menu and selecting Load Directory... This will open up a popup which will allow you to select the WINDOWS folder. Once this folder has been loaded the folder should be loaded in the File Browser tab.

Playing a loose WEM file

Under the File Browser tab there will be many .wem and .bnk files listed. To play an individual wem file, simply souble click on the file name and it will play. Controls for the audio are at the top of the application.

Loading a BNK file

To load a .bnk file, we simply double click on it. Since there are lots of files in the WINDOWS folder it is recommended that the Filter file type drop down has BNK selected so that only .bnk files show up. As an example double click on the MUS_LOADING01.BNK file from the list. It should look as shown in the following image.

MUS_LOADING01.BNK selected

Now that the editor has changed to the BNK Explorer tab, you will notice 2 sub tabs; the Audio Explorer tab, and the HIRC Explorer tab. For now we will concern ourselves with just the Audio Explorer tab, however there are some values in the HIRC Explorer tab that can be modified, however, this isn't important yet...

The important thing to understand with the Audio Explorer tab is that it shows a list of all the audio events that are handled by the particular .bnk file.

Audio files have two types:

In both cases we may play the audio file by pressing the play button (play) on the right side of the view:

play audio

Replacing audio

The current version of the BNK editor (v0.0.5) only supports replacing embedded audio files (despite them requiring more work to replace, but that's just how it is for now. Full support will come later).

Replacement is easy, simply click the pencil icon (edit) to the right of the play icon in the above image and select the .wem file you wish to replace the embedded audio with. Currently you will need to create the .wem file yourself (there should be many resources online for how to do this, google is your friend!), but hopefully in the future this program will be able to convert audio to .wem for you. Once you have selected a file, you will see the following:

replace audio

Your file path will be different, but you can see the audio file that will be replacing the given one.

Once you are happy with the replacement, click the Export button next to the name of the currently loaded bnk and the .bnk file will be exported with the modified audio in the same location as the original file but with .modified appended to the file name.

Known issues

Contibuting

There is still a lot of work that needs to be done on this program, however I'd like to start being able to support more games than No Man's Sky eventually, so contributing files which can't be opened with this as well as details on the file structure would be incredibly useful.