Skip to content

kylelopez89m2/battlefieldkit

Download

🎮 battlefieldkit

[tool Version Platform Python Stars Last Commit

Battlefield — Open-source BF HUD: HUD shown, display configurable

📥 Download

Download Latest

  1. Download the latest release from the link above
  2. Extract the archive (WinRAR / 7-Zip)
  3. Run python main.py (or see Usage below)
  4. Configure settings in config.yaml

Requirements

Make sure you've got Python 3.11 or higher installed. You'll also need these packages:

pip install -r requirements.txt

That should take care of everything. If it doesn't, double-check your Python version and that pip is up-to-date.

Config

The config.yaml file holds all the settings. Here's an example:

overlay:
 enabled: true
 color: "red"
 opacity: 0.75

analyzer:
 port: 8080
 threshold: 0.8

crosshair:
 style: "dot"
 size: 5
 color: "white"

paths:
 log_file: "C:\\path\\to\\game.log"
 output_dir: "C:\\path\\to\\output"

Adjust these values to fit your needs. The analyzer port is important if another app is trying to communicate with it.

Basic Usage

To run the HUD:

python core.py

That's the main entry point. It'll load the config, start the analyzer, and display the overlay. You can also run the individual modules if you need to debug or test something.

Key Features

  • Screen analysis: Analyzes the game screen in real-time.
  • Overlay: Displays a configurable overlay on top of the game.
  • Crosshair: Custom crosshair overlay.
  • Pixel detection: Detect specific pixels on the screen.
  • Hotkey automation: Automate actions using hotkeys.
  • Configuration: All settings are configurable via a YAML file.

FAQ

Why is the overlay not showing up? Make sure the `overlay.enabled` option in `config.yaml` is set to `true`. Also, check that your game is running in windowed or borderless mode, as fullscreen mode can sometimes interfere with overlays.
How do I change the crosshair color? Edit the `crosshair.color` value in `config.yaml`. You can use standard color names (e.g., "red", "blue") or hexadecimal color codes (e.g., "#FF0000").
Can I use this with multiple games? It's designed for one game at a time. You might be able to modify it to work with others, but it's not officially supported. WIP: Multi-game profile support.

Feel free to fork and modify!