petercunha / Pine

:evergreen_tree: Aimbot powered by real-time object detection with neural networks, GPU accelerated with Nvidia. Optimized for use with CS:GO.
MIT License
441 stars 76 forks source link

In some fps, pine resets the set_pos(x, y) #17

Open geostergiop opened 4 years ago

geostergiop commented 4 years ago

Hi there,

First of all great job. Im studying the project for research analysis also. FYI in some fps (apex, Pubg), pine seems to work on main menu (autoaims main character selected) but aiming seems to reset to the ground in-game, when cursor comes across an enemy.

If I would take a guess, I would say that object detection returns null coordinates (?) and maybe give no input to said function. Didnt check code or input received, just brainstorming.

G

FidgetySo commented 4 years ago

I think i could fix that by changing the main loop and if the Aimbot/object detection detects none it will do nothing or I could set the cursor pos to the current position

FidgetySo commented 4 years ago

And also in some games i think it works better with relative coordinates not absolute

geostergiop commented 4 years ago

I think i could fix that by changing the main loop and if the Aimbot/object detection detects none it will do nothing or I could set the cursor pos to the current position

Probably I should clarify that when the aforementioned issue happens in-game, object detection is not working in general (i.e. object is next to you, aiming doesnt work, when you manually target the object, aiming resets to the ground).

I think I didnt explain it very thoroughly on my first post. I dont think it has to do with relative coords tbh.

FidgetySo commented 4 years ago

What game are you using anyway?

FidgetySo commented 4 years ago

The code works for me I don't why it would not for you. I can't think of a reason that it might not work besides those right now.

geostergiop commented 4 years ago

The code works for me I don't why it would not for you. I can't think of a reason that it might not work besides those right now.

It always happens in Apex legends (100% rate) and sometimes (albeit only 1-2 times) in Pubg. If I can make some space between projects, I might have a look at the code myself. Still, intuitively it's my firm belief that this type of issue also has something to do with object detection output. At least, it is not only an issue with stuff on the main loop or what the program does if null coordinates are sent. If that was the case, Pine would execute while objects are within rendered view of the box but not target correctly (e.g. move and target the ground). As I said this is not the case in-game (at least on Apex).

Anyway, thank you for your time, G

FidgetySo commented 4 years ago

No Problem just post on here if you need any more help with this.

tumkas commented 4 years ago

It happens with me too. If I press escape mouse is going to enemy, but if I not in Escape menu, it's resets mouse (0,0) when I looking to the enemy.

Game is CS:GO

I fixed it by disabling Raw Input in settings