Uma Musume Pretty Derby (Chinese Server) Automatic Training Tool
- Supports automatic completion of training scenarios for all Uma Musume
- Customize training target attributes, racing tactics, additional races, and skill learning for easier three-star factor farming and improving Uma Musume inheritance compatibility \
git clone https://github.com/shiokaze/UmamusumeAutoTrainer
- Install Python 3.10.9, Download Link
- Double-click to run install.ps1. If it opens in Notepad, right-click the file and select "Open with PowerShell". Ensure there is no venv folder in the current directory when starting. (If not in mainland China or don't need domestic mirrors, you can modify line 32 to
pip install --upgrade -r requirements.txt)
Modify the config.yaml file content
bot:
auto:
adb:
device_name: "127.0.0.1:16384" # Change to emulator's ADB port
delay: 0
cpu_alloc: 4 # Number of CPUs to allocate
Common emulator ports:
(Recommended) MuMu12: 127.0.0.1:16384
LDPlayer/BlueStacks: emulator-5554
Find the bluestacks.conf file in BlueStacks data directory
- International version default path: C:\ProgramData\BlueStacks_nxt\bluestacks.conf
- China mainland version default path: C:\ProgramData\BlueStacks_nxt_cn\bluestacks.conf
bot:
auto:
adb:
device_name: "127.0.0.1:16384" # Change to emulator's ADB port
delay: 0
bluestacks_config_path: "C:\\ProgramData\\BlueStacks_nxt\\bluestacks.conf" # Path to bluestacks.conf file
bluestacks_config_keyword: "bst.instance.Rvc64.status.adb_port" # Port key for corresponding emulator, Rvc64 is the emulator name, may differ (e.g. Rvc64_1, Pie64), search for adb_port in bluestacks.conf file to find it
cpu_alloc: 4 # Number of CPUs to allocate
Set emulator resolution to 720 * 1280, DPI 180 (portrait mode) MuMu emulator cannot enable background keep-alive function
Double-click to run run.ps1
Console displays the following content indicating successful launch
UAT running on http://127.0.0.1:8071
Copy to browser to access and configure tasks through WebUI to start the script
- In-game graphics settings must be set to Standard version, not Simple version
- If the Uma Musume training phase includes optional races or races with fan count requirements (such as Oguri Cap's 2 G1 races in the third year and Urara's fan count targets), you need to use the corresponding Uma Musume preset or configure which races to participate in through custom race schedule
- Target attributes should match the proportion of support card types you carry. Don't bring 3 Intelligence + 3 Speed cards while setting high Stamina and Power targets
- Currently does not support selecting training Uma Musume and stallion. At launch, it will use the last trained Uma Musume and stallion saved in the game. If there's no saved record, manually select them first before launching
- Friend cards are not recommended because there's currently no specific strategy for friend card outings, making them less effective than other support card types
- When launching the script, you should be in the main menu or any training interface
- If emulator connection fails or "connection reset" errors occur, close running accelerators (such as UU Accelerator) and use Task Manager to close adb.exe, then restart both the emulator and script program
- If recognition errors cause program crashes, entering unexpected interfaces, or getting stuck on an interface, manually operate to enter the next turn and reset the task in WebUI before restarting. You can save screenshots of stuck interfaces and attach error logs when submitting issues.
Open console first then run PowerShell script, so you can see the error reason when it occurs.
Reference: https://www.jianshu.com/p/4eaad2163567
Check if user folder name contains Chinese characters
Reference: shiokaze#18
shiokaze#24
If error message is: Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.
Reference: shiokaze#9
shiokaze#25
- Scheduled task execution
- AI logic optimization during training
- Event configuration options support
- Auto-complete daily coins/support points/JJC
If you think the current code has shortcomings, feel free to submit PRs
