NAS
From Just Solve the File Format Problem
(Difference between revisions)
(One intermediate revision by one user not shown) | |||
Line 6: | Line 6: | ||
A '''.NAS''' file is a compressed paletted image archive format. The format appears to be proprietary and specific to the ''Bunny Pro. Das2'' visual novel software for Windows. | A '''.NAS''' file is a compressed paletted image archive format. The format appears to be proprietary and specific to the ''Bunny Pro. Das2'' visual novel software for Windows. | ||
+ | |||
+ | See also [[DPK]]. | ||
== Specification == | == Specification == | ||
Line 35: | Line 37: | ||
* Signature (<code>AD</code>) | * Signature (<code>AD</code>) | ||
* Data (362 bytes) | * Data (362 bytes) | ||
+ | |||
+ | == Sample files == | ||
+ | * [https://archive.org/details/Corsage_1653931983498 Corsage] → ...Disc 1.iso → NAS.DPK ([[DPK]] format) → *.NAS |
Latest revision as of 20:06, 27 June 2023
A .NAS file is a compressed paletted image archive format. The format appears to be proprietary and specific to the Bunny Pro. Das2 visual novel software for Windows.
See also DPK.
Contents |
[edit] Specification
- This format has the signature
4E 41 00 00
- Payload-size (int)
- A fixed-size palette of 256 entries totalling 768 bytes. Each entry is a 3-byte tuple for the red, blue and green component. (Most images do not use all 256 entries but the palette is always 768 bytes)
- A series of chunks, either starting with the bytes
AD
orNB
. Most images only have a singleNB
chunk.
[edit] NB chunk
The NB chunk contains image data and has the following format:
- Signature (
NB
) - Image width (short)
- Image height (short)
- Unknown 1 (short) — usually 0 or 1
- Unknown 2 (short) — always 0
- Unknown 3 (short) — always 1
- Length of data (int)
- Image data
The image data is compressed and the method is unknown.
[edit] AD chunk
The format of this chunk is unknown:
- Signature (
AD
) - Data (362 bytes)