trainerbase 3.16.2__tar.gz → 3.16.3__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.
Files changed (33) hide show
  1. {trainerbase-3.16.2 → trainerbase-3.16.3}/PKG-INFO +2 -2
  2. {trainerbase-3.16.2 → trainerbase-3.16.3}/pyproject.toml +2 -2
  3. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/main.py +2 -2
  4. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/process.py +3 -14
  5. {trainerbase-3.16.2 → trainerbase-3.16.3}/LICENSE +0 -0
  6. {trainerbase-3.16.2 → trainerbase-3.16.3}/README.md +0 -0
  7. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/__init__.py +0 -0
  8. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/codeinjection.py +0 -0
  9. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/common/__init__.py +0 -0
  10. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/common/abc.py +0 -0
  11. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/common/helpers.py +0 -0
  12. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/common/keyboard.py +0 -0
  13. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/common/rainbow.py +0 -0
  14. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/common/teleport.py +0 -0
  15. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/config.py +0 -0
  16. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gameobject.py +0 -0
  17. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/__init__.py +0 -0
  18. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/helpers.py +0 -0
  19. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/injections.py +0 -0
  20. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/misc.py +0 -0
  21. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/objects.py +0 -0
  22. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/rainbow.py +0 -0
  23. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/scripts.py +0 -0
  24. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/speedhack.py +0 -0
  25. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/teleport.py +0 -0
  26. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/gui/types.py +0 -0
  27. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/memory.py +0 -0
  28. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/scriptengine.py +0 -0
  29. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/speedhack.py +0 -0
  30. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase/tts.py +0 -0
  31. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase_vendor/FASM.EXE +0 -0
  32. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase_vendor/speedhack32.dll +0 -0
  33. {trainerbase-3.16.2 → trainerbase-3.16.3}/trainerbase_vendor/speedhack64.dll +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trainerbase
3
- Version: 3.16.2
3
+ Version: 3.16.3
4
4
  Summary: Framework for creating game trainers/mods
5
5
  Home-page: https://gitlab.com/python-trainers/trainer-base
6
6
  License: MIT
@@ -15,7 +15,7 @@ Requires-Dist: keyboard (>=0.13.5,<0.14.0)
15
15
  Requires-Dist: psutil (>=6.0.0,<7.0.0)
16
16
  Requires-Dist: pyinjector (>=1.3.0,<2.0.0)
17
17
  Requires-Dist: pymem (>=1.13.1,<2.0.0)
18
- Requires-Dist: pyttsx3 (>=2.90,<3.0)
18
+ Requires-Dist: pyttsx3 (>=2.91,<3.0)
19
19
  Project-URL: Repository, https://gitlab.com/python-trainers/trainer-base
20
20
  Description-Content-Type: text/markdown
21
21
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "trainerbase"
3
- version = "3.16.2"
3
+ version = "3.16.3"
4
4
  description = "Framework for creating game trainers/mods"
5
5
  authors = ["v01d <v01d@v01d.ru>", "doomayka <zd@doomayka.ru>"]
6
6
  license = "MIT"
@@ -51,7 +51,7 @@ python = "^3.12"
51
51
  pymem = "^1.13.1"
52
52
  dearpygui = "^1.11.1"
53
53
  keyboard = "^0.13.5"
54
- pyttsx3 = "^2.90"
54
+ pyttsx3 = "^2.91"
55
55
  pyinjector = "^1.3.0"
56
56
  psutil = "^6.0.0"
57
57
 
@@ -7,7 +7,7 @@ from trainerbase.codeinjection import safely_eject_all_code_injections
7
7
  from trainerbase.common.rainbow import gradient_updater
8
8
  from trainerbase.gameobject import update_frozen_objects
9
9
  from trainerbase.gui.objects import update_displayed_objects
10
- from trainerbase.process import show_message_and_shutdown_if_process_exited
10
+ from trainerbase.process import shutdown_if_process_exited
11
11
  from trainerbase.scriptengine import (
12
12
  Script,
13
13
  process_healthcheck_script_engine,
@@ -52,7 +52,7 @@ def run( # pylint: disable=too-complex
52
52
 
53
53
  system_script_engine.register_script(Script(update_frozen_objects, enabled=True))
54
54
  system_script_engine.register_script(Script(update_displayed_objects, enabled=True))
55
- process_healthcheck_script_engine.register_script(Script(show_message_and_shutdown_if_process_exited, enabled=True))
55
+ process_healthcheck_script_engine.register_script(Script(shutdown_if_process_exited, enabled=True))
56
56
  rainbow_script_engine.register_script(Script(gradient_updater, enabled=True))
57
57
 
58
58
  try:
@@ -6,8 +6,6 @@ from typing import cast
6
6
  from psutil import pid_exists
7
7
  from pymem import Pymem
8
8
  from pymem.exception import ProcessNotFound
9
- from win32api import MessageBox
10
- from win32con import MB_ICONERROR, MB_OK
11
9
 
12
10
  from trainerbase.config import pymem_config
13
11
 
@@ -38,18 +36,9 @@ def attach_to_process() -> Pymem:
38
36
  force_exit(0)
39
37
 
40
38
 
41
- def show_message_and_shutdown_if_process_exited():
42
- if pid_exists(cast(int, _pm.process_id)):
43
- return
44
-
45
- MessageBox(
46
- None,
47
- "Shut down trainer?",
48
- "Process Exited!",
49
- MB_ICONERROR | MB_OK,
50
- )
51
-
52
- force_exit(0)
39
+ def shutdown_if_process_exited():
40
+ if not pid_exists(cast(int, _pm.process_id)):
41
+ force_exit(0)
53
42
 
54
43
 
55
44
  _pm = attach_to_process()
File without changes
File without changes