Gamebryo Model File (NIF) - ivybridgegp/AphroditeServerWiki GitHub Wiki

NIF files are the character model files used by Gamebryo and a wide range of other games

Available tools for reading the files

  • nifskope : GUI for loading and displaying the contents of NIF files
  • niflib : Library for reading NIF files
  • nifxmls : XML documentation for describing the structure of the files

Structure

Name Size Description
Header String string String terminated by 0x0A
NIF Version Uint32 File version
Endian byte 0 for big endian, 1 for little endian
User Version Uint32 User version number
Number of blocks Uint32 Number of blocks of data in the file
Metadata length Int32 Size of metadata in bytes. Can be zero
Metadata byte array array of data size of length
Number of block types Int16 Number of unique block types in the data
Block type names List of lengths + Strings Block type names
Block type hashes List of Uint32 List of block type hashes
Block type indices List of Int16 List of block type indices
Block sizes List of uint32 List of block data sizes
Number of strings uint32 Number of strings in the file