Comments (4)
Yea, that's good idea, how about:
transfer this to debug mode.
In the info mode there is going to be only the first 'waiting' message
from new-world-fishing-bot.
I am in Info mode.
For me console output is like this:
from new-world-fishing-bot.
Fixed it. also added some nice logging features.
please someone create a pr? thanks in advance
changes in fishing_actions.py
...
from wrappers.logging_wrapper import info, debug
...
def reel_fish():
reel_timeout = random_timeout(dict['fishing']['timeouts']['reeling'])
#debug("Press mouse key for: {} s".format(reel_timeout))
info("Reeling a fish for: {} s".format(reel_timeout))
press_mouse_key()
sleep(reel_timeout)
release_mouse_key()
...
def pause_o():
pause_timeout = random_timeout(dict['fishing']['timeouts']['pause'])
debug("Pause for: {} s".format(pause_timeout))
info("Orange Pause fishing for: {} s".format(pause_timeout))
sleep(pause_timeout)
def pause_r():
pause_timeout = random_timeout(dict['fishing']['timeouts']['pause'])
debug("Pause for: {} s".format(pause_timeout))
info("Red Pause fishing for: {} s".format(pause_timeout))
sleep(pause_timeout)
...
changes in fishing_loops.py
...
onetimehelper = 0
...
def call_appropriate_fishing_action():
global onetimehelper
...
if result_from_model == '0': # 0 - model does not match any data (not fish captured yet)
if onetimehelper == 0:
info("Waiting for fish...")
onetimehelper = 1
return '0'
...
elif result_from_model == '2': #2 - model matched the green icon (reeling a fish in)
#info("Reeling a fish")
reel_fish()
return '2'
elif result_from_model == '3': #3 - model matched the orange icon (wait x sec)
#info("Orange Pause fishing")
pause_o()
return '3'
elif result_from_model == '4': #4 - model matched the red icon (wait x sec)
#info("Red Pause fishing")
pause_r()
return '4'
elif result_from_model == '5': #5 - model did not match anything (left click, wait x sec)
onetimehelper = 0
info("Cast fishing rod")
cast()
return '5'
changes in image_recognition.py
...
if pixel_match(color, REEL_COLOR):
return '2'
if pixel_match(color, WAIT_COLOR_BROWN):
return '3'
if pixel_match(color, WAIT_COLOR_RED):
return '4'
return '5'
...
from new-world-fishing-bot.
Closing dcf9e76
from new-world-fishing-bot.
Related Issues (20)
- Error when trying to repair HOT 2
- 2.0 doesnโt return to correct fishing position HOT 6
- v2.0.0 issue HOT 1
- Problem at start HOT 2
- Virus HOT 20
- Has the anti AFK of 2.0 been cancelled HOT 2
- Errors with v.2.0.0 HOT 4
- v2.0.0 Problem with false positive fish detection. HOT 8
- Not fixed in resulation HOT 2
- buggy, HOT 5
- DEBUG Logging appears to improve catch rate HOT 4
- (afk) issues in 2.0 / 1.2.1 HOT 7
- 2.0 Camera HOT 10
- Multithread HOT 1
- Unique signature to avoid cheat detection HOT 6
- Login Blocked: Suspicious Software or Corrupted Install Detected HOT 5
- (INFO) HOT 1
- Release plz or use docker for easy build HOT 1
- Seems to not work correctly when determining when there is a fish HOT 2
- Anti-AFK HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from new-world-fishing-bot.