Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Data TypeNWN Explorer NameSize (in bytes)Value LimitsDescriptionNotes
BYTEUINT810 to 255Unsigned single byteSmallest unit to store so also used for booleans
WORDUINT1620 to 65535Unsigned integerUINT16 in Explorer
DWORDUINT3240 to 4294967296Unsigned integer
DWORD64UNIT6480 to roughly 18E18Unsigned integer
CHARINT81-128 - 127Single character signed integer
SHORTINT162-32768 to 32767Signed integer
INTINT324-2147483648 to 2147483647Signed integer
INT64INT328Roughly -9E18 to +9E18Signed integer
FLOATFLOAT4Variable see WikipediaFloating point value
DOUBLE
8Variable see WikipediaDouble-precision floating point value
CExoLocString
variablen/a

Localized string. Contains a StringRef DWORD, and a number of CExoStrings, each having their own language ID.


CExoStringSTRINGvariablen/aNon-localized stringCommonly used in the toolset (ie user set per-module)CHAR11 characterSingle character byte
CResRefRESREF1616 characters

Filename of a game resource. Max length is 16 characters. Unused characters are nulls.


VOID / Binary
variablen/aVariable-length arbitrary dataUsed to store things like sqlite data on BICs or Modules/Saves
StructENTRYvariablen/a

A complex data type that can contain any number of any of the other data types, including other Structs.

Used to lay out data in the GFF, eg; level data in a BIC
ListLISTvariablen/aA list of Structs.BinaryvariableBinary data