trainerbase 4.2.0__tar.gz → 4.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trainerbase-4.2.0 → trainerbase-4.2.1}/PKG-INFO +1 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/pyproject.toml +1 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/codeinjection.py +2 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/helpers.py +2 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gameobject.py +2 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/memory.py +1 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/process.py +3 -3
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/speedhack.py +2 -1
- {trainerbase-4.2.0 → trainerbase-4.2.1}/.gitignore +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/LICENSE +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/README.md +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/__init__.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/abc.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/__init__.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/abc.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/keyboard.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/rainbow.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/tapper.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/common/teleport.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/config.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/__init__.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/helpers.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/injections.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/misc.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/objects.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/rainbow.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/scripts.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/speedhack.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/tapper.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/teleport.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/gui/types.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/logger.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/main.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/py.typed +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/scriptengine.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase/tts.py +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase_vendor/FASM.EXE +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase_vendor/speedhack32.dll +0 -0
- {trainerbase-4.2.0 → trainerbase-4.2.1}/trainerbase_vendor/speedhack64.dll +0 -0
|
@@ -8,7 +8,8 @@ from typing import ClassVar, Final, Self, override
|
|
|
8
8
|
|
|
9
9
|
from pymem.exception import MemoryWriteError
|
|
10
10
|
|
|
11
|
-
from trainerbase.memory import ARCH, ConvertibleToAddress, allocate, ensure_address
|
|
11
|
+
from trainerbase.memory import ARCH, ConvertibleToAddress, allocate, ensure_address
|
|
12
|
+
from trainerbase.process import pm
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
FASM_EXECUTABLE_PATH: Final[Path] = Path(__file__).resolve().parent.parent / "trainerbase_vendor" / "FASM.EXE"
|
|
@@ -7,7 +7,8 @@ from uuid import uuid4
|
|
|
7
7
|
from pymem.exception import MemoryReadError, MemoryWriteError
|
|
8
8
|
|
|
9
9
|
from trainerbase.gameobject import AbstractReadableObject, GameObject
|
|
10
|
-
from trainerbase.memory import POINTER_SIZE, Address, allocate
|
|
10
|
+
from trainerbase.memory import POINTER_SIZE, Address, allocate
|
|
11
|
+
from trainerbase.process import pm
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
type Number = int | float
|
|
@@ -7,7 +7,8 @@ from typing import ClassVar, Self, cast, override
|
|
|
7
7
|
from pymem.exception import MemoryWriteError
|
|
8
8
|
|
|
9
9
|
from trainerbase.abc import Switchable
|
|
10
|
-
from trainerbase.memory import ConvertibleToAddress, ensure_address
|
|
10
|
+
from trainerbase.memory import ConvertibleToAddress, ensure_address
|
|
11
|
+
from trainerbase.process import pm
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
class AbstractReadableObject[T](ABC):
|
|
@@ -10,7 +10,7 @@ from pymem.pattern import pattern_scan_all, pattern_scan_module
|
|
|
10
10
|
from pymem.process import module_from_name
|
|
11
11
|
|
|
12
12
|
from trainerbase.logger import logger
|
|
13
|
-
from trainerbase.process import
|
|
13
|
+
from trainerbase.process import pm
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
ARCH: Final[int] = 64 if pm.is_64_bit else 32
|
|
@@ -74,14 +74,14 @@ def attach_to_process() -> Pymem:
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
def shutdown_if_process_exited():
|
|
77
|
-
if not pid_exists(cast(int,
|
|
77
|
+
if not pid_exists(cast(int, pm.process_id)):
|
|
78
78
|
logger.info("Game process exited. Shutting down.")
|
|
79
79
|
force_exit(0)
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
def kill_game_process():
|
|
83
83
|
logger.info("Killing game process.")
|
|
84
|
-
Process(
|
|
84
|
+
Process(pm.process_id).kill()
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
pm = attach_to_process()
|
|
@@ -8,7 +8,8 @@ from pymem.process import module_from_name
|
|
|
8
8
|
from pymem.ressources.structure import MODULEINFO
|
|
9
9
|
|
|
10
10
|
from trainerbase.gameobject import GameDouble
|
|
11
|
-
from trainerbase.memory import ARCH
|
|
11
|
+
from trainerbase.memory import ARCH
|
|
12
|
+
from trainerbase.process import pm
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
SPEEDHACK_DLL_MODULE_NAME: Final[str] = f"speedhack{ARCH}.dll"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|