MCPcopy Index your code
hub / github.com/The-WhiteRabbit/dnfm_server

github.com/The-WhiteRabbit/dnfm_server @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
71 symbols 210 edges 6 files 8 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

DNFM Server

功能说明

  1. 技能坐标配置
  2. skill.json 文件中,配置技能坐标。
  3. 使用手机截屏功能截图,使用画图工具打开截图,将摇杆,攻击,技能等按键的坐标配置到文件中。
  4. 技能名称不能修改,只需修改坐标。

  5. 技能映射

  6. hero 文件夹下的 naima.json 文件中,将技能名称与 skill.json 文件夹内的技能对应。

  7. 控制算法

  8. run 按钮:启动控制算法。
  9. stop 按钮:停止控制算法。
  10. reset 按钮:重启控制算法的线程。

  11. FPS 调整

  12. main.py 文件的第21行找到 fpsmax 参数,调整其值到 5 到 30 之间。
  13. 较低的 FPS 值会提高安全性,较高的 FPS 值会提高稳定性。

  14. 英雄位置检测

  15. 如果英雄位置检测不准确,可以使用黑钻位置计算英雄位置。

  16. 触控功能

  17. 仅支持点击屏幕,请先暂停算法

  18. 修改代码

  19. 仅需要修改 game_action.pynaima.py 其他尽量不要改

  20. 技能加点

  21. 代码中释放的技能都建议加满

  22. 过图检测

  23. 在不同手机上适配有问题
  24. 需要自行调整参数,保证一次只过一张图

项目启动步骤

  1. 确保正确配置技能对应的坐标和技能映射。
  2. 调整 FPS 设置以适应你的需求。
  3. 使用控制按钮运行或停止算法,必要时重启线程。

贡献

欢迎贡献新功能和优化代码,提交 PR 和 Issues 一起改进项目!

Core symbols most depended-on inside this repo

move
called by 24
game_control.py
skill
called by 20
hero/naima.py
touch_up
called by 12
scrcpy_adb.py
calculate_center
called by 11
game_action.py
attack
called by 9
game_control.py
touch_down
called by 8
scrcpy_adb.py
_ramdon_xy
called by 8
game_control.py
calculate_center
called by 8
hero/naima.py

Shape

Function 35
Method 30
Class 6

Languages

Python100%

Modules by API surface

game_action.py19 symbols
hero/naima.py14 symbols
game_control.py13 symbols
utils/yolov5_onnx.py11 symbols
scrcpy_adb.py8 symbols
main.py6 symbols

For agents

$ claude mcp add dnfm_server \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact