Sonic Frontiers NTSP: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks (Created page with "{{GRAFPageHeader}} == TLD == * ''' Format Type ''': Archive / Texture <br> * ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br> * ''' Sig...") |
imported>Ikskoks |
||
| Line 12: | Line 12: | ||
<pre> | <pre> | ||
// NTSP file format | |||
// header | |||
4 bytes (char) - signature // "PSTN" | |||
4 bytes (uint32) - version? // 1 | |||
4 bytes (uint32) - number of texture packs | |||
4 bytes (uint32) - number of textures // 610 | |||
// directory (24 bytes per entry) | |||
number_of_texture_packs * | |||
{ | |||
8 bytes (uint64) - data offset | |||
4 bytes (uint32) - CRC? | |||
4 bytes (uint32) - some offset? / first texture number in pack? | |||
4 bytes (uint32) - some size? / number of textures in pack? | |||
2 bytes (uint16) - texture width | |||
2 bytes (uint16) - texture height | |||
} | |||
// textures info array (16 bytes per entry) | |||
number_of_textures * | |||
{ | |||
8 bytes (uint64) - data size | |||
8 bytes (uint64) - data offset | |||
} | |||
// name list | |||
number_of_texture_packs * | |||
{ | |||
x bytes (char) - texture pack name | |||
1 byte (uint8) - null terminator | |||
} | |||
// data | |||
number_of_textures * | |||
{ | |||
x bytes - data | |||
} | |||
</pre> | </pre> | ||
</div> | </div> | ||
Revision as of 21:13, 8 November 2022
Back to index | Edit this page
TLD
- Format Type : Archive / Texture
- Endian Order : Little Endian
- Signature : PSTN
Format Specifications
// NTSP file format
// header
4 bytes (char) - signature // "PSTN"
4 bytes (uint32) - version? // 1
4 bytes (uint32) - number of texture packs
4 bytes (uint32) - number of textures // 610
// directory (24 bytes per entry)
number_of_texture_packs *
{
8 bytes (uint64) - data offset
4 bytes (uint32) - CRC?
4 bytes (uint32) - some offset? / first texture number in pack?
4 bytes (uint32) - some size? / number of textures in pack?
2 bytes (uint16) - texture width
2 bytes (uint16) - texture height
}
// textures info array (16 bytes per entry)
number_of_textures *
{
8 bytes (uint64) - data size
8 bytes (uint64) - data offset
}
// name list
number_of_texture_packs *
{
x bytes (char) - texture pack name
1 byte (uint8) - null terminator
}
// data
number_of_textures *
{
x bytes - data
}
Notes and Comments
None.
Games
List of games using this file format:
- Sonic Frontiers
QuickBMS Script
Not written yet.
Compatible Programs
None.