hkb_editor.external.reload.game_config
¶
Game Configuration Module
Contains all game-specific data including AOB patterns, memory offsets, shellcode templates, and process names. This allows easy adaptation to different game versions or other games using the same engine.
GameConfig
dataclass
¶
Configuration for a specific game version.
crash_patch_aob
class-attribute
instance-attribute
¶
crash_patch_aob: Optional[str] = None
Pattern to find crash patch location (optional)
crash_patch_bytes
class-attribute
instance-attribute
¶
crash_patch_bytes: Optional[bytes] = None
Bytes to write for crash fix
crash_patch_jump_end
class-attribute
instance-attribute
¶
crash_patch_jump_end: Optional[int] = None
Offset from end of pattern to patch location
process_names
instance-attribute
¶
process_names: list[str]
List of possible process names (without .exe extension)
shellcode_data_offset
class-attribute
instance-attribute
¶
shellcode_data_offset: int = 2
Offset in shellcode where data setup address is patched (8 bytes)
shellcode_ptr_offset
class-attribute
instance-attribute
¶
shellcode_ptr_offset: int = 12
Offset in shellcode where WorldChrMan pointer is patched (8 bytes)
shellcode_template
class-attribute
instance-attribute
¶
shellcode_template: bytes = None
Raw shellcode bytes with placeholders for addresses
world_chr_man_aob
instance-attribute
¶
world_chr_man_aob: str
Pattern to find the WorldChrMan pointer
world_chr_man_jump_end
instance-attribute
¶
world_chr_man_jump_end: int
Offset to end of instruction in WorldChrMan pattern
world_chr_man_jump_start
instance-attribute
¶
world_chr_man_jump_start: int
Offset to start of relative address in WorldChrMan pattern
world_chr_man_struct_offset
instance-attribute
¶
world_chr_man_struct_offset: int
Offset within WorldChrMan structure