CHAL Record – Challenge

CHAL record type.

Classes:

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

Challenge.

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

Bases: Record

Challenge.

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(type, threshold, flags, interval, ...)

Data.

DESC([cstring])

Description.

DataTypeEnum(value)

Enum for CHAL.DATA.type.

FULL([cstring])

Name.

ICON([cstring])

Path to icon texture, when viewed in PipBoy.

MICO([cstring])

Path to icon texture, when viewed in upper-left message.

SCRI([cstring])

Script.

SNAM([cstring])

Value3.

XNAM([cstring])

Value4.

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(type, threshold, flags, interval, value1, value2, value3)[source]

Bases: StructRecord

Data.

Parameters

Attributes:

flags

interval

threshold

type

value1

value2

value3

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.

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]

interval

Type:    int

threshold

Type:    int

type

Type:    int

value1

Type:    bytes

value2

Type:    bytes

value3

Type:    bytes

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

Bases: CStringRecord

Description.

class DataTypeEnum(value)[source]

Bases: IntEnum

Enum for CHAL.DATA.type.

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

Bases: CStringRecord

Name.

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

Bases: CStringRecord

Path to icon texture, when viewed in PipBoy.

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

Bases: CStringRecord

Path to icon texture, when viewed in upper-left message.

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

Bases: FormIDRecord

Script.

Form ID of a SCPT record.

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

Bases: FormIDRecord

Value3.

Depends on Data.Type

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

Bases: FormIDRecord

Value4.

Depends on Data.Type

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