Score hero .bnk .xbnk

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Score hero .bnk .xbnk

Post by rkthelegend »

Hello guys
I'm here just because to ask you all to help me to extract some audio from score hero .bnk fil.

As I noticed the first 4 bit of the file in hex editor it shows that it is a .xbnk archive used to store audio data of thw game and the audios are in .ogg format
Thanks to aluigi for script but the script extract only .dat not .ogg
So I'll be glad to hear frome you.
Last edited by rkthelegend on Tue May 21, 2019 3:59 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

The script has a comment saying:
# ogg files with an useless header containing samplerates, channels, bits and so on

The crowd.bnk file you upload has that 20 bytes header too BUT it's not an ogg file, that one is PCM audio so I guess it's necessary to read the header and then build the RIFF header to put in the extracted file.

I don't remember where I got the bnk file with the ogg files (probably they were music I suppose) so I can't compare the 2 headers.

So basically the script is correct for ogg files but needs some tuning for other archives.
Feel free to upload a bnk file containing ogg files.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Score hero .bnk .xbnk

Post by rkthelegend »

aluigi wrote:The script has a comment saying:
# ogg files with an useless header containing samplerates, channels, bits and so on

The crowd.bnk file you upload has that 20 bytes header too BUT it's not an ogg file, that one is PCM audio so I guess it's necessary to read the header and then build the RIFF header to put in the extracted file.

I don't remember where I got the bnk file with the ogg files (probably they were music I suppose) so I can't compare the 2 headers.

So basically the script is correct for ogg files but needs some tuning for other archives.
Feel free to upload a bnk file containing ogg files.



Yeah for ogg it work perfectly but for this file that I upload crowd.bnk it work too but only extract .dat.
What I'm saying is , can you update s.hero script.bms to extract the playable audio from crowd.bnk?
I'll be glad.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Score hero .bnk .xbnk

Post by rkthelegend »

I mean how to get playable audio from crowd.bnk?

https://www.mediafire.com/download/2rcfpdgpdd69jxa

Can anyone write a script or at least update this script https://www.mediafire.com/download/bi844szkdjk48k8 to work with crowd.bnk
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

I asked you to upload a bnk containing ogg files while the links you posted are the same of the first post.
Waiting the sample file
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Score hero .bnk .xbnk

Post by rkthelegend »

aluigi wrote:I asked you to upload a bnk containing ogg files while the links you posted are the same of the first post.
Waiting the sample file



Here is the link

https://mega.nz/#!eTYCBISZ!Xcv8XOevNQAg ... ODm_3rBtD8

It contain more than 2000 ogg file
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Score hero .bnk .xbnk

Post by rkthelegend »

Mr Aluigi
I hope you received the commentary.bnk
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Score hero .bnk .xbnk

Post by rkthelegend »

aluigi wrote:Script updated: http://aluigi.org/bms/score_hero_bnk.bms



The script work fine with crowd.bnk

I attached crowd.bnk just because it was small in size.
Actually what I need is the comment.bnk which is 40mb in size but the script didn't work with it.
I'm uploading right now and I'll attache the link just look at it and check for problem

Both file crowd.bnk and comment.bnk are from same game and I don't know why the script work only with crowd.bnk not comment.bnk.

I really need the audio from comment .bnk which link is this

https://mega.nz/#!yCoGFarR!AkasObdwr9nc ... B7ysknlEpg
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

It's the msadpcm codec.
Currently I don't know what specific data it wants to copy in the final wav file, probably some coefficient or similar or maybe it doesn't want some bytes, therefore I will update the script once your or someone else will provide such technical information.
Please do NOT bump/post if there are no updates.
rkthelegend
Posts: 56
Joined: Wed Jun 20, 2018 7:57 pm

Re: Score hero .bnk .xbnk

Post by rkthelegend »

aluigi wrote:It's the msadpcm codec.
Currently I don't know what specific data it wants to copy in the final wav file, probably some coefficient or similar or maybe it doesn't want some bytes, therefore I will update the script once your or someone else will provide such technical information.
Please do NOT bump/post if there are no updates.


OK I'll wait till you update the script.

I really need it
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

Without that technical information you are probably going to wait forever. I just tell you.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

Script 0.2.1
msepehri
Posts: 13
Joined: Mon Feb 04, 2019 3:34 am

Re: Score hero .bnk .xbnk

Post by msepehri »

Test
Last edited by msepehri on Sat May 04, 2019 3:42 am, edited 1 time in total.
msepehri
Posts: 13
Joined: Mon Feb 04, 2019 3:34 am

Re: Score hero .bnk .xbnk

Post by msepehri »

Test
Last edited by msepehri on Sat May 04, 2019 3:42 am, edited 1 time in total.
msepehri
Posts: 13
Joined: Mon Feb 04, 2019 3:34 am

reimport .bnk file

Post by msepehri »

The st
Last edited by msepehri on Sat May 04, 2019 3:43 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Score hero .bnk .xbnk

Post by aluigi »

I guess you are using the reimport method in the wrong way.
Read section 3 of http://aluigi.org/papers/quickbms.txt
msepehri
Posts: 13
Joined: Mon Feb 04, 2019 3:34 am

Re: Score hero .bnk .xbnk

Post by msepehri »

Test
Last edited by msepehri on Sat May 04, 2019 3:44 am, edited 1 time in total.
msepehri
Posts: 13
Joined: Mon Feb 04, 2019 3:34 am

Re: Score hero .bnk .xbnk

Post by msepehri »

Test
Last edited by msepehri on Sat May 04, 2019 3:45 am, edited 1 time in total.
Lucasvilla98
Posts: 9
Joined: Fri Feb 01, 2019 5:27 am

Re: Score hero .bnk .xbnk

Post by Lucasvilla98 »

I have the same problem! Please help aluigi!