mufanc / genshin-smartfishingrod Goto Github PK
View Code? Open in Web Editor NEW原神⭐钓鱼辅助工具 | 自动收竿、校准游标
License: GNU General Public License v3.0
原神⭐钓鱼辅助工具 | 自动收竿、校准游标
License: GNU General Public License v3.0
本人游戏设置中无1600x900分辨率,
所以需要对不同分辨率进行适配
另外,是否可以检测上钩实现自动收杆?
我在玩的是b服,请问为什么启动后是官服,有没有解决的方法
右下鱼钩按钮是半透明图标,在某些色彩较深的位置(例如草地,深色木板)时,识别到右下按钮只有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'
可以麻烦把所需的第三方模块写在一个文件里吗,比如大家常用的requirements.txt这样的。谢谢啦
本人电脑显示设置中缩放与布局设置了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或者更低一些
鱼老是逃脱
可不可以通过修改脚本的识别进程改为识别窗口,然后用云游戏钓鱼,这样就不会被本地检测到了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.