Skip to content

hkb_editor.external.reload.game_process

Game Character Reload Tool

This module provides functionality to dynamically reload character files in games by manipulating the game's memory and injecting code to trigger the reload mechanism.

Key components: - AOBScanner: Searches for byte patterns in process memory - MemoryManager: Handles process attachment and memory operations - ChrReloader: Coordinates the character reload process

This code is a port of A1steaksa's HKS-Hotloader functionality https://github.com/A1steaksa/Elden-Ring-HKS-Hotloader

ChrReloader

Handles the character reload process.

reload_character

reload_character(chr_name: str = 'c0000')

Reload a character file in the game.

Args: chr_name: Name of the character file to reload (e.g., "c0000")

MemoryManager

Manages process attachment and memory scanning operations.

attach_to_process

attach_to_process()

Attach to the game process and find its base address.

detect_game_config

detect_game_config() -> GameConfig

Detect which game configuration to use based on running processes. However, this will not detect the game version.

Returns: GameConfig: The first configuration that matches a running process.

Raises: RuntimeError: If no matching game process is found.

reload_character

reload_character(chr_name: str = 'c0000', config: GameConfig = None) -> ChrReloader

Convenience function to reload a character.

Args: chr_name: Name of the character to reload (e.g., "c0000") config: Game configuration. If None, automatically detects based on running processes.