SirOatLand / HeartwoodOnline-Bot

4 stars 0 forks source link

How does it works? #1

Closed vittbol closed 10 months ago

vittbol commented 10 months ago

Runned "bot", all seen eye pops but in a weird graphic and nothing happens. In console i dont get any error. image

SirOatLand commented 10 months ago

Try my new code and instruction and see how it goes. Do keep in mind that this is not a full-fledged automation bot as, as I have mentioned, it is a mere proof of concept. Though, I recommend you to rather use the mob detection bot instead of the ore detection as it is more reliable due to no inclusion of player movements, lessening the chance of player being stuck while trying to find ores.

vittbol commented 10 months ago

Try my new code and instruction and see how it goes. Do keep in mind that this is not a full-fledged automation bot as, as I have mentioned, it is a mere proof of concept. Though, I recommend you to rather use the mob detection bot instead of the ore detection as it is more reliable due to no inclusion of player movements, lessening the chance of player being stuck while trying to find ores.

Now the All Seeing Eye is ok, but it still doesn't do anything. Inside the All Seeing Eye the FPS is really low, I can see the players moving slow even if in the terminal it shows an OK fps. Am I missing something?

chrome_w8nZBUc1oh

SirOatLand commented 10 months ago

While the program is running the focused window should be your main game and as the detection occurs on the surface level try to keep away anything that would block the main game window.

SirOatLand commented 10 months ago

For the fps drops, unfortunately it is to be expected to drop by at least 60-70% when the program detects something. I have tried optimizing the program as much as I could.

vittbol commented 10 months ago

While the program is running the focused window should be your main game and as the detection occurs on the surface level try to keep away anything that would block the main game window.

I tried that, but it still doesn't do anything. :( The code is running ok, no errors, showing fps, but the char don't move or do anything.

Maybe missing a settings ingame? The res is already ok

SirOatLand commented 10 months ago

What are you trying to detect? and what are the value of your needle and hsv_filter.

vittbol commented 10 months ago

What are you trying to detect? and what are the value of your needle and hsv_filter.

Coal

vittbol commented 10 months ago

Also, downloaded again the code, trying to figure out if I messed with the older (new) one that I downloaded. image image

Now the all seeing is weird again, and still not working. I know that the main game needs to be on top, it was just to take a ss.

SirOatLand commented 10 months ago

What are you trying to detect? and what are the value of your needle and hsv_filter.

Coal

Check your needle and hsvfilter value inside main.py and make sure they are configured for coal detection. The default value from the project is for hostile mob detection so I would like you to walk to the deer area for testing.

SirOatLand commented 10 months ago

Also, downloaded again the code, trying to figure out if I messed with the older (new) one that I downloaded.

image

image

Now the all seeing is weird again, and still not working.

I know that the main game needs to be on top, it was just to take a ss.

The weird color is a good sign as it is from the filter which in this case the orange black theme correctly match the coal detection.

vittbol commented 10 months ago

Also, downloaded again the code, trying to figure out if I messed with the older (new) one that I downloaded. image image Now the all seeing is weird again, and still not working. I know that the main game needs to be on top, it was just to take a ss.

The weird color is a good sign as it is from the filter which in this case the orange black theme correctly match the coal detection.

So it should work, right? Do you want me to change back to the default value and try it with deer?

SirOatLand commented 10 months ago

Ok, I see where the problem is now, I forgot to mention that the detection of ore and mob uses different classes so the "bot" value should change accordingly where "OreBot()" for ore and "MobBot()" for mob. Also I would like you to use my new code as i have made minor adjustments, sorry for the inconvenience. I also updated the readme once more for an additional instruction.

vittbol commented 10 months ago

Ok, I see where the problem is now, I forgot to mention that the detection of ore and mob uses different classes so the "bot" value should change accordingly where "OreBot()" for ore and "MobBot()" for mob. Also I would like you to use my new code as i have made minor adjustments, sorry for the inconvenience. I also updated the readme once more for an additional instruction.

It still... doing anything. :-( Everything is working fine, but it does nothing. Downloaded the new code, it was already set to coal ore, ran the code but nothing

image

vittbol commented 10 months ago

Do you have discord? It's more easy if you still want to see what's going on

SirOatLand commented 10 months ago

Do you have discord? It's more easy if you still want to see what's going on

sure drop me your name and tag and ill see what I can do.

vittbol commented 10 months ago

Do you have discord? It's more easy if you still want to see what's going on

sure drop me your name and tag and ill see what I can do.

kkites

SirOatLand commented 10 months ago

Resolved - Resolution didn't match the instruction, the program works as intended now.