Code Monkey home page Code Monkey logo

genshin-smartfishingrod's Issues

分辨率不同无法正常运行

本人游戏设置中无1600x900分辨率,
所以需要对不同分辨率进行适配

另外,是否可以检测上钩实现自动收杆?

启动问题

我在玩的是b服,请问为什么启动后是官服,有没有解决的方法

背景颜色复杂时产生的bug

右下鱼钩按钮是半透明图标,在某些色彩较深的位置(例如草地,深色木板)时,识别到右下按钮只有30%左右匹配,会导致脚本无法触发点击。

这个软件只支持官服启动么?

是这样子的,我的账号是B服的,但是脚本启动之后都是官服的登录页面,启动配置里面的路径就是B服的路径,手动打开也是B服的。我用脚本启动之后查看原神的Config.ini文件,里面还是:
channel=14
cps=bilibili
请问这个问题怎么解决呢?

运行直接报错

源码运行还是exe运行都报错
Traceback (most recent call last):
File "main.py", line 53, in
File "main.py", line 21, in init
AssertionError
[53132] Failed to execute script 'main' due to unhandled exception!
Exception ignored in: <function Window.del at 0x0000014AF6ABAC10>
Traceback (most recent call last):
File "main.py", line 48, in del
AttributeError: 'Window' object has no attribute 'hMemDc'

设置缩放后标记位置出现偏差

本人电脑显示设置中缩放与布局设置了150%的缩放
代码需要做出以下更改:
1.overlay.py中_update()
width, height = right - left, bottom - top
xxx = 1.5
win32gui.MoveWindow(self.hwnd, int(left/xxx), int(top/xxx), width, height, False)

2.detector.py中mark()
xxx = 1.5
x1, y1, x2, y2 = int(x1/xxx), int(y1/xxx), int(x2/xxx), int(y2/xxx)
cv2.rectangle(image, (x1, y1), (x2, y2), color, 2)

什么都没改,忽然失效???

修改了模板匹配方式后可以正常使用
detector.py

result = cv2.matchTemplate(target, template, cv2.TM_CCOEFF_NORMED)
min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(result)
# similarity = 1 - min_val  # 计算相似度
similarity = max_val
min_loc = max_loc

detects.yml

templates:
  - name: button
    rect: { left: 0.83, top: 0.88, right: 0.13, bottom: 0.03 }  # 识别区域
    threshold: 0.5
    template: button.png

  - name: hook
    rect: { left: 0.49, top: 0.1, right: 0.49, bottom: 0.76 }
    threshold: 0.5
    template: hook.png

通过”鱼儿上钩啦“提示收杆

钓到鱼时屏幕中上方会出现上钩提示,为不透明纯白色,可以通过提取色值与图片(文字)匹配判断收杆。
从收杆提示出现到钓鱼失败时间较长,可约0.5~1秒判断一次,节约性能。
收杆后可提前点击鼠标,将蓄力位置调整到中间。

卡条建议

卡在中间的话非常容易用力过猛

钓稀有鱼时它特别喜欢左右晃 (右晃还好,加力很快,但是左晃只能干等着让力度条下降)

建议卡条在35~40或者更低一些

关于脚本检测

可不可以通过修改脚本的识别进程改为识别窗口,然后用云游戏钓鱼,这样就不会被本地检测到了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.