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.
Zero Tolerance for Disrespect

NANA - (NKP,NKT,NKF) File format

Featured Replies

Hello I am fan translating NANA from ps2, and so far i have been able to replace the first cutscene by decompiling and recompiling the PSS file that contains the first cutscene.  To proceed further I need help disassembling / understanding NKT, NKF files. i assume the NKT is text / texture. NKF is the font files i need for remapping all the SJIS chars into english, and adding missing / needed characters.  If anyone could provide me with some dissasemmbly knowledge or a tool on how to decompile / view these files correctly, please contact me @mxlg discord, @mxlgborn telegram. Thank you! here is the cutscene: https://files.catbox.moe/cemfep.mkv

  • 4 weeks later...
  • Localization

You should upload some sample files instead of a video; a video isn't very helpful for reverse-engineering this game.

NKP is a package file format used by KONAMI in PS2 games. Games I know of that use this format include Cool Girl, Gantz, and NANA, and there might be others.

You can unpack NKP files using existing quickbms scripts:

idstring "NKP\x1a"
get NKP_SIZE long
get ZERO long
get FILES long
for i = 0 < FILES
    get NAME_OFF long
    get OFFSET long

    savepos TMP
    goto NAME_OFF
    get NAME string
    goto TMP

    putarray 0 i OFFSET
    putarray 1 i NAME
next i
    putarray 0 i NKP_SIZE

math FILES = i
for i = 0 < FILES
    getarray OFFSET 0 i
    getarray NAME   1 i
    math i + 1
    getarray SIZE   0 i
    math SIZE - OFFSET
    log NAME OFFSET SIZE
next

After unpacking NKP, you'll find NKT files, which should be textures. I'm not skilled enough to fully parse them, but I'm certain that the palette starts at 0x1A0. Most textures are 8BPP, with a few 4BPP ones. Fonts might also be in some NKT files, but I haven't found them.

image.thumb.png.ae559c853bdd0ae47fc588ed3468a6e7.png

I've attached a few NKT files, hoping that an graphic expert can analyze them.

Additionally, you can find all the game's story scripts in allsc.nkp->unpack->(evt_***.nkp).

They are in files with the .cg extension, which is actually a text format. You can directly view the script content; remember to use SHIFT-JIS encoding.

image.thumb.png.6dbf059ed6f5c0b7ddc4aca293538587.png

NKT_TEXTURE_SAMPLE.zip

Create an account or sign in to comment

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.