mrcrowbar.lib.platforms.director module

class mrcrowbar.lib.platforms.director.BitmapCastV4(*argc, **argv)[source]

Bases: mrcrowbar.blocks.Block

bounding_rect
bpp
initial_rect
pitch
reg_x
reg_y
repr

Plaintext summary of the Block.

unk4
class mrcrowbar.lib.platforms.director.BitmapCompressor[source]

Bases: mrcrowbar.transforms.Transform

import_data(buffer, parent=None)[source]

Perform a reverse-transform on a byte string.

buffer
Source byte string.
parent
Parent object of the source (to provide context for Refs).
class mrcrowbar.lib.platforms.director.BitmapV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
data
class mrcrowbar.lib.platforms.director.Blank(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
repr

Plaintext summary of the Block.

value = None
class mrcrowbar.lib.platforms.director.BuiltinPalette[source]

Bases: enum.IntEnum

An enumeration.

GRAYSCALE = 253
METALLIC = 249
NTSC = 250
PASTELS = 252
RAINBOW = 254
SYSTEM_MAC = 255
SYSTEM_WIN = 155
VIVID = 251
class mrcrowbar.lib.platforms.director.CastListV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
index
class mrcrowbar.lib.platforms.director.CastType[source]

Bases: enum.IntEnum

An enumeration.

BITMAP = 1
BUTTON = 7
FILM_LOOP = 2
MOVIE = 9
NULL = 0
PALETTE = 4
PICTURE = 5
RTE = 12
SCRIPT = 11
SHAPE = 8
SOUND = 6
TEXT = 3
VIDEO = 10
class mrcrowbar.lib.platforms.director.CastV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CAST_MAP = {<CastType.BITMAP: 1>: <class 'mrcrowbar.lib.platforms.director.BitmapCastV4'>, <CastType.SHAPE: 8>: <class 'mrcrowbar.lib.platforms.director.ShapeCastV4'>, <CastType.SCRIPT: 11>: <class 'mrcrowbar.lib.platforms.director.ScriptCastV4'>}
cast_type
detail
garbage
repr

Plaintext summary of the Block.

size1
size2
unk1
class mrcrowbar.lib.platforms.director.ChannelCompressor[source]

Bases: mrcrowbar.transforms.Transform

import_data(buffer, parent=None)[source]

Perform a reverse-transform on a byte string.

buffer
Source byte string.
parent
Parent object of the source (to provide context for Refs).
class mrcrowbar.lib.platforms.director.ChannelType[source]

Bases: enum.IntEnum

An enumeration.

FRAME_SCRIPT = 16
PALETTE = 32
SPRITE = 0
class mrcrowbar.lib.platforms.director.ChannelV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHANNEL_MAP = {None: <class 'mrcrowbar.lib.platforms.director.EmptyChannelV4'>, <ChannelType.FRAME_SCRIPT: 16>: <class 'mrcrowbar.lib.platforms.director.ScriptChannelV4'>}
channel_offset
channel_row
channel_size
channel_type
channel_type_wrap
data
repr

Plaintext summary of the Block.

class mrcrowbar.lib.platforms.director.ConfigV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
bit_depth
cast_array_end
cast_array_start
checksum
checksum_v4
colour_flag
comment_font
comment_size
comment_style
comment_style_2
frame_rate
length
light_switch
movie_rect
palette_id
protection_bits
stage_colour
unk1
unk10
unk11
unk12
unk13
unk14
unk15
unk16
unk17
unk4
unk5
unk6
unk7
unk8
unk9
ver1
class mrcrowbar.lib.platforms.director.DirectorV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.lib.containers.riff.RIFX

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS

alias of DirectorV4Map

magic
map
size
class mrcrowbar.lib.platforms.director.DirectorV4Map(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.lib.containers.riff.RIFXMap

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP = {1112101956: <class 'mrcrowbar.lib.platforms.director.BitmapV4'>, 1128354602: <class 'mrcrowbar.lib.platforms.director.CastListV4'>, 1128354676: <class 'mrcrowbar.lib.platforms.director.CastV4'>, 1262836010: <class 'mrcrowbar.lib.platforms.director.KeyV4'>, 1281586296: <class 'mrcrowbar.lib.platforms.director.ScriptContextV4'>, 1282302317: <class 'mrcrowbar.lib.platforms.director.ScriptNamesV4'>, 1282630514: <class 'mrcrowbar.lib.platforms.director.ScriptV4'>, 1380533848: <class 'mrcrowbar.lib.platforms.director.DirectorV4Map'>, 1398036564: <class 'mrcrowbar.lib.platforms.director.TextV4'>, 1399812708: <class 'mrcrowbar.lib.platforms.director.SordV4'>, 1448559430: <class 'mrcrowbar.lib.platforms.director.ConfigV4'>, 1448563523: <class 'mrcrowbar.lib.platforms.director.ScoreV4'>, 1768776048: <class 'mrcrowbar.lib.platforms.director.IMapV4'>, 1835884912: <class 'mrcrowbar.lib.platforms.director.MMapV4'>, 1936614432: <class 'mrcrowbar.lib.platforms.director.SoundV4'>}
form_type
stream
class mrcrowbar.lib.platforms.director.DirectorV4Parser(dirfile)[source]

Bases: object

dump_scripts()[source]
get_all_from_mmap(chunk_id, include_missing=False)[source]
get_from_mmap_index(index)[source]
get_from_mmap_list()[source]
get_from_offset(offset)[source]
get_last_from_mmap(chunk_id, include_missing=False)[source]
class mrcrowbar.lib.platforms.director.DirectorV4_LE(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.lib.containers.riff.RIFX

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS

alias of DirectorV4Map

magic
map
size
class mrcrowbar.lib.platforms.director.DirectorV5(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.lib.containers.riff.RIFX

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS

alias of DirectorV5Map

magic
map
size
class mrcrowbar.lib.platforms.director.DirectorV5Map(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.lib.containers.riff.RIFXMap

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP = {1112101956: <class 'mrcrowbar.lib.platforms.director.BitmapV4'>, 1128354602: <class 'mrcrowbar.lib.platforms.director.CastListV4'>, 1128354676: <class 'mrcrowbar.lib.platforms.director.CastV4'>, 1262836010: <class 'mrcrowbar.lib.platforms.director.KeyV4'>, 1281586296: <class 'mrcrowbar.lib.platforms.director.ScriptContextV4'>, 1282302317: <class 'mrcrowbar.lib.platforms.director.ScriptNamesV4'>, 1282630514: <class 'mrcrowbar.lib.platforms.director.ScriptV5'>, 1398036564: <class 'mrcrowbar.lib.platforms.director.TextV4'>, 1399812708: <class 'mrcrowbar.lib.platforms.director.SordV4'>, 1448559430: <class 'mrcrowbar.lib.platforms.director.ConfigV4'>, 1448563523: <class 'mrcrowbar.lib.platforms.director.ScoreV4'>, 1768776048: <class 'mrcrowbar.lib.platforms.director.IMapV4'>, 1835884912: <class 'mrcrowbar.lib.platforms.director.MMapV4'>, 1936614432: <class 'mrcrowbar.unknown.Unknown'>}
form_type
stream
class mrcrowbar.lib.platforms.director.DirectorV5_LE(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.lib.containers.riff.RIFX

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS

alias of DirectorV5Map

magic
map
size
class mrcrowbar.lib.platforms.director.EmptyChannelV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
class mrcrowbar.lib.platforms.director.FrameV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
channels
repr

Plaintext summary of the Block.

size
size_channels
class mrcrowbar.lib.platforms.director.IMapV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
mmap_offset
unk1
unk2
version
class mrcrowbar.lib.platforms.director.KeyEntry(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
cast_index
chunk_id
repr

Plaintext summary of the Block.

section_index
class mrcrowbar.lib.platforms.director.KeyV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
entries
entry_count
slot_count
unk1
unk2
class mrcrowbar.lib.platforms.director.LingoV4

Bases: enum.IntEnum

An enumeration.

ADD = 5
AMPERSAND = 10
AND = 18
CALL = 86
CALL_EXTERNAL = 87
CALL_EXTERNAL_OBJ = 99
CALL_METHOD = 88
CONCAT = 11
CONTAINS = 21
DIV = 7
EQ = 15
EXIT = 1
FIELD = 27
GE = 17
GT = 16
HILITE = 24
INTERSECTS = 25
JUMP = 147
JUMP_BACK = 84
JUMP_IF = 149
LE = 13
LIST = 30
LT = 12
MOD = 8
MULT = 4
NEGATE = 9
NEQ = 14
NOT = 20
OF = 23
OR = 19
POP_FROM_STACK = 101
POP_GLOBAL = 79
POP_GLOBAL_U16 = 143
POP_LOCAL = 82
POP_PARAM = 81
POP_PROPERTY = 80
POP_PROPERTY_CTX = 96
POP_PROPERTY_CTX_U16 = 160
POP_PROPERTY_OBJ = 98
POP_PROPERTY_OBJ_U16 = 162
POP_PROPERTY_U16 = 144
PROPLIST = 31
PUSH_0 = 3
PUSH_ARGC = 67
PUSH_ARGCNORET = 66
PUSH_ARGCNORET_U16 = 130
PUSH_ARGC_U16 = 131
PUSH_CONST = 68
PUSH_CONST_U16 = 132
PUSH_FROM_STACK = 100
PUSH_GLOBAL = 73
PUSH_GLOBAL_U16 = 137
PUSH_INT = 65
PUSH_INT_U16 = 129
PUSH_LOCAL = 76
PUSH_NAME = 69
PUSH_OBJECT = 70
PUSH_PARAM = 75
PUSH_PATH_U16 = 166
PUSH_PROPERTY = 74
PUSH_PROPERTY_CTX = 95
PUSH_PROPERTY_OBJ = 97
PUSH_PROPERTY_OBJ_U16 = 161
PUSH_PROPERTY_RO = 102
PUT = 90
PUT_TEXTVAR = 89
SLICE_DEL = 91
STARTS = 22
SUB = 6
TELL = 28
TELL_DONE = 29
THE_ENTITY_GET = 92
THE_ENTITY_SET = 93
UNK_00 = 0
UNK_02 = 2
UNK_20 = 32
UNK_21 = 33
UNK_22 = 34
UNK_23 = 35
UNK_24 = 36
UNK_25 = 37
UNK_26 = 38
UNK_27 = 39
UNK_28 = 40
UNK_29 = 41
UNK_2A = 42
UNK_2B = 43
UNK_2C = 44
UNK_2D = 45
UNK_2E = 46
UNK_2F = 47
UNK_30 = 48
UNK_31 = 49
UNK_32 = 50
UNK_33 = 51
UNK_34 = 52
UNK_35 = 53
UNK_36 = 54
UNK_37 = 55
UNK_38 = 56
UNK_39 = 57
UNK_3A = 58
UNK_3B = 59
UNK_3C = 60
UNK_3D = 61
UNK_3E = 62
UNK_3F = 63
UNK_40 = 64
UNK_47 = 71
UNK_48 = 72
UNK_4D = 77
UNK_4E = 78
UNK_53 = 83
UNK_55 = 85
UNK_5E = 94
UNK_67 = 103
UNK_68 = 104
UNK_69 = 105
UNK_6A = 106
UNK_6B = 107
UNK_6C = 108
UNK_6D = 109
UNK_6E = 110
UNK_6F = 111
UNK_70 = 112
UNK_71 = 113
UNK_72 = 114
UNK_73 = 115
UNK_74 = 116
UNK_75 = 117
UNK_76 = 118
UNK_77 = 119
UNK_78 = 120
UNK_79 = 121
UNK_7A = 122
UNK_7B = 123
UNK_7C = 124
UNK_7D = 125
UNK_7E = 126
UNK_7F = 127
UNK_80 = 128
UNK_85 = 133
UNK_86 = 134
UNK_87 = 135
UNK_88 = 136
UNK_8A = 138
UNK_8B = 139
UNK_8C = 140
UNK_8D = 141
UNK_8E = 142
UNK_91 = 145
UNK_92 = 146
UNK_94 = 148
UNK_96 = 150
UNK_97 = 151
UNK_98 = 152
UNK_99 = 153
UNK_9A = 154
UNK_9B = 155
UNK_9C = 156
UNK_9D = 157
UNK_9E = 158
UNK_9F = 159
UNK_A3 = 163
UNK_A4 = 164
UNK_A5 = 165
UNK_A7 = 167
UNK_A8 = 168
UNK_A9 = 169
UNK_AA = 170
UNK_AB = 171
UNK_AC = 172
UNK_AD = 173
UNK_AE = 174
UNK_AF = 175
UNK_B0 = 176
UNK_B1 = 177
UNK_B2 = 178
UNK_B3 = 179
UNK_B4 = 180
UNK_B5 = 181
UNK_B6 = 182
UNK_B7 = 183
UNK_B8 = 184
UNK_B9 = 185
UNK_BA = 186
UNK_BB = 187
UNK_BC = 188
UNK_BD = 189
UNK_BE = 190
UNK_BF = 191
UNK_C0 = 192
UNK_C1 = 193
UNK_C2 = 194
UNK_C3 = 195
UNK_C4 = 196
UNK_C5 = 197
UNK_C6 = 198
UNK_C7 = 199
UNK_C8 = 200
UNK_C9 = 201
UNK_CA = 202
UNK_CB = 203
UNK_CC = 204
UNK_CD = 205
UNK_CE = 206
UNK_CF = 207
UNK_D0 = 208
UNK_D1 = 209
UNK_D2 = 210
UNK_D3 = 211
UNK_D4 = 212
UNK_D5 = 213
UNK_D6 = 214
UNK_D7 = 215
UNK_D8 = 216
UNK_D9 = 217
UNK_DA = 218
UNK_DB = 219
UNK_DC = 220
UNK_DD = 221
UNK_DE = 222
UNK_DF = 223
UNK_E0 = 224
UNK_E1 = 225
UNK_E2 = 226
UNK_E3 = 227
UNK_E4 = 228
UNK_E5 = 229
UNK_E6 = 230
UNK_E7 = 231
UNK_E8 = 232
UNK_E9 = 233
UNK_EA = 234
UNK_EB = 235
UNK_EC = 236
UNK_ED = 237
UNK_EE = 238
UNK_EF = 239
UNK_F0 = 240
UNK_F1 = 241
UNK_F2 = 242
UNK_F3 = 243
UNK_F4 = 244
UNK_F5 = 245
UNK_F6 = 246
UNK_F7 = 247
UNK_F8 = 248
UNK_F9 = 249
UNK_FA = 250
UNK_FB = 251
UNK_FC = 252
UNK_FD = 253
UNK_FE = 254
UNK_FF = 255
WITHIN = 26
class mrcrowbar.lib.platforms.director.MMapEntry(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
chunk_id
flags
import_data(*args, **kwargs)[source]

Import data from a byte array.

raw_buffer
Byte array to import from.
length
memsize
offset
repr

Plaintext summary of the Block.

unk1
class mrcrowbar.lib.platforms.director.MMapV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
entries
entries_max
entries_used
garbage
repr

Plaintext summary of the Block.

unk1
unk2
unk3
class mrcrowbar.lib.platforms.director.MV93(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS = {1112101956: <class 'mrcrowbar.lib.platforms.director.BitmapV4'>, 1128354602: <class 'mrcrowbar.lib.platforms.director.CastListV4'>, 1128354676: <class 'mrcrowbar.lib.platforms.director.CastV4'>, 1262836010: <class 'mrcrowbar.lib.platforms.director.KeyV4'>, 1281586296: <class 'mrcrowbar.lib.platforms.director.ScriptContextV4'>, 1282302317: <class 'mrcrowbar.lib.platforms.director.ScriptNamesV4'>, 1282630514: <class 'mrcrowbar.lib.platforms.director.ScriptV4'>, 1380533848: <class 'mrcrowbar.lib.platforms.director.DirectorV4Map'>, 1398036564: <class 'mrcrowbar.lib.platforms.director.TextV4'>, 1399812708: <class 'mrcrowbar.lib.platforms.director.SordV4'>, 1448559430: <class 'mrcrowbar.lib.platforms.director.ConfigV4'>, 1448563523: <class 'mrcrowbar.lib.platforms.director.ScoreV4'>, 1768776048: <class 'mrcrowbar.lib.platforms.director.IMapV4'>, 1835884912: <class 'mrcrowbar.lib.platforms.director.MMapV4'>, 1936614432: <class 'mrcrowbar.lib.platforms.director.SoundV4'>}
data_length
magic
magic2
stream
class mrcrowbar.lib.platforms.director.MV93_LE(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS = {1112101956: <class 'mrcrowbar.lib.platforms.director.BitmapV4'>, 1128354602: <class 'mrcrowbar.lib.platforms.director.CastListV4'>, 1128354676: <class 'mrcrowbar.lib.platforms.director.CastV4'>, 1262836010: <class 'mrcrowbar.lib.platforms.director.KeyV4'>, 1281586296: <class 'mrcrowbar.lib.platforms.director.ScriptContextV4'>, 1282302317: <class 'mrcrowbar.lib.platforms.director.ScriptNamesV4'>, 1282630514: <class 'mrcrowbar.lib.platforms.director.ScriptV4'>, 1380533848: <class 'mrcrowbar.lib.platforms.director.DirectorV4Map'>, 1398036564: <class 'mrcrowbar.lib.platforms.director.TextV4'>, 1399812708: <class 'mrcrowbar.lib.platforms.director.SordV4'>, 1448559430: <class 'mrcrowbar.lib.platforms.director.ConfigV4'>, 1448563523: <class 'mrcrowbar.lib.platforms.director.ScoreV4'>, 1768776048: <class 'mrcrowbar.lib.platforms.director.IMapV4'>, 1835884912: <class 'mrcrowbar.lib.platforms.director.MMapV4'>, 1936614432: <class 'mrcrowbar.lib.platforms.director.SoundV4'>}
data_length
magic
magic2
stream
class mrcrowbar.lib.platforms.director.MV93_V5(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
CHUNK_MAP_CLASS = {1112101956: <class 'mrcrowbar.lib.platforms.director.BitmapV4'>, 1128354602: <class 'mrcrowbar.lib.platforms.director.CastListV4'>, 1128354676: <class 'mrcrowbar.lib.platforms.director.CastV4'>, 1262836010: <class 'mrcrowbar.lib.platforms.director.KeyV4'>, 1281586296: <class 'mrcrowbar.lib.platforms.director.ScriptContextV4'>, 1282302317: <class 'mrcrowbar.lib.platforms.director.ScriptNamesV4'>, 1282630514: <class 'mrcrowbar.lib.platforms.director.ScriptV5'>, 1398036564: <class 'mrcrowbar.lib.platforms.director.TextV4'>, 1399812708: <class 'mrcrowbar.lib.platforms.director.SordV4'>, 1448559430: <class 'mrcrowbar.lib.platforms.director.ConfigV4'>, 1448563523: <class 'mrcrowbar.lib.platforms.director.ScoreV4'>, 1768776048: <class 'mrcrowbar.lib.platforms.director.IMapV4'>, 1835884912: <class 'mrcrowbar.lib.platforms.director.MMapV4'>, 1936614432: <class 'mrcrowbar.unknown.Unknown'>}
data_length
magic
magic2
stream
class mrcrowbar.lib.platforms.director.PJ93_LE(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
dirdib_drv_offset
fontmap_offset
macromix_dll_offset
magic
resfork1_offset
resfork2_offset
rifx_offset
rifx_offset_dup
unk1
class mrcrowbar.lib.platforms.director.Rect(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
bottom
height
left
repr

Plaintext summary of the Block.

right
top
width
class mrcrowbar.lib.platforms.director.ScoreV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
extra
frames
repr

Plaintext summary of the Block.

size
size_frames
unk1
unk2
unk3
unk4
unk5
unk6
class mrcrowbar.lib.platforms.director.ScriptArguments(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
name_index
class mrcrowbar.lib.platforms.director.ScriptCastV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
code
code_len
repr

Plaintext summary of the Block.

script_id
unk1
unk2
unk3
var_count
vars
class mrcrowbar.lib.platforms.director.ScriptChannelV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
index
class mrcrowbar.lib.platforms.director.ScriptCode(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
instructions
class mrcrowbar.lib.platforms.director.ScriptConstantFloat(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
offset
repr

Plaintext summary of the Block.

value = <StoreRef: 0x00007f5d71ef4a10>
class mrcrowbar.lib.platforms.director.ScriptConstantString(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
offset
repr

Plaintext summary of the Block.

value = <StoreRef: 0x00007f5d71ef4150>
class mrcrowbar.lib.platforms.director.ScriptConstantType[source]

Bases: enum.IntEnum

An enumeration.

FLOAT = 9
STRING = 1
UINT32 = 4
class mrcrowbar.lib.platforms.director.ScriptConstantUInt32(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
repr

Plaintext summary of the Block.

value
class mrcrowbar.lib.platforms.director.ScriptConstantV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
SCRIPT_CONSTANT_TYPES = {1: <class 'mrcrowbar.lib.platforms.director.ScriptConstantString'>, 4: <class 'mrcrowbar.lib.platforms.director.ScriptConstantUInt32'>, 9: <class 'mrcrowbar.lib.platforms.director.ScriptConstantFloat'>}
const
const_type
repr

Plaintext summary of the Block.

class mrcrowbar.lib.platforms.director.ScriptConstantV5(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
SCRIPT_CONSTANT_TYPES = {1: <class 'mrcrowbar.lib.platforms.director.ScriptConstantString'>, 4: <class 'mrcrowbar.lib.platforms.director.ScriptConstantUInt32'>, 9: <class 'mrcrowbar.lib.platforms.director.ScriptConstantFloat'>}
const
const_type
repr

Plaintext summary of the Block.

class mrcrowbar.lib.platforms.director.ScriptContextEntry(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
active
index
repr

Plaintext summary of the Block.

unk1
unk2
unk3
unk4
class mrcrowbar.lib.platforms.director.ScriptContextV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
entries
list_count
list_count_2
list_offset
unk1
unk2
unk3
class mrcrowbar.lib.platforms.director.ScriptFloat(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
exponent
fraction
integer
length
repr

Plaintext summary of the Block.

sign
value
class mrcrowbar.lib.platforms.director.ScriptFunction(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
args = <StoreRef: 0x00007f5d71efcd10>
args_count
args_offset
args_size
code = <StoreRef: 0x00007f5d71efcb90>
length
name_index
offset
repr

Plaintext summary of the Block.

unk1
unk10
unk11
unk12
unk13
unk14
unk15
unk2
unk8
unk9
vars = <StoreRef: 0x00007f5d71efce90>
vars_count
vars_offset
vars_size
class mrcrowbar.lib.platforms.director.ScriptGlobal(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
name_index
class mrcrowbar.lib.platforms.director.ScriptNamesV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
count
length_1
length_2
names
offset
unk1
unk2
unk3
unk4
unk5
unk6
class mrcrowbar.lib.platforms.director.ScriptString(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
length
repr

Plaintext summary of the Block.

value
class mrcrowbar.lib.platforms.director.ScriptV4(*args, **kwargs)[source]

Bases: mrcrowbar.blocks.Block

cast_id
code_store_base
code_store_offset
code_store_raw
code_store_size
consts
consts_base
consts_count
consts_offset
consts_raw
consts_store_offset
consts_unk
factory_name_id
functions
functions_count
functions_offset
globals
globals_count
globals_offset
unk1
unk2
unk3
unk4
unk6
unk7
unk8
unk9
class mrcrowbar.lib.platforms.director.ScriptV5(*args, **kwargs)[source]

Bases: mrcrowbar.lib.platforms.director.ScriptV4

cast_id
code_store_offset
code_store_raw
consts
consts_base
consts_count
consts_offset
consts_raw
consts_unk
factory_name_id
functions
functions_count
functions_offset
globals
globals_count
globals_offset
unk1
unk2
unk3
unk4
unk6
unk7
unk8
unk9
class mrcrowbar.lib.platforms.director.ScriptVariables(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
name_index
class mrcrowbar.lib.platforms.director.ShapeCastV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
bg_colour
fg_colour
fill_type
line_direction
line_thickness
pattern
rect
type
class mrcrowbar.lib.platforms.director.ShapeType[source]

Bases: enum.IntEnum

An enumeration.

LINE = 4
OVAL = 3
RECTANGLE = 1
ROUND_RECT = 2
class mrcrowbar.lib.platforms.director.SordV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
count
index
unk1
unk2
unk3
class mrcrowbar.lib.platforms.director.SoundCastV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
extra
extra_size
repr

Plaintext summary of the Block.

unk1
class mrcrowbar.lib.platforms.director.SoundCastV4Extra(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
name
name_size
repr

Plaintext summary of the Block.

class mrcrowbar.lib.platforms.director.SoundV4(*argc, **argv)[source]

Bases: mrcrowbar.blocks.Block

channels
data
length
length_copy
repr

Plaintext summary of the Block.

sample_bits
sample_rate
sample_signedness
sample_width
unk1
unk2
unk3
unk4
unk5
unk6
unk7
class mrcrowbar.lib.platforms.director.Sprite(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
cast_id
flags
height
script_id
sprite_type
start_x
start_y
width
x2
class mrcrowbar.lib.platforms.director.SpriteChannelV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
bg_colour
cast_id
fg_colour
height
ink
line_size
script_id
trails
type
unk4
unk5
width
x_pos
y_pos
class mrcrowbar.lib.platforms.director.SpriteType[source]

Bases: enum.IntEnum

An enumeration.

BITMAP = 1
BUTTON = 8
CAST_MEMBER = 16
CHECKBOX = 9
DIR_MOVIE = 18
FILM_LOOP = 17
INACTIVE = 0
LINE_BOTTOM_TOP = 6
LINE_TOP_BOTTOM = 5
OUTLINED_OVAL = 14
OUTLINED_RECTANGLE = 12
OUTLINED_ROUNDED_RECTANGLE = 13
OVAL = 4
PICT = 11
RADIO_BUTTON = 10
RECTANGLE = 2
ROUNDED_RECTANGLE = 3
TEXT = 7
THINK_LINE = 15
UNUSED = 255
class mrcrowbar.lib.platforms.director.TextV4(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
data
length
unk1
unk2
unk3
class mrcrowbar.lib.platforms.director.Write16(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
repr

Plaintext summary of the Block.

value
class mrcrowbar.lib.platforms.director.Write8(source_data: common.BytesReadType | None = None, *, parent: Block | None = None, preload_attrs: dict[str, Any] | None = None, endian: EndianEncoding = None, cache_bytes: bool = False, path_hint: str | None = None, strict: bool = False, cache_refs: bool = True)[source]

Bases: mrcrowbar.blocks.Block

Base class for Blocks.

source_data
Source data to construct Block with. Can be a byte string, dictionary of attribute: value pairs, or another Block object.
parent
Parent Block object where this Block is defined. Used for e.g. evaluating Refs.
preload_attrs
Attributes on the Block to set before importing the data. Used for linking in dependencies before loading.
endian
Platform endianness to use when interpreting the Block data. Useful for Blocks which have the same data layout but different endianness for stored numbers. Has no effect on fields with an predefined endianness.
cache_bytes
Cache the bytes equivalent of the Block. Useful for debugging the loading procedure. Defaults to False.
path_hint
Cache a string containing the path of the current Block, relative to the root.
strict
Throw an exception if parsing a BlockField fails, instead of logging a warning and returning an Unknown. Defaults to False.
cache_refs
Pre-cache all the Refs. Defaults to True.
repr

Plaintext summary of the Block.

value
mrcrowbar.lib.platforms.director.checksum_v4(data: Union[bytes, bytearray, mmap.mmap, memoryview])[source]
mrcrowbar.lib.platforms.director.rip_dir_from_exe(filename)[source]
mrcrowbar.lib.platforms.director.unlock_dir_file(filename, endian='big', dry_run=False)[source]