Skip to content

ReksarGames/RN_AI_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

43 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฏ RN_AI_cpp โ€” AI Aim Assistant


โœจ Features

๐ŸŽฏ AI Detection Target detection using neural networks with high accuracy
๐ŸŽจ Color Detection Target identification through color-based filtering
๐Ÿ“ˆ Real-time Stats FPS counter and latency information
๐Ÿ–ฑ๏ธ Aim Simulator Visualization of target movement prediction
๐ŸŽ›๏ธ ClassTable Real-time dynamic class management
๐Ÿ”„ Kalman Filter Smooth movement without aim jitter
โšก Multiple Backends DirectML, CUDA+TensorRT, Color Detection

๐Ÿš€ Quick Start

1๏ธโƒฃ Choose Your Build

๐ŸŸข DirectML (Universal)

For: Any GPU (NVIDIA, AMD, Intel, integrated graphics)

โœ… Windows 10/11 (x64)
โœ… No CUDA required
โœ… Recommended for older GPUs

Recommended for:

  • GTX 10xx/9xx/7xx series
  • AMD Radeon GPU
  • Intel Iris/Xe GPU
  • Laptops and office PCs
๐ŸŸก CUDA + TensorRT (Maximum Performance)

For: Latest generation NVIDIA GPUs

โœ… RTX 2000/3000/4000 and newer
โœ… GTX 1660
โœ… CUDA 12.8 + TensorRT 10.8 (included)
โŒ Does not support GTX 10xx/Pascal and older

Features:


โš™๏ธ Configuration & Parameters

๐Ÿ“ฆ ClassTable โ€” Class Management

Dynamic management of target classes with:

  • โœ… Add/switch classes in real-time
  • โœ… Auto-detection of new classes
  • โœ… Configure Y1/Y2 position for each class

๐ŸŽจ Colorbot โ€” Color Detection

Advanced color filtering system:

Parameter Range Description
color_erode_iter 0-5 Number of erosion iterations (reduces noise)
color_dilate_iter 0-5 Number of dilation iterations (restores size)
color_min_area 1-1000 Minimum object area
color_target Yellow/Red/etc Target color for tracking
tinyArea 1-100 Small element filtering threshold
isOnlyTop true/false Consider only top objects
scanError 0-100 Allowed search error (0=precise)

๐Ÿ’ก Use: Accurate color-based target selection while ignoring noise


๐ŸŽฏ Kalman Filter โ€” Movement Prediction

Smoothing filter for target position prediction:

Parameter Description
kalman_process_noise Accounts for random movement changes
kalman_measurement_noise Accounts for sensor/camera errors
kalman_speed_multiplier_x/y Speed multiplier per axis
resetThreshold Filter reinitialization threshold

๐Ÿ’ก Result: Smooth aiming without jitter


๐Ÿ–ฅ๏ธ Interface & Controls

๐ŸŽจ ImGui Menu

Menu interface features:

  • ๐Ÿงญ Vertical navbar with custom icons
  • ๐Ÿ–ผ๏ธ Custom background via ui_bg.png
  • ๐ŸŽจ Theming in ui_theme.ini
  • โš™๏ธ Components tab for runtime configuration

๐Ÿ“ธ Interface Screenshots

Screen Capture Target Status
Capture Status

๐ŸŽ›๏ธ Overlay Controls

  • Overlay Opacity โ€” Transparency (slider or ยฑ)
  • UI Scale โ€” Interface scale (ยฑ or manual input)
  • Window Width/Height โ€” Window size (manual input)
  • Resize Handles โ€” Resize window from edges

๐ŸŽฎ Game Overlay โ€” On-Screen Visualization

Information displayed directly on desktop over games and apps:

  • ๐Ÿ“Š Stats โ€” FPS counter and latency info
  • ๐ŸŽฏ Aim Simulator โ€” Aiming prediction visualization
  • ๐Ÿ”ฒ Detection Boxes โ€” Detected target boxes
  • ๐ŸŽจ Class Colors โ€” Auto-coloring (class 0 = green)
  • ๐Ÿ“ Text Size โ€” Adjustable in Components โ†’ Advanced

๐Ÿ”ง Technical Details

๐Ÿ“ File Structure

File Purpose
config.ini Main project configuration
ui_theme.ini UI colors, sizes, and parameters
ui_bg.png Menu background image (replaceable)
imgui.ini Window state (local, not committed)

๐Ÿ“ฆ Core Modules

๐Ÿ“น capture/ โ€” Screen capture methods

  • DirectX Duplication API โ€” duplication_api_capture
  • Windows Runtime capture โ€” winrt_capture
  • ๐Ÿ“– OBS Capture โ€” obs_capture

๐Ÿง  detector/ โ€” Target detection system

  • DirectML detector โ€” dml_detector
  • TensorRT detector (NVIDIA) โ€” trt_detector
  • Color-based detection โ€” color_detector

๐ŸŽจ overlay/ โ€” Visual interface

  • ImGui implementation โ€” imgui_impl_*
  • 2D/3D rendering โ€” rendering

โšก Input Methods

  • WIN32 API โ€” Built-in Windows APIs
    โš ๏ธ Warning: Don't use in games (instant detection)

  • Makcu/Kmbox/KmboxNet โ€” Specialized input devices
    โœ… Recommended for games (low latency)


๐Ÿ“š Links & Resources

๐Ÿ“– Documentation

๐Ÿ› ๏ธ Libraries Used

Library Purpose
ImGui User Interface
OpenCV Computer Vision
TensorRT Neural network inference (NVIDIA)
DirectML GPU computing (universal)
CppWinRT Windows Runtime APIs
GLFW Window management
nlohmann/JSON JSON processing

๐Ÿ’ก Methods & Inspiration


Made with โค๏ธ for the gaming community

Releases

No releases published

Packages

 
 
 

Contributors