Guard

SPGG Bot Docs

Give me your ID if you want to cross this world!

#Cara Start & Restart BOT Undisputed Boxing

Panduan lengkap untuk menjalankan dan me-restart bot Undisputed Boxing.

#Persiapan

  1. Game Undisputed sudah terbuka dan berada di main menu
  2. Cheat Engine sudah terbuka dengan CT file Undisputed
  3. OBS Studio sudah terbuka dengan scene game capture
  4. File .env sudah dikonfigurasi (UUID, WS_SERVER, API_URL)
  5. Tesseract OCR sudah terinstall (untuk membaca nama fighter)

#Langkah-Langkah Menjalankan Bot

#Step 1: Setup Cheat Engine

  1. Buka Cheat Engine
  2. Load CT file untuk Undisputed
  3. Attach ke process Undisputed.exe
  4. Enable semua script
  5. Pastikan address file C:\UNDISPUTED_MEMORY\addresses.txt sudah terisi

#Step 2: Buka Game Undisputed

  1. Pastikan game Undisputed sudah terbuka
  2. Berada di main menu (bukan di dalam fight)
  3. Resolusi: 1920x1080

#Step 3: Jalankan GUI Launcher

Double-click pada und-gui.py atau jalankan:

python und-gui.py

GUI Undisputed memiliki tampilan dark theme premium yang berbeda dari FC24/FC25.

#Step 4: Konfigurasi

  1. Masukkan UUID yang benar
  2. Klik Update untuk menyimpan
  3. GUI akan selalu di atas window lain (sticky/always on top)

#Step 5: Memory Check & Start

  1. Klik tombol Start
  2. GUI melakukan memory validation otomatis
  3. Progress bar akan menunjukkan progress
  4. Jika berhasil → bot mulai berjalan

#Cara Restart Bot

#Metode 1: GUI Buttons

  1. Klik tombol Stop
  2. Tunggu 5-10 detik sampai semua process mati
  3. Klik tombol Start

#Metode 2: Global Hotkeys

Hotkey Action
Shift + Plus (+) Start bot
Shift + Minus (-) Stop bot

Hotkey bekerja secara global — tidak perlu fokus ke GUI window.

#Metode 3: Remote via WebSocket

Server mengirim event stop-script / start-script ke namespace /undisputed/helper.

#Alur Bot Setelah Start

  1. Bot connect ke WebSocket server
  2. Bot connect ke OBS (setup RTMP stream)
  3. Bot mulai auto-focus loop (fokus game window setiap 1 detik)
  4. Bot mulai screen monitoring (ScreenComparator)
  5. Bot emit waiting event → server tau bot ready
  6. Server kirim new-match / starting-match dengan data fighter
  7. Bot navigasi game → pilih weight class → pilih fighter (OCR)
  8. Bot set difficulty → confirm fight
  9. Memory listener thread mulai → kirim data live
  10. ScreenComparator detect winniewinner → kirim result
  11. Bot navigate balik ke main menu → ready for next match

#Template Reload

Jika template screenshot berubah, tekan F5 untuk reload tanpa restart bot.

#Troubleshooting

#❌ Memory Check Failed

Solusi:

  1. Pastikan Cheat Engine terbuka dengan CT file yang benar
  2. Pastikan semua script enabled
  3. Cek file C:\UNDISPUTED_MEMORY\addresses.txt tidak kosong
  4. Restart Cheat Engine jika perlu

#❌ Fighter Selection Stuck

Penyebab: OCR tidak bisa membaca nama fighter atau fuzzy match score terlalu rendah.

Solusi:

  1. Stop bot
  2. Kembali ke main menu secara manual
  3. Pastikan Tesseract OCR terinstall dan path benar di .env
  4. Cek TESSERACT_PATH di .env

#❌ Game Window Not Focused

Penyebab: Auto-focus thread gagal connect ke Undisputed.exe.

Solusi:

  1. Pastikan game terbuka
  2. Pastikan window title tepat: Undisputed
  3. Jangan minimize game window

#❌ Winner Not Detected

Penyebab: Pixel color di koordinat deteksi tidak cocok.

Solusi:

  1. Pastikan resolusi 1920x1080
  2. Pastikan tidak ada overlay di atas game
  3. Tekan F5 untuk reload templates

#❌ Stream Gagal Start

Penyebab: OBS WebSocket error atau RTMP server tidak tersedia.

Solusi:

  1. Cek OBS WebSocket settings (port 4455, password Jakarta100)
  2. Cek koneksi internet
  3. Restart OBS jika perlu