ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Sep 26, 2018 3:13 pm

All times are UTC




Post new topic  Reply to topic  [ 48 posts ]  Go to page Previous 1 2 3 Next
Author Message
PostPosted: Wed Aug 10, 2016 3:34 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8837
From:
Code:
    log "" OFFSET SIZE
To:
Code:
    string NAME p "%d.wav" DUMMY
    log NAME OFFSET SIZE


Top
   
PostPosted: Wed Aug 10, 2016 4:38 am 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
Yeah, more like that. Exactly as I envisioned it.
I'll just test this later when I get into my PC. Been typing this into my cellphone as of now.

P.S.: Auto-correcto sucks ass.

_________________
the number one killer is time
it destroys us all


Last edited by AnonBaiter on Wed Aug 10, 2016 4:58 am, edited 1 time in total.

Top
   
PostPosted: Wed Aug 10, 2016 4:46 am 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
Well, I did test the edited script on the .bnk file and that method proved to be much better than the dull 'log ""' extracting output.
However, that's just the .bnk files. Does anyone feel that there's something missing?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Wed Aug 10, 2016 2:51 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
aluigi and the actual names of wav files from pck files? some help?


Top
   
PostPosted: Wed Aug 10, 2016 3:27 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 793
I must add that these numbers are actually hashes of wwise audio event names. Wwise can't work without them, so usually if you find audio event names, something like "shrek_hits_wall_by_his_head", you can calculate its hash and find the audio file in BNK or PCK file. These names will usually be in other game files, like I said. And I'm not talking about SoundBanksInfo.xml, these names can be in actual game files, like maps, levels, scripts etc.


Top
   
PostPosted: Wed Aug 10, 2016 6:02 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
aluigi how then do to get the names of the .wav file pck file? example 0000038c.wav to shrek_hits_wall_by_his_head.wav is just one example


Top
   
PostPosted: Wed Aug 10, 2016 6:37 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 8837
A quick technical explanation: when an archive doesn't contain the original filenames, it means it uses name hashes (you can call them also CRC and checksum, same stuff). Basically a 32 or 64bit number representing a sort of signature of the name instead of the name itself.
In these situations, if filenames are really necessary, a solution is building a list of ALL the original filenames and then calculating the hash and checking it with the one of each file entry in the archive. That's what the NameCRC command of quickbms does.
What's the problem of this solution? Obviously the problem is building, collecting or generating the list of original filenames, and in less part also finding the algorithm used to calculate the hash (my crc scanner may help in this step).
Back to your question, if someone (*NOT ME*) has desire and abilities to build the list of names then there are some chances of assigning the names to the files.


Top
   
PostPosted: Wed Aug 10, 2016 6:52 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 793
if someone (*NOT ME*) has desire and abilities to build the list of names, i can tell that wwise always use the same hash, and it is standard FNV1


Top
   
PostPosted: Wed Aug 10, 2016 8:15 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
Honestly, I'd rather have 32-bit/64-bit numbers as output filenames instead of the actual names.
However, if someone has desire and abilities to build the list of names then I'll do it. Just give me the files necessary for the task.

Meanwhile, here's the modified armyoftwo.bms script. I've kept the header description untouched.


Attachments:
armyoftwo.rar [581 Bytes]
Downloaded 35 times

_________________
the number one killer is time
it destroys us all
Top
   
PostPosted: Wed Aug 10, 2016 8:49 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
AnonBaiter some help from you? I really want to get the real names of the output wav files from pck file is that I know not build a list of names and speaking on the subject which is the necessary files for this task ? I have on my computer only shrek_akpk.bms script and streaming_eng.pck file and quickbms if you can help I would be grateful thanks for attention

Image


Top
   
PostPosted: Wed Aug 10, 2016 8:50 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
"and speaking on the subject which is the necessary files for this task ?"
The file in which the names are stored, of course.
Oh yeah, I want to ask a question for more experienced people here: how can I calculate the hash?

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Wed Aug 10, 2016 9:05 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
?


Top
   
PostPosted: Wed Aug 10, 2016 9:15 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
some help from aluigi?


Top
   
PostPosted: Wed Aug 10, 2016 11:58 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
It's like you didn't even understand what aluigi or id-daemon has even said.

Let's just get to the point: you choose me to help you, but I'll ask something in return. In that case, it's you who should be helping me.
Go grab a hex editor program(mine is HxD),look through the files and see if you find any evidence of the names. The hash situation comes later.

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Thu Aug 11, 2016 12:30 am 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
you are wrong it seems that you do not know what I said that you have to help me and I do not now and I still comes from that you should be helping me your boring hahahahahahahahaha and not ever repeat what you said listening? each of which appears to m


Top
   
PostPosted: Thu Aug 11, 2016 12:38 am 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
What do I mean is that we should help each other, but then I might be contradicting myself here.
I don't have the game so I need to know what are these files, what do they contain, etc.
If nothing else then I might obtain the game by myself. So let me start with this question: which version of the game(PC, PS3, XBOX360, Wii, DS, iOS) do these files came from?

Oh yeah, and you cut off your own sentence before you could finish it. Take your time to actually read and see if you didn't miss anything before clicking on "Submit".

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Thu Aug 11, 2016 12:13 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
yes i have the game shrek forever after pc as you know streaming_eng.pck file contains all wav files used in the game then answer me a good answer


Attachments:
streaming_eng.pck.zip [2.49 MiB]
Downloaded 28 times
Top
   
PostPosted: Thu Aug 11, 2016 1:15 pm 

Joined: Tue Feb 02, 2016 2:35 am
Posts: 1096
It's decided then. I'll go get the game, but I won't make any promises.
But for now I'll just grab the sample.

_________________
the number one killer is time
it destroys us all


Top
   
PostPosted: Thu Aug 11, 2016 1:43 pm 

Joined: Sat Apr 23, 2016 10:59 pm
Posts: 71
I even got the game links on here https://mega.co.nz/#!x0VWFSRK!PeaBpPG9-qnNtxzLRG2V_cVsEkjGZIdnQuTkNdadQDA
https://mega.co.nz/#!FttUHCBL!I4njTqXgzhRidZmlkMgbBsxAeGPNf8fSeSEKxdlaavs
https://mega.co.nz/#!ppUXhapY!KFE-kFipKWXU-rFTDTfX0ZIfnqQrYUldRS0_Vv8ejmg


Attachments:
File comment: program used to download the mega server
MegaDownloader_v1.7.exe.zip [1.97 MiB]
Downloaded 38 times
Top
   
PostPosted: Thu Aug 11, 2016 6:04 pm 

Joined: Sun Mar 22, 2015 7:09 pm
Posts: 793
AnonBaiter wrote:
how can I calculate the hash?


its in wikipedia: FNV hash


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 48 posts ]  Go to page Previous 1 2 3 Next

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited