Skip to content

Shiny hunt Pokemon by sending keystrokes to mGBA using .NET Core

Notifications You must be signed in to change notification settings

taylus/shiny-hunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated shiny hunting

Given running mGBA processes with save files standing before your starter of choice, this program repatedly sends keystrokes to collect the starter, check its stats, and reset until a shiny is found.

Detection technique

The shiny ⭐ icon on the Pokemon's status page is detected by looking for its color of rgb(255, 214, 82) at expected pixel coordinates in a screenshot. When found, the program exits, leaving the emulator running and awaiting further input.

Usage

> start mGBA.exe "path_to_pokemon_fire_red.gba"
> start mGBA.exe "path_to_pokemon_fire_red.gba"
> dotnet run --project .\ShinyHunter\ShinyHunter.csproj

screenshot

Why not just use PKHeX?

Because this is more fun.

Potential enhancements

  • Support unbounded fast-forward speed
  • Make process less timing-based/reliant on repeating key presses
  • Other shiny hunt scenarios (breeding, random encounters)

About

Shiny hunt Pokemon by sending keystrokes to mGBA using .NET Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages