cmjay Posted October 11, 2023 Posted October 11, 2023 Hi Guys, I am trying to do a project for automating the combat actions in sniper elite 5 and testing out some scenes , so I am doing the following things: a)Calculating the target position's(x,y) co-ordinate b)subtracting the mid point (say for 4k resolution it is (1920,1080)) --> (x-1920,y-1080) this is for getting how much relative to centre (crosshair) i need to move c)passing the result to my python script(code) This should make the crosshair land on target and ready to shoot, for example: this is the scene, I want the crosshair to face the highlighted target which is at(2110,1084), so I will be sending the values(2110-1920,1084-1080) into my python script but the problem is while I am sending the values[190,4] (which translates to move 190 right and 4 up ) it is moving more than what is needed and I am landing at this scene which is far more away than mytarget, now this clearly says that i need to pass the value less than 190, after going through this forum I came to know that this has something to do with many things which i clearly ignored (I think something to do with distance maybe 190 is not correct measure i should pass into my code or may be some other things), can you please help me in solving this issue. (Iam playing the game with all default settings) (p.s for sniper elite 5 where can i get default multiplier values or set these values in game cause i think this problem can be solved with scaling the inputs according to multiplier values and their higher thresholds)
Wizard DPI Wizard Posted October 11, 2023 Wizard Posted October 11, 2023 The sensitivity in the game does not move 1 pixel for every count (unless configured to do so). You can try to divide your target distance by the pixel ratio in the output here, this calculation is assuming as you say everything is set to their default values, even FOV: https://www.mouse-sensitivity.com/?share=a406004d416da2cd49087064e2fc3203 So do 190/5.61~34 and 4/5.61~1, so move [34,1] instead. Or you can set the X and Y sensitivity to 16, which with your settings will approximately equal 1 pixel per count.
cmjay Posted October 11, 2023 Author Posted October 11, 2023 Thank you for the reply and i passed those values (34,1) and it got into the vicinity of target but not exactly where i want it to be ,but when I pass (30,1) it is pointing good enough to kill the target.so is there any explanation why it behaves like this? (a small question:what is multiplier and how can we see/set its values in games)
Wizard DPI Wizard Posted October 11, 2023 Wizard Posted October 11, 2023 2 minutes ago, cmjay said: Thank you for the reply and i passed those values (34,1) and it got into the vicinity of target but not exactly where i want it to be ,but when I pass (30,1) it is pointing good enough to kill the target.so is there any explanation why it behaves like this? What is the FOV set to in the advanced game options? 3 minutes ago, cmjay said: (a small question:what is multiplier and how can we see/set its values in games) What do you mean by multiplier? The sensitivity setting?
cmjay Posted October 12, 2023 Author Posted October 12, 2023 21 hours ago, DPI Wizard said: What is the FOV set to in the advanced game options? It is set to default 79.32,did not change any of the settings 21 hours ago, DPI Wizard said: The sensitivity in the game does not move 1 pixel for every count (unless configured to do so). You can try to divide your target distance by the pixel ratio in the output here, this calculation is assuming as you say everything is set to their default values, even FOV: https://www.mouse-sensitivity.com/?share=a406004d416da2cd49087064e2fc3203 So do 190/5.61~34 and 4/5.61~1, so move [34,1] instead. Or you can set the X and Y sensitivity to 16, which with your settings will approximately equal 1 pixel per count. the first one(190/5.61) did not work for all the cases so i thought of changing the x,y sensitivity but it is not accepting 16,only 5 multiples, so i set it to 15 and rest all are default and not touched, now I am getting good result when passing the relative values(190,4) but the problem remains same for far away targets and it feels like some math is missing to point me to the correct location,...is there any other approach available by the way is default mouse dpi 1000? where to check in the game?or is it same as mouse pointer speed setting in system?
Wizard DPI Wizard Posted October 12, 2023 Wizard Posted October 12, 2023 1 hour ago, cmjay said: now I am getting good result when passing the relative values(190,4) but the problem remains same for far away targets and it feels like some math is missing to point me to the correct location,...is there any other approach available You are measuring pixels on a 2D plane when the camera is rotating in 3D space, so you need to apply some math to figure out the exact values. The easiest and most precise way would actually be to just use a scripting tool like the one available in Logitech G, then manually move the crosshair where you want it and count how many counts it takes.
cmjay Posted October 12, 2023 Author Posted October 12, 2023 Hey thankyou for the reply...can you please point out which scripting tool you are talking about...iam just hearing about this and there isn't exactly a guidelines to see for what we want in logitechg....it would be so helpful if you can guide me out. Thankyou
Wizard DPI Wizard Posted October 12, 2023 Wizard Posted October 12, 2023 14 minutes ago, cmjay said: Hey thankyou for the reply...can you please point out which scripting tool you are talking about...iam just hearing about this and there isn't exactly a guidelines to see for what we want in logitechg....it would be so helpful if you can guide me out. Thankyou There's plenty of guides if you Google it. Here's the doc, and here's an example. As the name implies, this scripting tool requires a Logitech G mouse or keyboard with G keys to function though. There's might be other equivalent tools for other brands.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now