IrisRainbowNeko / genshin_auto_fish

基于深度强化学习的原神自动钓鱼AI
4.76k stars 724 forks source link

各位,为什么我的不会连续钓啊,求助! #221

Closed zzbjyhy closed 2 years ago

zzbjyhy commented 2 years ago

钓上一条没问题,但是不会连续钓,中间要隔很久

ttxs25830 commented 2 years ago

同问

sandboxdream commented 2 years ago

我分步骤测试发现是一直在和鱼较量的循环中未退出。 我的解决方式是在fishing.py的186行后增加

            if not(env.is_bite()):
                winsound.Beep(1500, 1000)
                break
zzbjyhy commented 2 years ago

请问是在if中嵌套一个if吗? @ @sandboxdream

sandboxdream commented 2 years ago

不是,这两个if应该是并列关系@zzbjyhy

zzbjyhy commented 2 years ago

我分步骤测试发现是一直在和鱼较量的循环中未退出。 我的解决方式是在fishing.py的186行后增加

            if not(env.is_bite()):
                winsound.Beep(1500, 1000)
                break

这个办法亲测有效

ttxs25830 commented 2 years ago

感谢

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年1月18日(星期二) 下午5:16 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [7eu7d7/genshin_auto_fish] 各位,为什么我的不会连续钓啊,求助! (Issue #221)

我分步骤测试发现是一直在和鱼较量的循环中未退出。 我的解决方式是在fishing.py的186行后增加 if not(env.is_bite()): winsound.Beep(1500, 1000) break
这个办法亲测有效

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>