Jump to content

Recommended Posts

Posted

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...
  • Members
Posted

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

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...