Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] (Audio, possibly others) - Output folder matches BNK resource name #15

Open
Draxxx opened this issue Jan 5, 2025 · 9 comments
Assignees
Labels
enhancement New feature or request

Comments

@Draxxx
Copy link

Draxxx commented Jan 5, 2025

Extraction audio results in a 10K+ files. These have no names or grouping.

It'd be great if for example the audio files could be grouped into folders, based on their .bnk filename;
E.G.: "bugs_shrieker.bnk" > \bugs_shrieker\ *.ogg

I'can't see any options in the -h to achieve this output directory structure.

Also;
(I presume the audio files don't have names, as the output is "980632624.ogg", however I have seen some other games that have an
index or manifest that can be used to rename files to more meaningful names. Was curious if you knew such a operation was possible)

@Draxxx Draxxx added the enhancement New feature or request label Jan 5, 2025
@xypwn
Copy link
Owner

xypwn commented Jan 9, 2025

Hi, yeah, it extracts audio files with exactly the names they're present with in the stingray assets (if the hashes are known). The numbers do seem to be the actual file names.

However, it's definitely possible that the files are also referenced somewhere in the bnk files.

I'm quite busy at the moment, so I can't promise much, but I'll definitely look into this at some point.

Of course, you're also always welcome to do some research yourself, if you can/want to do that :)

@xypwn xypwn self-assigned this Jan 9, 2025
@xypwn
Copy link
Owner

xypwn commented Jan 22, 2025

Alright, so I've made crossref-checker in cmd/tools, and it seems the wwise_stream (wem) audio files you're talking about aren't referenced in any wwise_bank (bnk) files. However, they do seem to be referenced in "package" files, which I haven't actually looked into yet. IDK if they're going to actually be useful though.

@xypwn
Copy link
Owner

xypwn commented Jan 22, 2025

Perhaps there's something in one of the dl_bin files. I'll look into that later.

@Draxxx
Copy link
Author

Draxxx commented Jan 23, 2025

Thanks! :) Appreciate your time and effort.
I have a sneaking suspicion they are in there somewhere... I've seen a post on Reddit where I guy has extracted a few sounds (maybe 20-50) that have names,. I mean he could have named them manually but I highly doubt it,,.
(and I did message to ask how he got the names, but got no response.. )
Thanks again!

@xypwn
Copy link
Owner

xypwn commented Jan 23, 2025

Could the sounds you're talking about have been from a bnk file? They all have names.

@Draxxx
Copy link
Author

Draxxx commented Jan 23, 2025

Yeah that what I was alluding to in my opening request. There are groups of sounds, by bnk file, which would be helpful to categorise by, even if file names are just numbers.

The last part, I was hoping there would be a way to further name the files as to their actual use in game, from .bnk or some other index or manifest, but i realise that may not be possible if it can't be found or cross checked.

Again, Thank you for your time! :)

@xypwn
Copy link
Owner

xypwn commented Jan 23, 2025

I don't think I quite understand, then. There are bnk files and wem files in the game. They are all stored separately. The wem files have the number names and the bnk files all have actual names. A bnk file gets extracted to a folder named "path/to/file/name.bnk.dir". You can extract all bnk files using filediver -c "enable:wwise_bank"

@Draxxx
Copy link
Author

Draxxx commented Jan 24, 2025

Apologies. That's exactly what I was after.
Whatever I did first time around extracted all audio files, all 10,300 into a single folder.
Thank you, again sorry for the confusion.

But yes, It would be awesome if their were actual names for files referenced somewhere, but as you suggested, they may actually just be numbered files without names.. If you ever did come across names in the package file I would love to have them names properly, but please don't invest any more time in this unless you wanted to. That command filediver -c "enable:wwise_bank" was what I wanted.

Thanks xypwn.

@Draxxx
Copy link
Author

Draxxx commented Jan 24, 2025

I do also get the same errors from the other bug report #6;
ERROR extract content/audio/Helldiver_IR.wwise_bank: wwise: OpenWem: invalid "RIFF"/"RIFX" magic number (got: "" | [0 4 2 0])
ERROR extract content/audio/Helldiver_Standard_VO.wwise_bank: wwise: OpenWem: RIFF size (44057) does not match file size (1586) etc etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants