Comments (20)
yeah you should update a lot has changed and I noticed that the bat files were bugged so Its fixed in the latest update
from automated-holocure-fishing.
I have three monitors and it works even without the multiple monitors option enabled. Make sure you installed everything properly.
from automated-holocure-fishing.
can you try this #13 (comment)
from automated-holocure-fishing.
can you try this #13 (comment)
I installed it just like the instructions indicated in the README file.
- opening the prepare.bat
- launch_python.bat
- holocure_fishing.py
But upon reaching the 3rd step, the terminal for "holocure_fishing.py" suddenly closes
Upon manually drag and dropping the holocure_fishing.py in my terminal to see the error it gives out, it sends this out
I then started from scratch and manually installed everything via the ff.
- Downloading the repository again => extract it somewhere
- Open the terminal in the extracted directory and run "pip install -r requirements.txt"
After this the script worked, but only if my game was on my main monitor, when I put it on a different screen, the script was not able to see my game window
also @Thehail you said "multiple monitors option" Where can I possibly see the option and how do I enable it if it's available?
Edit: This occurred to me on commit d2f8fa7
from automated-holocure-fishing.
sad news, upon downloading the new update, it became worse and now everything doesn't work anymore XD
from automated-holocure-fishing.
how... Can you explain it more in detail? What do you mean by doesn't work anymore? Can you give me the error message if there is one?
from automated-holocure-fishing.
how... Can you explain it more in detail? What do you mean by doesn't work anymore? Can you give me the error message if there is one?
Unfortunately, it did not give me any error codes...
After running the "holocure_fishing.py" this gets displayed
After opening the game and trying to fish, nothing happens
from automated-holocure-fishing.
On line 15, there :
DEBUG = False
change it to
DEBUG = True
It should open a window that shows the fishing area and show the scanning fps. If you see those, the programs should be working properly
from automated-holocure-fishing.
I went back to my previous version commit d2f8fa7 and it works fine but of the multimonitor bug is still present...
Also idk if this will help but this is my PC specs where I'm running it on
CPU: Ryzen 5 5600G
GPU: RX 5700XT
RAM: 32GB
OS: Windows 11 Pro
from automated-holocure-fishing.
I went back to my previous version commit d2f8fa7 and it works
That is really weird, I didn't even change the code in the latest commit, only the batch files...
Ok, I'll ask some questions for now
- What is your python version
- What resolution are you playing holocure at? 720 or 1080
- Did you open it throught launch_python.bat or holocure_fishing.py
Turn on the debug flag at line 15 and send me a screenshot like this
from automated-holocure-fishing.
- Python 3.10.6
- 720p Windowed
- I launched it manually via "py ./holocure_fishing.py" on the installed directory
Heres the screenshot you asked:
Also, upon running it with debug on, i got an error named "ZeroDivisionError: Float Division by Zero" after hanging or just hovering my mouse over the holocure window
from automated-holocure-fishing.
How the heck did elapsed even go to 0. That shouldn't be even possible. It calculates the time from start to the end of the loop. It's impossible for it to be 0 with all that computation in a single loop.
The scanning region way off too. I think you can solve it by adjusting the left and top values of BASE_ROI
in line 31. But it should have properly got the area. Since the dpi is already disabled.
Can I ask the resolution and dpi of your monitors?
I'm going to think about this tomorrow.
from automated-holocure-fishing.
Bahahahha, same, I tried to understand it as well but I'm as confused as you are XD
Summary: My Monitor 1 and 2 is set at 1080p
Long explanation, My monitor's native video support is up to 720p, but my monitor is capable of being "soft-forced" to be set at 1080p using AMD Radeon
So I removed line 111-114, which removed the ZeroDivisionError but after that, it's still not working as if the debug was set to false
And the area being scanned is incorrect as well(tried on 720p and 1080p)
from automated-holocure-fishing.
I have a dual monitor setup and this doesn't work when I put my game on my 2nd monitor
Update: The commit that was previously made on e0b8289 and up to commit e97c6ee fixed the "dual monitor" bug by adjusting the settings you made:
It can now detect my game window on my 2nd monitor, BUT the problem is, the scanner is not able to pinpoint which button to press, so far it it can only press the "ok" button as well as continue the cycle <<== this one is only broken on the second monitor option
I haven't tested the other commits yet as I'm now getting scolded for using my PC at this hour XD
from automated-holocure-fishing.
I did some test of my own and noticed that if your monitor resolution is 1280x720 or lower. The script captures the wrong region. But if it is higher than 720p then it works in any resolution or scale. I think this is the problem.
As for the elapsed
part, can you put a time.sleep(0.01)
above the elapsed = time.time() - last_time
and see if it is still giving a ZeroDivisionError
. If it still gives a ZeroDivisionError
after that, then I don't know anymore...
from automated-holocure-fishing.
It still doesn't work, so far after the overhaul for the script was made, it became unusable for me TwT
Though at least the previous commits still works so I can just use those for now and only use it while the game is on the main screen
Also I noticed on the old commit, it does work and tries to scan my 2nd monitor, but upon finding the hitbox, it suddenly forces the scanner to go back to the 1st monitor so it breaks the program
from automated-holocure-fishing.
Good news @nopeAnon I managed to temporarily fix the dual monitor bug for commit e97c6ee
I changed these lines on the "holocure_fishing.py"
So for now I'm gonna use the old version while the new version is still not usable for me
from automated-holocure-fishing.
Whoops accidentally pressed closed
from automated-holocure-fishing.
Hi sorry my refactor/rewrite of this program was coded and tested on Windows 10 so I don't know how it would behave in Win11 - see issue #34 for similar discussion
from automated-holocure-fishing.
Also, upon running it with debug on, i got an error named "ZeroDivisionError: Float Division by Zero"
I did some research and discovered the precision of time.time()
on Windows can be as bad as 16ms, and with the script so running so quickly it's possible for consecutive calls to return the same value - we should probably replace it with time.perfcounter()
from automated-holocure-fishing.
Related Issues (20)
- Using MSS for better performance. HOT 2
- Preload the needle images to dict and access them using needle and prepared as key
- Window handle invalid HOT 1
- more improvement if we can assure opencv is present HOT 5
- there is an issue with the code. HOT 2
- not an issue HOT 2
- i need help HOT 2
- Occasionally it stops HOT 2
- Screen Capture does not update HOT 5
- OpenCV error HOT 3
- blackscreen debug, no matches- Win11 32:9 5120x1440p HOT 3
- pressing enter only HOT 2
- False detect HOT 2
- bash: pip: command not found Issue HOT 1
- Stuck HOT 2
- cv2 and numpy HOT 1
- Color problems maybe ? HOT 8
- import Platform error HOT 2
- Error - could not find a version that satisfies the requirements. HOT 1
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 automated-holocure-fishing.