trainerbase 4.0.4__tar.gz → 4.0.6__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.0.4 → trainerbase-4.0.6}/PKG-INFO +3 -3
- {trainerbase-4.0.4 → trainerbase-4.0.6}/pyproject.toml +4 -4
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/tts.py +15 -1
- {trainerbase-4.0.4 → trainerbase-4.0.6}/LICENSE +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/README.md +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/__init__.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/abc.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/codeinjection.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/__init__.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/abc.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/helpers.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/keyboard.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/rainbow.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/tapper.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/common/teleport.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/config.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gameobject.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/__init__.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/helpers.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/injections.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/misc.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/objects.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/rainbow.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/scripts.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/speedhack.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/tapper.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/teleport.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/gui/types.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/logger.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/main.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/memory.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/process.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/scriptengine.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase/speedhack.py +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase_vendor/FASM.EXE +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase_vendor/speedhack32.dll +0 -0
- {trainerbase-4.0.4 → trainerbase-4.0.6}/trainerbase_vendor/speedhack64.dll +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: trainerbase
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.6
|
|
4
4
|
Summary: Framework for creating game trainers/mods
|
|
5
5
|
Home-page: https://gitlab.com/python-trainers/trainer-base
|
|
6
6
|
License: MIT
|
|
7
7
|
Author: v01d
|
|
8
8
|
Author-email: v01d@v01d.ru
|
|
9
|
-
Requires-Python: >=3.12,<
|
|
9
|
+
Requires-Python: >=3.12,<3.14
|
|
10
10
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Requires-Dist: dearpygui (>=
|
|
13
|
+
Requires-Dist: dearpygui (>=2.0.0,<3.0.0)
|
|
14
14
|
Requires-Dist: keyboard (>=0.13.5,<0.14.0)
|
|
15
15
|
Requires-Dist: mouse (>=0.7.1,<0.8.0)
|
|
16
16
|
Requires-Dist: psutil (>=6.0.0,<7.0.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "trainerbase"
|
|
3
|
-
version = "4.0.
|
|
3
|
+
version = "4.0.6"
|
|
4
4
|
description = "Framework for creating game trainers/mods"
|
|
5
5
|
authors = ["v01d <v01d@v01d.ru>", "doomayka <zd@doomayka.ru>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -17,7 +17,7 @@ include = [
|
|
|
17
17
|
]
|
|
18
18
|
|
|
19
19
|
[tool.poetry.group.dev.dependencies]
|
|
20
|
-
ruff = "^0.6.
|
|
20
|
+
ruff = "^0.6.9"
|
|
21
21
|
|
|
22
22
|
[tool.ruff]
|
|
23
23
|
src = ["trainerbase"]
|
|
@@ -47,14 +47,14 @@ lines-after-imports = 2
|
|
|
47
47
|
line-ending = "lf"
|
|
48
48
|
|
|
49
49
|
[tool.poetry.dependencies]
|
|
50
|
-
python = "
|
|
50
|
+
python = ">=3.12,<3.14"
|
|
51
51
|
pymem = "^1.13.1"
|
|
52
|
-
dearpygui = "^1.11.1"
|
|
53
52
|
keyboard = "^0.13.5"
|
|
54
53
|
pyttsx3 = "^2.98"
|
|
55
54
|
pyinjector = "^1.3.0"
|
|
56
55
|
psutil = "^6.0.0"
|
|
57
56
|
mouse = "^0.7.1"
|
|
57
|
+
dearpygui = "^2.0.0"
|
|
58
58
|
|
|
59
59
|
[build-system]
|
|
60
60
|
requires = ["poetry-core"]
|
|
@@ -3,12 +3,22 @@ from typing import override
|
|
|
3
3
|
|
|
4
4
|
from pyttsx3 import init as init_tts_engine
|
|
5
5
|
|
|
6
|
+
from trainerbase.logger import logger
|
|
6
7
|
from trainerbase.scriptengine import AbstractBaseScript
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class TTSManager(AbstractBaseScript):
|
|
10
11
|
def __init__(self, queue_length_limit: int = 5):
|
|
11
|
-
|
|
12
|
+
try:
|
|
13
|
+
self.__engine = init_tts_engine()
|
|
14
|
+
except NameError:
|
|
15
|
+
self.__engine = None
|
|
16
|
+
logger.error(
|
|
17
|
+
"Failed to initialize TTS Engine. Installed version of pyttsx3 does not support Python 3.13 yet."
|
|
18
|
+
" Consider using Python 3.12 or continue with Python 3.13 without TTS."
|
|
19
|
+
" Also there is maybe new TrainerBase version with fixed pyttsx3."
|
|
20
|
+
)
|
|
21
|
+
|
|
12
22
|
self.__queue = deque(maxlen=queue_length_limit)
|
|
13
23
|
|
|
14
24
|
@override
|
|
@@ -24,6 +34,10 @@ class TTSManager(AbstractBaseScript):
|
|
|
24
34
|
self.__queue.popleft()
|
|
25
35
|
|
|
26
36
|
def __say_sync(self, text: str, rate: int = 210, volume: float = 1.0):
|
|
37
|
+
if self.__engine is None:
|
|
38
|
+
logger.debug(f"TTS should say: {text}. But TTS Engine is not initialized!")
|
|
39
|
+
return
|
|
40
|
+
|
|
27
41
|
self.__engine.setProperty("rate", rate)
|
|
28
42
|
self.__engine.setProperty("volume", volume)
|
|
29
43
|
self.__engine.say(text)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|