Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code can't detect the Start Button #42

Open
DaPigs opened this issue Feb 2, 2020 · 6 comments
Open

Code can't detect the Start Button #42

DaPigs opened this issue Feb 2, 2020 · 6 comments

Comments

@DaPigs
Copy link

DaPigs commented Feb 2, 2020

When I launch the jar file and tried to use the code for Auto Fishing, it keeps on saying "Start button not found. Exit code 1". The first 2 pictures below showed how my screen looks like when I launched the code, the 3rd picture shows how I entered the code. I switches back to either of the first 2 pictures when playing. It's similar to issue #39. But I don't actually see a solution been added to the issue when I viewed it. So here I am...

I'm a Mac user and I plays on kongregate too. I tried with and without the external monitor. The colour on my screen is exactly the same with the button in the picture you put in README, I measured it with colour picker on mac.

Also, I realised that the code you entered into terminal might result in "Unable to access jarfile bh-fisher.jar". What I used is including the exact position of the file, for example, 'java -jar "/Users/BlahBlah/Desktop/bh-fisher.jar" 103'

Finally, thanks so much for your effort to develop this. Although it's not working for me but still, thanks so much.
屏幕快照 2020-02-02 下午7 59 08
屏幕快照 2020-02-02 下午7 59 26
屏幕快照 2020-02-02 下午8 16 47

@DaPigs
Copy link
Author

DaPigs commented Feb 5, 2020

Hello? @tiemonl are you here?

@tiemonl
Copy link
Owner

tiemonl commented Feb 5, 2020

The values I check for are: startButtonGreen = new Color(139, 202, 24);

image

The problem is when one of these is off by even one, the rest of the colors have issues. Sometimes possibly more than off by one, so it's not as easy as checking a small range for each rgb color. in #41 I mentioned making a config file where people can input their own colors, but it honestly kind of slipped my mind. I can start working on that again. However, as nice as that sounds I fear that it will cause more issues with users getting the wrong color and saying it's not working. I guess I'll cross that bridge when I get to it.

@DaPigs
Copy link
Author

DaPigs commented Feb 7, 2020

ah I see. Thanks so much.

@jameswfang
Copy link

@tiemonl Hi, I tried changing both Main.java and Helper.java to match what Digital Color Meter was measuring for my start button:
startButtonGreen = new Color(140, 202, 24);

After recompiling and building the .jar file artifact with this new value, I'm still getting the SEVERE: Start button not found. Exit code 1 error message. What am I doing wrong?

Note, I think I can figure out the other values once I get this one working.

Thanks!

@jameswfang
Copy link

When I log the colors, the vast majority of pixels have color value java.awt.Color[r=30,g=30,b=30]. That's just black. Seems like something is wrong?

@tiemonl
Copy link
Owner

tiemonl commented Dec 31, 2020

Hey, when you're using the digital color meter, make sure you are using "Display in Generic RGB". If that's correct, it looks for the color on the top half of the blue bar. Feel free to add me on discord, and we can debug more easily: purplethong#0069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants