Automate Genshin Impact fishing so the game plays itself while you do something else
Learn how to combine object detection and reinforcement learning for game automation
Use the built-in simulation environment to retrain the DQN without repeatedly playing the game
Requires downloading 4 pretrained weight files separately and launching with administrator privileges.
This project is an AI bot that automatically plays the fishing mini-game in Genshin Impact, a popular action role-playing game. Fishing in the game requires watching a moving indicator and clicking at the right moment to keep it within a target zone, a repetitive task that this bot handles without any player input. The bot is built from two AI models working together. The first is YOLOX, an object detection model that watches the screen and identifies where fish are, what type they are, and where the bobber lands in the water. The second is DQN, a reinforcement learning model that decides when and how hard to click based on the current state of the fishing indicator. Reinforcement learning means the model learned by trial and error, receiving a reward signal when the indicator stayed in the correct zone and adjusting its behavior over time to do better. To avoid the slowness of training directly inside the game, the author first built a simulation environment that roughly mimics the fishing mechanics, trained the DQN model there, and then transferred the trained model into the actual game. This approach is called transfer learning. The object detection component was trained using a semi-supervised method to reduce the number of images that needed manual labels. Running the bot requires downloading four pretrained weight files and launching a Python script with administrator privileges. Once started, the user presses a key and the bot takes over, running entirely in the background while Genshin Impact plays in fullscreen. GPU acceleration is optional but speeds things up. The README is written primarily in Chinese and includes step-by-step setup instructions using Anaconda for the Python environment.
← irisrainbowneko on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.