CCRD Record – Caravan Card

CCRD record type.

Classes:

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

Caravan Card.

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

Bases: Record

Caravan Card.

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(*args, **kwargs)

Value.

FULL([cstring])

Name.

ICON([cstring])

Large Icon Filename.

INTV(*args, **kwargs)

Card Suit / Value.

MICO([cstring])

Small Icon FIlename.

SCRI([cstring])

Script.

TX00([cstring])

High Res Image - Face.

TX01([cstring])

High Res Image - Back.

YNAM([cstring])

Sound - Pick Up.

ZNAM([cstring])

Sound - Drop.

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

Bases: Uint32Record

Value.

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

Bases: CStringRecord

Name.

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

Bases: CStringRecord

Large Icon Filename.

class INTV(*args, **kwargs)[source]

Bases: Uint32Record

Card Suit / Value.

Enum - see values below.

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

Bases: CStringRecord

Small Icon FIlename.

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

Bases: FormIDRecord

Script.

Form ID of a SCPT record.

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

Bases: CStringRecord

High Res Image - Face.

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

Bases: CStringRecord

High Res Image - Back.

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

Bases: FormIDRecord

Sound - Pick Up.

Form ID of a SOUN record.

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

Bases: FormIDRecord

Sound - Drop.

Form ID of a SOUN 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