Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

How to use crc to find the file name [Demon Seals HD]

Featured Replies

  • Author
  • Localization

Rokki, posted Fri Oct 28, 2016 10:54 am (18421)


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.
Image


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
  • Author
  • Localization

aluigi, posted Fri Oct 28, 2016 2:59 pm (18427)


Script 0.2 :D
  • Author
  • Localization

aluigi, posted Fri Oct 28, 2016 3:17 pm (18429)


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.
  • Author
  • Localization

aluigi, posted Fri Oct 28, 2016 3:34 pm (18430)


Script 0.2.1, all the doubts have been solved and now it works perfectly.
  • Author
  • Localization

giles_tesla, posted Fri Oct 28, 2016 11:24 pm (18437)


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
  • Author
  • Localization

Rokki, posted Sat Oct 29, 2016 12:03 am (18438)


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..
  • Author
  • Localization

aluigi, posted Sat Oct 29, 2016 7:38 am (18440)


Script 0.2.2.
The problem was caused by a bug/feature of quickbms (optimization of operations performed on numbers).
  • Author
  • Localization

giles_tesla, posted Sat Oct 29, 2016 8:43 am (18443)


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!
  • Author
  • Localization

Rokki, posted Mon Oct 31, 2016 1:04 pm (18501)


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:

Image


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!
  • Author
  • Localization

aluigi, posted Mon Oct 31, 2016 3:54 pm (18503)


No encryption/compression.
When you see data with a sense and low entropy using a hex editor, it means that it's plain.
  • Author
  • Localization

Rokki, posted Tue Nov 01, 2016 12:32 am (18505)


OK, I continue to try, thank you!
  • Author
  • Localization

The soul of light, posted Fri Mar 31, 2017 1:23 pm (21872)


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?
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.