Strategem Master is a Python desktop overlay tool for Helldivers 2 players. It uses OCR to detect strategem icons from your screen, displays them in a transparent overlay, and lets you trigger strategem key sequences with hotkeys.
- Overlay Window: Transparent PyQt5 overlay showing strategem slots and names.
- OCR Detection: Uses OpenCV and Tesseract to read strategem names from screenshots.
- Hotkey Control: Activate strategems or overlay actions using customizable hotkeys.
- Automated Input: Sends key sequences for strategems using PyAutoGUI.
-
Clone the repository:
git clone https://github.com/yourusername/strategem_master.git cd strategem_master -
Install dependencies:
pip install -r requirements.txt
-
Install Tesseract OCR:
- Download and install Tesseract OCR.
- Update the path in
main.pyif needed:pytesseract.pytesseract.tesseract_cmd = r"C:\Path\To\Tesseract-OCR\tesseract.exe"
-
Run the program:
python main.py
-
Hotkeys:
Ctrl + ]— Take a screenshot and update overlay with detected strategems.Ctrl + 1-4— Activate strategem in slot 1-4.Ctrl + g— Trigger "reinforce" strategem.Ctrl + v— Trigger "resupply" strategem.Ctrl + Esc— Exit the program.
-
Overlay:
- The overlay window stays on top and displays detected strategems.
- Selected strategem is highlighted when activated.
- Strategem Data: All strategem key sequences and names are in
main.py(strategems_alldictionary). - Overlay Appearance: Edit styles in
overlay_window.PYfor custom colors and font sizes. - Hotkeys: Change hotkey mappings in
main.pyas needed.
- No strategems detected: Make sure Tesseract OCR is installed and the path is correct.
- Overlay not showing: Check PyQt5 installation and run as administrator if needed.
- Key input not working: Some games may block simulated input; run as administrator.
MIT License
Pull requests and issues are welcome! Please open an issue for bugs or feature requests.
Enjoy automated strategem mastery!