Skip to content
 
 

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Dystopian Robot Girlfriend Chefbot

自动处理MDRG中的烹饪小游戏
Auto-chef script for the cooking minigame in My Dystopian Robot Girlfriend.

特性 \ Features

  • 自动识别萝卜(Z键)和茄子(X键) \ Auto-detect carrot (Z key) and eggplant (X key)
  • 自动识别长条并进行对应操作 \ Auto-detect hold bars and release at the right time
  • 高精确度的模板+颜色识别 \ Template matching + RGB color detection for high accuracy
  • 自适应性的分辨率缩放 \ Adaptive full-resolution scaling based on reference layouts (by DrJason33564)
  • 支持自定义识别阈值 MATCH_TH 以调整执行动作时机 \ Support customizing matching threshold MATCH_TH to adjust timing of action (by DrJason33564)

快速开始 \ Quick Start

Option 1: 使用命令行运行(推荐) \ Run with command line (recommended)

  1. 从 [Releases] 下载 ChefBot-win64.zip \ Download ChefBot-win64.zip from [Releases]
  2. 双击 start.bat, 设置MATCH_TH,启动脚本 \ Double-click start.bat, set MATCH_TH, and run
  3. 进入烹饪小游戏,按下 F10 键开始运行 \ Enter the cooking minigame, press F10 to start
  4. 关卡完成后,按下 F11 结束运行 \ Press F11 to stop after the level ends
  5. Ctrl+c 键以退出脚本 \ Crtl+c to quit

Option 2: 使用exe程序运行(推荐) \ Run with exe application (recommended)

  1. 从 [Releases] 下载 ChefBot-v0.3.0.exeChefBot-cli.zip \ Download ChefBot-win64.zip or ChefBot-cli.zip from [Releases]
  2. 双击启动脚本 \ Double-click and run 2.1 双击start.bat,设置Match_TH,启动脚本 \ Double-click start.bat, set MATCH_TH, and run
  3. 进入烹饪小游戏,按下 F10 键开始运行 \ Enter the cooking minigame, press F10 to start
  4. 关卡完成后,按下 F11 结束运行 \ Press F11 to stop after the level ends
  5. 退出软件 \ exit the application

Option 3: 使用UI运行 \ Run with UI

git clone https://github.com/DrJason33564/My-Dystopian-Robot-Girlfriend-ChefBot.git
cd My-Dystopian-Robot-Girlfriend-ChefBot
pip install -r requirements.txt
python main.py

快捷键 \ Hotkeys

Key Action
F10 Start
F11 Stop

支持的分辨率 \ Supported Resolutions

理论上适用所有16:9和16:10的屏幕,在 1366x768 分辨率下测试成功
Theoretically applicable to all 16:9 and 16:10 screens, and has been tested and working at 1366x768 resolution.

Requirements

  • Python 3.10+
  • Windows (uses keyboard and mss which require Windows for full functionality)
  • 如无法正常使用,以管理员模式运行 \ Run as Administrator if not functioning properly.
  • 游戏应为全屏模式 \ Game should be in borderless windowed mode

License

GPL3.0

致谢 \ Achknowledgement

About

Automatically handle cooking minigame of MDRG

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages