XNA Game Studio 4.0 XNB: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
(No difference)
| |
Latest revision as of 12:51, 27 December 2022
Back to index | Edit this page
XNB
- Format Type : Archive
- Endian Order : Little Endian
- Signature : XNB
Format Specifications
// XNB file format
// little endian
//header
3 bytes (char) - signature // "XNB"
1 byte (char) - target platform // "w" - Microsoft Windows
// "m" - Windows Phone 7
// "x" - XBOX 360
// "d" - Windows??
// "S" - Nintendo Switch
// "v" - PlayStation Vita
1 byte (uint8) - XNB format version // 5 = XNA Game Studio 4.0
1 byte (uint8) - flags // bit 0x01 - content is for HiDef profile (otherwise Reach)
// bit 0x80 - asset data is compressed
4 bytes (uint32) - total file size
if compressed_flag == True:
4 bytes (uint32) - uncompressed file size
// Note: If the file is compressed (flag bit 0x80 is set), data from this point on
// is packed using the Xbox XMemCompress API
// type manifest
7BitEncodedInt - type reader count
type_reader_count *
{
7BitEncodedInt - string length
x bytes (char) - type reader name // e.g. "Microsoft.Xna.Framework.Content..."
4 bytes (int32) - reader version number // e.g. 0
}
// data
7BitEncodedInt - shared resource count
primary asset data
{
7BitEncodedInt - resource type // e.g. 1 - Microsoft.Xna.Framework.Graphics.Texture2D
x bytes - resource data
}
shared_resource_count *
{
x bytes - shared resource data
}
Notes and Comments
- Some files may be compressed with LZ4 or with Xbox XMemCompress compression.
Games
List of games using this file format:
- Bleed (PC) (*.XNB)
- Bleed 2 (PC) (*.XNB)
- Bloody Trapland (PC) (*.XNB)
- Bury me, my Love (PC) (*.XNB)
- Celeste (PC) (*.XNB)
- Plants vs zombies (for Windows Phone 7)
- TowerFall Ascension (PC) (*.XNB)
- Many more...
QuickBMS Script
Compatible Programs
See Also