How to use crc to find the file name [Demon Seals HD]
-
- Posts: 15
- Joined: Mon Jul 04, 2016 8:37 am
How to use crc to find the file name [Demon Seals HD]
The Game is 《Demon Seals HD》
After using this script http://aluigi.altervista.org/bms/nxpk.bms, extract the package successfully, but the file name is not what I want.
Later, I use the default decompression way to extract the texture.npk.info file, find the file name.
I tried to decompress the npk file in the order of the file name, extract successfully and with the correct file name. but in other npk files, the content and name of the corresponding error, such as DDS texture is stored configuration.
So, how to use these NAME_CRC data in the npk file to find the corresponding file name?
Thank you
After using this script http://aluigi.altervista.org/bms/nxpk.bms, extract the package successfully, but the file name is not what I want.
Later, I use the default decompression way to extract the texture.npk.info file, find the file name.
I tried to decompress the npk file in the order of the file name, extract successfully and with the correct file name. but in other npk files, the content and name of the corresponding error, such as DDS texture is stored configuration.
So, how to use these NAME_CRC data in the npk file to find the corresponding file name?
Thank you
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: How to use crc to find the file name
Script 0.2
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: How to use crc to find the file name
Ah, I have just re-read your post and what you said about the "order" which doesn't match the names of the extracted files.
In npk.info you have a 128bit hash while in the archive you have a 32bit CRC so there is no direct reference except for the order.
Currently I have made no other checks, this is just a quick update on the fly after I noticed your note.
In npk.info you have a 128bit hash while in the archive you have a 32bit CRC so there is no direct reference except for the order.
Currently I have made no other checks, this is just a quick update on the fly after I noticed your note.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: How to use crc to find the file name
Script 0.2.1, all the doubts have been solved and now it works perfectly.
-
- Posts: 50
- Joined: Fri Sep 30, 2016 4:12 am
Re: How to use crc to find the file name
aluigi wrote:Script 0.2.1, all the doubts have been solved and now it works perfectly.
In fact is not perfect, the name will not be able to get right, work progress is 99%, seems to be affected by another file
sample:https://yadi.sk/d/tJn0iuXsxmRdb
-
- Posts: 15
- Joined: Mon Jul 04, 2016 8:37 am
Re: How to use crc to find the file name
aluigi wrote:Ah, I have just re-read your post and what you said about the "order" which doesn't match the names of the extracted files.
In npk.info you have a 128bit hash while in the archive you have a 32bit CRC so there is no direct reference except for the order.
Currently I have made no other checks, this is just a quick update on the fly after I noticed your note.
Name_CRC is a 128-bit Hash???
I use the 0.1 script which happens to be three long, just 128, and, probably because of this Hash, causing the contents of the file error, such as the texture can not be opened (not just the content can not correspond to the problem)
let me try.
Thank you very much..
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: How to use crc to find the file name
Script 0.2.2.
The problem was caused by a bug/feature of quickbms (optimization of operations performed on numbers).
The problem was caused by a bug/feature of quickbms (optimization of operations performed on numbers).
-
- Posts: 50
- Joined: Fri Sep 30, 2016 4:12 am
Re: How to use crc to find the file name
aluigi wrote:Script 0.2.2.
The problem was caused by a bug/feature of quickbms (optimization of operations performed on numbers).
Cool!aluigi.
Script work is very perfect, thank you for your great work, you are my god!
-
- Posts: 15
- Joined: Mon Jul 04, 2016 8:37 am
Re: How to use crc to find the file name
Thanks again! aluigi.
When I went through the analysis of the game model file, I found that I almost do not understand most of the data, and even a Plane:
Is this encrypted or compressed? How to analyze? I tried comtype_scan2.bat, which is more complicated and harder to understand.
Help me. Thank you!
When I went through the analysis of the game model file, I found that I almost do not understand most of the data, and even a Plane:
Is this encrypted or compressed? How to analyze? I tried comtype_scan2.bat, which is more complicated and harder to understand.
Help me. Thank you!
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: How to use crc to find the file name
No encryption/compression.
When you see data with a sense and low entropy using a hex editor, it means that it's plain.
When you see data with a sense and low entropy using a hex editor, it means that it's plain.
-
- Posts: 15
- Joined: Mon Jul 04, 2016 8:37 am
Re: How to use crc to find the file name
OK, I continue to try, thank you!
-
- Posts: 48
- Joined: Tue Jul 26, 2016 10:54 am
Re: How to use crc to find the file name
aluigi wrote:No encryption/compression.
When you see data with a sense and low entropy using a hex editor, it means that it's plain.
Hey ~aluigi.
I noticed that the script does not extract the names of the other documents of the same type, you can try to update the script? Some NPK file doesn't even have the info, how can we get them the correct name? For this engine model, I made great progress, but I find that if you want to make a script that requires a full directory with the correct name of the file, can you help me?