forked from myHuTao-qwq/HutaoFisher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhelp.txt
141 lines (123 loc) · 8.61 KB
/
help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
# HuTao Fisher
https://github.com/myHuTao-qwq/HutaoFisher
胡桃老婆过生日说她钓鱼不得法, 还得自己跳下水抓, 我听了心想怎么能亏待老婆呢? 于是就找到闻名提瓦特的枫丹科学院, 向他们讲述了这一困难, 希望能够出手相助. 枫丹科学院那些姿势水平高到不知哪里去的院士们听了我的话, 非常的资瓷. 他们表示提瓦特人苦钓鱼久矣! 从枫丹廷的德拉萝诗小姐到须弥城的凯万先生, 都深受钓不上鱼的难题困扰. 若是凭此契机好好钻研, 结合枫丹发条机关术, 须弥生论派祖传生物统计学, 璃月炼丹仙法与来自世界外神秘的RTX3090之力, 必可炼成神机, 造福全提瓦特. 最终大家一起做出了这个全自动的HuTao Fisher, 老婆想钓鱼直接站到水边拿起鱼竿打开钓鱼辅助工具. 鱼就自己上钩啦!(x)
----------------------------------------------------------------------------------
使用说明:
本程序依赖VC++ Runtime,未安装将导致程序闪退,请从此处下载:https://aka.ms/vs/17/release/vc_redist.x64.exe
先运行HutaoFisher.exe再运行游戏。
可在config.json中设置是否使用GPU推理(useGPU),是否记录全部图像(logAllImgs)(错误时的图像始终会被输出,但其他图像记录可被关闭),是否记录抛竿数据以帮助优化抛竿判定(logData)(此项若为是,则抛竿失败后响提示音时需Alt+Tab切出原神输入错误原因), 以及是否钓某一大类的鱼(typeToFish)
,并且游戏窗口长宽比应为16:9(重要!)
在启动钓鱼器之前应手动走到钓鱼点,选择鱼竿并在游戏中进入钓鱼。
按Alt+V进入钓鱼,Alt+X退出钓鱼。
提示音依照音阶顺序依次为:
1. 扫描钓鱼点寻找鱼
2. 选择待钓的鱼
3. 选择鱼饵
4. 准备抛竿
5. 检测咬钩
6. 控制力度条
7. 钓鱼成功
这也是单次钓鱼时程序的运行顺序。
钓鱼器出现严重错误时会发出低音蜂鸣并尝试从头开始钓鱼,若钓鱼过程中程序运行连续出现3次严重错误则钓鱼器会自动终止,需要手动将游戏中的钓鱼状态恢复到初始状态再重新按Alt+V以开始钓鱼。
可能有用的图像与记录存放在log文件夹中。
config.json为键值对组成的json文件. 如果你知道json的格式那应该不难看懂文件的内容. 不过不知道也不要紧, 只要严格按照以下规则(当然这不是完整的json规则)就行:
1. 用记事本打开文件
2. 只改动冒号右侧的true或false, true表示是, false表示否
具体各项的含义如下(json规范中不允许注释, 此处仅表意):
{
"useGPU": true, //是否使用GPU推理, 不知道啥意思就true
"logAllImgs": true, //是否记录全部图像(错误时的图像始终会被输出,此处指其他图像记录)
"logData": true, //是否记录抛竿数据以帮助优化抛竿判定(此项若为是,则抛竿失败后需Alt+Tab切出原神输入错误原因)
"typeToFish": { //是否钓某一类鱼
"medaka": true, //花鳉
"large_medaka": true, //大号花鳉
"stickleback": true, //棘鱼
"koi": true, //假龙
"butterflyfish": true, //蝶鱼
"pufferfish": true, //炮鲀
"ray": true, //鳐鱼
"angler": true, //角鲀
"axe_marlin": true, //斧枪鱼
"heartfeather_bass": true, //心羽鲈
"maintenance_mek": true //维护机关
}
"MaxFailNum": 3, //使钓鱼器自动终止所需连续严重错误的次数
"MaxRodTries": 25, //抛竿时最大移动钓竿位置次数
"MaxThrowFailNum": 5, //抛竿时最大错误容许次数(如找不到鱼等)
"MaxThrowWaiting": 3, //抛竿时等待白圈出现的最长时间(单位:秒)
"MaxBiteWaiting": { //抛竿后等待某种鱼上钩的最长时间(单位:秒)
"medaka": 8,
"large_medaka": 8.5,
"stickleback": 9.5,
"koi": 10.5,
"butterflyfish": 8.5,
"pufferfish": 11.5,
"ray": 11.5,
"angler": 9.5,
"axe_marlin": 8.5,
"heartfeather_bass": 10,
"maintenance_mek": 10
},
"MaxControlWaiting": 3 //鱼上钩后等待滑动条出现的最长时间(单位:秒)
}
如果你不幸把config.json改爆了以至于不知道怎么读取, 那么还可以把这一行以前"具体各项含义"一行以后的部分复制粘贴到config.json里面, 再去掉"//"与后面的字, 就可以当作一个config.json的模板了(不会真有人这样吧)
----------------------------------------------------------------------------------
Instruction:
This program requires VC++ Runtime: https://aka.ms/vs/17/release/vc_redist.x64.exe
Run HutaoFisher.exe first and then run the game.
You can set in config.json whether to useGPU inference (useGPU), whether to log all images (logAllImgs) (images in case of error will always be output, but other image logging can be turned off), whether to log casting data to help optimize casting decision (logData) (If yes, when the prompt tone is played after the rod casting fails, you need to press Alt+Tab to enter the failure reason), and whether to catch a certain type of fish (typeToFish)
The game window aspect ratio should be 16:9 (important!)
Before starting the angler you should manually walk to the fishing spot, select the fishing rod and enter fishing in the game.
Press Alt+V to enter fishing, Alt+X to exit fishing.
The cues are in order according to the scale.
1. Scan the fishing spot for fish
2. Select the fish to be caught
3. select the bait
4. prepare to cast the rod
5. detecting the bite
6. Control the strength bar
7. Fishing success
This is also the order in which the program will run during a single fishing trip.
If a serious error occurs in the angler, it will sound a bass beep and try to start fishing from the beginning. If the program runs with 3 serious errors in a row during fishing, the angler will automatically terminate and you need to restore the fishing status in the game to initial state then press Alt+V again to restart fishing.
Possible useful images and logs are stored in the log folder.
config.json is a json file consisting of key-value pairs. If you know the json format it should not be difficult to read the contents of the file. But it does not matter if you do not know, as long as you follow the following rules strictly (of course, this is not the full json rules).
1. open the file with windows notepad
2. change only true or false to the right of the colon, true means yes, false means no
The meaning of each item is as follows (annotations are not allowed in the json specification, so this is just an expression):
{
"useGPU": true, //Whether to use GPU inference, true if you don't know what it means
"logAllImgs": true, // whether to log all images (images in case of errors will always be output, in this case other images are logged)
"logData": true, //whether to record casting data to help optimize casting decision (if this is yes, Alt+Tab to cut out the original god after casting failure to enter the reason for the error)
"typeToFish": { //whether to catch a certain type of fish
"medaka": true,
"large_medaka": true,
"stickleback": true,
"koi": true,
"butterflyfish": true,
"pufferfish": true,
"ray": true,
"angler": true,
"axe_marlin": true,
"heartfeather_bass": true,
"maintenance_mek": true
}
"MaxFailNum": 3, //The number of consecutive serious errors required for the fisher to automatically terminate
"MaxRodTries": 25, //Maximum number of rod position shifts during casting
"MaxThrowFailNum": 5, //Maximum number of errors allowed in casting (e.g. no fish found, etc.)
"MaxThrowWaiting": 3, //Maximum waiting time for the circle to appear during casting (unit: second)
"MaxBiteWaiting": { //Maximum waiting time to wait for a bite for a certain type of fish after casting (unit: second)
"medaka": 8,
"large_medaka": 8.5,
"stickleback": 9.5,
"koi": 10.5,
"butterflyfish": 8.5,
"pufferfish": 11.5,
"ray": 11.5,
"angler": 9.5,
"axe_marlin": 8.5,
"heartfeather_bass": 10,
"maintenance_mek": 10
},
"MaxControlWaiting": 3 //Maximum waiting time for the slider to appear after taking the bait (unit: second)
}
If you have the misfortune to change the config.json so much that you don't know how to read it, you can still copy and paste the line after the "specific meaning" line into the config.json, then remove the "//" and the following words, and it will be a template for the config.json (no one really does that, do they?)