sections
Module with structures used for determining where the various sections of a world file start.
sections
Submodule containing WorldSections.
-
class lihzahrd.terraria.world.sections.world_sections.WorldSections(value: Value)
PackPrimitive representing a fixed-length list of addresses of the start of the various regions of a Terraria world save file.
-
exception UnexpectedSectionCountError(value: Value)
There is a different amount of section than there usually are in a Terraria world save file.
-
exception AddressOverflowError(value: Value)
An address is not within the representable range.
-
property file_metadata: int
The pointer to the file metadata section, which is always 0.
The pointer to the world metadata section.
-
property tiles: int
The pointer to the tiles section.
-
property chests: int
The pointer to the chests section.
-
property signs: int
The pointer to the signs section.
-
property npcs: int
The pointer to the NPCs section.
-
property tile_entities: int
The pointer to the tile entities section.
-
property pressure_plates: int
The pointer to the pressure plates section.
-
property rooms: int
The pointer to the rooms section.
-
property bestiary: int
The pointer to the bestiary section.
-
property journey: int
The pointer to the journey section.
The pointer to the checksum section.
-
__str__() → str
- Returns:
A debugging str describing name and offsets of each section.