TXST Record – Texture Set

TXST record type.

Classes:

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

Texture set.

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

Bases: Record

Texture set.

Parameters
  • flags (int)

  • id (bytes)

  • revision (int) – Default 0.

  • version (int) – Default 15.

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

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

Classes:

DNAM(*args, **kwargs)

Flags.

DODT(min_width, max_width, min_height, ...)

Decal Data.

TX00([cstring])

Base Image / Transparency.

TX01([cstring])

Normal Map / Specular.

TX02([cstring])

Environment Map Mask.

TX03([cstring])

Glow Map.

TX04([cstring])

Parallax Map.

TX05([cstring])

Enviroment Map.

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 DNAM(*args, **kwargs)[source]

Bases: Uint16Record

Flags.

See https://tes5edit.github.io/fopdoc/Fallout3/Records/TXST.html

class DODT(min_width, max_width, min_height, max_height, depth, shininess, parallax_scale, parallax_passes, flags, color)[source]

Bases: StructRecord

Decal Data.

Parameters

Attributes:

color

depth

flags

max_height

max_width

min_height

min_width

parallax_passes

parallax_scale

shininess

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.

color

Type:    bytes

depth

Type:    float

flags

Type:    int

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]

max_height

Type:    float

max_width

Type:    float

min_height

Type:    float

min_width

Type:    float

parallax_passes

Type:    int

parallax_scale

Type:    float

shininess

Type:    float

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

Bases: CStringRecord

Base Image / Transparency.

The alpha channel holds the transparency data.

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

Bases: CStringRecord

Normal Map / Specular.

The alpha channel holds the specular data.

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

Bases: CStringRecord

Environment Map Mask.

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

Bases: CStringRecord

Glow Map.

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

Bases: CStringRecord

Parallax Map.

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

Bases: CStringRecord

Enviroment Map.

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