How to extract the AWB format file(*AWB)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

How to extract the AWB format file(*AWB)

Post by The soul of light »

Hi ~ guys.
This is a very good mobile game, who can help me have a look at how to extract the AWB format file of the game? This format looks with NXPK are similar in format file, thank you ~ :D
website:http://wm.163.com/
Download the game:http://g50.gdl.netease.com/yhwm-release_netease_1_0_5.apk
sample:https://share.weiyun.com/27d38e9e5ffa524fe165f9199d4467dc
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:Script 0.3:
http://aluigi.org/bms/nxpk.bms

Wow ~! thanks for your work!aluigi. :D
But if can't get the correct file name, is there any way to get their name right? :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

Filenames are not available
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:Filenames are not available

I found some of the other games made by this engine, their *info files and *hash files seem to have different compression methods, you can help see how to get the name of these files?
In addition, I found some files in the file seems to be associated with packaging, is it possible to understand their packaging through these documents, so as to get the name of NPK? Perhaps in the absence of *info file NPK contains.Map and info files. Can you take a look at it? :)
new .info .hash.7z
Last edited by The soul of light on Mon Apr 24, 2017 2:54 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

I will not work on this stuff but maybe someone else may do it.
Anyway there are at least 3 or 4 topics in which you talk about filenames in this filenames-less archive format (nxpk) so please let's stay focused on this current topic and don't open/update the other topics.
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:I will not work on this stuff but maybe someone else may do it.
Anyway there are at least 3 or 4 topics in which you talk about filenames in this filenames-less archive format (nxpk) so please let's stay focused on this current topic and don't open/update the other topics.

I'm sorry, my friend, I really shouldn't be like this, next time I will not make such a mistake, bring you trouble really sorry. :cry:
These files are indeed related to the 3 to 4 projects, but they are developed with the same engine, so I thought that the packaging of these games may have the same place, then I checked the documents and packaging related documents, these documents in the NpkInfoMaker.py file caught my attention, I think about and then packaged, ask questions, I am very sorry to trouble you, thank you for your great work. :P
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

Ah, didn't realize they were different games, so probably they need also different filenames and relative hashes.
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:Ah, didn't realize they were different games, so probably they need also different filenames and relative hashes.

Yes, because these games use the same engine, I think the wrong way to pack the same. I'm sorry for the trouble. :)
With regard to the AWB file, I have some doubts, AWB is not a file name, right? Or did you find a list of files in the file? Because I am in another game, found the two NPK files, one of which is res1.npk.info and res1.npk.map files, but also a NPK file without the two documents, the name will seem to have hidden, so confused. :|
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

AWB is the same format, the only difference is in the table of each archived file that contains 3 additional fields.
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:AWB is the same format, the only difference is in the table of each archived file that contains 3 additional fields.

Wow, like confusion? Is there a way to get the correct name? One of my friends was able to get some models from these files, but needed the right name. So if you can get the correct name, you can get these models. :P
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

In your previous post you uploaded 3 files:
res.hash: it works just like the res.npk.info of other versions
res.npk.info: totally useless and the format is different than the one on which I worked for another game
res.npk_hash: an useless sequence of integers

I have updated the script (0.3.1) to parse res.hash first, if it doesn't exist parse res.npk.info, if doesn't exist go nameless.
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:In your previous post you uploaded 3 files:
res.hash: it works just like the res.npk.info of other versions
res.npk.info: totally useless and the format is different than the one on which I worked for another game
res.npk_hash: an useless sequence of integers

I have updated the script (0.3.1) to parse res.hash first, if it doesn't exist parse res.npk.info, if doesn't exist go nameless.

Cool ~! My friend。 Thank you for your great work. :D
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:In your previous post you uploaded 3 files:
res.hash: it works just like the res.npk.info of other versions
res.npk.info: totally useless and the format is different than the one on which I worked for another game
res.npk_hash: an useless sequence of integers

I have updated the script (0.3.1) to parse res.hash first, if it doesn't exist parse res.npk.info, if doesn't exist go nameless.

For the first res.hash file, I used the 0.3.1 version of the script, but for no reason, I still can't get the correct file name.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

Script 0.3.2
It was a difference in how the hash was saved in this version: in the old one it was a binary string while in this one it's a hex string
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:Script 0.3.2
It was a difference in how the hash was saved in this version: in the old one it was a binary string while in this one it's a hex string

Script is perfect, it is a great work, thank you for your help, aluigi. :P
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: How to extract the AWB format file(*AWB)

Post by aluigi »

The problem at the beginning when you started posting was that I thought it was necessary a prepared list of hashes and filenames pairs like it happen for some games that have no filenames in the archive (and no filenames elsewhere), that's something that I don't do and so I ignored the topics untile I have seen the sample files and understood that it was another version of the format.
Suggestion: next time, less writing, direct information and more sample files so that I understand immediately what to do :D (with 2000 scripts it's difficult to remember everything about them).
The soul of light
Posts: 48
Joined: Tue Jul 26, 2016 10:54 am

Re: How to extract the AWB format file(*AWB)

Post by The soul of light »

aluigi wrote:The problem at the beginning when you started posting was that I thought it was necessary a prepared list of hashes and filenames pairs like it happen for some games that have no filenames in the archive (and no filenames elsewhere), that's something that I don't do and so I ignored the topics untile I have seen the sample files and understood that it was another version of the format.
Suggestion: next time, less writing, direct information and more sample files so that I understand immediately what to do :D (with 2000 scripts it's difficult to remember everything about them).

OK,~I will correct these questions next time. Thank you for your great work~ aluigi.:D