EXPL Record – Explosion

EXPL record type.

Classes:

EXPL(flags, id[, revision, version, ...])

Explosion.

class EXPL(flags, id, revision=0, version=15, unknown=b'\x00\x00', data=[])[source]

Bases: Record

Explosion.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

  • unknown (bytes) – Default b'\x00\x00'.

  • data (List[RecordType]) – Default [].

Classes:

DATA(force, damage, radius, light, sound1, ...)

Data.

EITM([cstring])

Object Effect.

FULL([cstring])

Name.

INAM([cstring])

Placed Impact Object.

MNAM([cstring])

Image Space Modifier.

Attributes:

data

Subrecords of this record.

flags

Record flags

id

4-byte form ID

revision

Used for revision control by the Creation Kit, if enabled.

unknown

version

Form version

Methods:

parse_subrecords(raw_bytes)

Parse this record's subrecords.

class DATA(force, damage, radius, light, sound1, flags, is_radius, impact_dataset, sound2, radiation_level, radiation_dissipation_time, radiation_radius, sound_level)[source]

Bases: StructRecord

Data.

Parameters
  • force (float)

  • damage (float)

  • radius (float)

  • light (bytes) – Form ID of a LIGH record, or null.

  • sound1 (bytes) – Form ID of a SOUN record, or null.

  • flags (int)

  • is_radius (float)

  • impact_dataset (bytes) – Form ID of a IPDS record, or null.

  • sound2 (bytes) – Form ID of a SOUN record, or null.

  • radiation_level (float)

  • radiation_dissipation_time (float)

  • radiation_radius (float)

  • sound_level (int)

Attributes:

damage

flags

force

impact_dataset

Form ID of a IPDS record, or null.

is_radius

light

Form ID of a LIGH record, or null.

radiation_dissipation_time

radiation_level

radiation_radius

radius

sound1

Form ID of a SOUN record, or null.

sound2

Form ID of a SOUN record, or null.

sound_level

Methods:

get_field_names()

Returns a list of attributes on this class in the order they should be packed.

get_struct_and_size()

Returns the pack/unpack struct string and the corresponding size.

damage

Type:    float

flags

Type:    int

force

Type:    float

static get_field_names()[source]

Returns a list of attributes on this class in the order they should be packed.

Return type

Tuple[str, …]

static get_struct_and_size()[source]

Returns the pack/unpack struct string and the corresponding size.

Return type

Tuple[str, int]

impact_dataset

Type:    bytes

Form ID of a IPDS record, or null.

is_radius

Type:    float

light

Type:    bytes

Form ID of a LIGH record, or null.

radiation_dissipation_time

Type:    float

radiation_level

Type:    float

radiation_radius

Type:    float

radius

Type:    float

sound1

Type:    bytes

Form ID of a SOUN record, or null.

sound2

Type:    bytes

Form ID of a SOUN record, or null.

sound_level

Type:    int

class EITM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Object Effect.

Form ID of an ENCH or SPEL record.

class FULL(cstring: Union[str, bytes] = b'')[source]

Bases: CStringRecord

Name.

class INAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Placed Impact Object.

Form ID of a TREE, SOUN, ACTI, DOOR, STAT, FURN, CONT, ARMO, AMMO, LVLN, LVLC, MISC, WEAP, BOOK, KEYM, ALCH, LIGH, GRAS, ASPC, IDLM, ARMA, MSTT, NOTE, PWAT, SCOL, TACT, TERM, TXST, CHIP, CMNY, CCRD or IMOD record.

class MNAM(cstring: Union[str, bytes] = b'')[source]

Bases: FormIDRecord

Image Space Modifier.

Form ID of an IMAD record.

data

Type:    List[RecordType]

flags

Type:    int

id

Type:    bytes

classmethod parse_subrecords(raw_bytes)[source]

Parse this record’s subrecords.

Parameters

raw_bytes (BytesIO) – Raw bytes for this record’s subrecords

Return type

Iterator[RecordType]

revision

Type:    int

unknown

Type:    bytes

version

Type:    int