NSW: Asatsugutori (story.dat, common_story.dat)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
effole
Posts: 1
Joined: Fri Nov 26, 2021 12:16 am

NSW: Asatsugutori (story.dat, common_story.dat)

Post by effole »

The text area of "story.dat & common_story.dat" file seems to be compressed.

It seems that it may be a lz4 compression algorithm because of the "lz4.nro & lz4.nrr" file, but it looks different from the general lz4 compression.

Can anyone give me a hint or how to decompress it?

A file that is guessed to be compressed.
story.dat = main story?
common_story.dat = common text?

The image below is part of story.dat.
Image

The font is used utf-8
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: NSW: Asatsugutori (story.dat, common_story.dat)

Post by aluigi »

I think this is the format of the DAT file (except script.dat which is something else):

Code: Select all

# NSW: Asatsugutori DAT
get DATA_OFF long
get FILES long
for i = 0 < FILES
    get DUMMY long
    get OFFSET long
    putarray 0 i OFFSET
next i
    get OFFSET asize
    putarray 0 i OFFSET
for i = 0 < FILES
    getarray OFFSET 0 i
    math i + 1
    getarray SIZE   0 i
    math SIZE - OFFSET
    log "" OFFSET SIZE
next

There are no filenames, the DID file is totally useless, no idea what's format of the extracted files.