mrcrowbar.lib.games.jill module¶
File format classes for the games Jill of the Jungle (DOS, 1992) and Xargon (DOS, 1994).
-
class
mrcrowbar.lib.games.jill.JillLoader[source]¶ Bases:
mrcrowbar.loaders.LoaderLoader for the game Jill of the Jungle (DOS, 1992).
-
class
mrcrowbar.lib.games.jill.SHAFile(*args, **kwargs)[source]¶ Bases:
mrcrowbar.blocks.Block-
tileset_data= <Bytes: offset=0x300>¶
-
tileset_offsets= <UInt32_LE: offset=0x0>¶
-
tileset_sizes= <UInt16_LE: offset=0x200>¶
-
tilesets= <StoreRef: 0x00007f3bde088650>¶
-
-
class
mrcrowbar.lib.games.jill.Sound(*args, **kwargs)[source]¶ Bases:
mrcrowbar.blocks.Block-
SAMPLE_RATE= 6000¶
-
raw_data= <Bytes: offset=0x0>¶
-
-
class
mrcrowbar.lib.games.jill.Text(source_data=None, *, parent=None, preload_attrs=None, endian=None, cache_bytes=False, path_hint=None, strict=False)[source]¶ Bases:
mrcrowbar.blocks.BlockBase 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.
-
data= <Bytes: offset=0x0>¶
-
class
mrcrowbar.lib.games.jill.Tileset(source_data=None, *, parent=None, preload_attrs=None, endian=None, cache_bytes=False, path_hint=None, strict=False)[source]¶ Bases:
mrcrowbar.blocks.BlockBase 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.
-
colour_depth= <UInt8: offset=0x9>¶
-
flags= <UInt16_LE: offset=0xa>¶
-
len_cga= <UInt16_LE: offset=0x3>¶
-
len_ega= <UInt16_LE: offset=0x5>¶
-
len_vga= <UInt16_LE: offset=0x7>¶
-
num_rots= <UInt16_LE: offset=0x1>¶
-
num_shapes= <UInt8: offset=0x0>¶
-
class
mrcrowbar.lib.games.jill.VCLFile(*args, **kwargs)[source]¶ Bases:
mrcrowbar.blocks.Block-
raw_data= <Bytes: offset=0x280>¶
-
sound_freqs= <UInt16_LE: offset=0x12c>¶
-
sound_offsets= <UInt32_LE: offset=0x0>¶
-
sound_sizes= <UInt16_LE: offset=0xc8>¶
-
text_lengths= <UInt16_LE: offset=0x230>¶
-
text_offsets= <UInt32_LE: offset=0x190>¶
-
-
class
mrcrowbar.lib.games.jill.XargonLoader[source]¶ Bases:
mrcrowbar.loaders.LoaderLoader for the game Xargon (DOS, 1994).