ValveSoftware / Dota2-Gameplay

Public Bug Tracker for Dota2
1.45k stars 77 forks source link

Camera bug: Camera keeps moving uncontrollably #18942

Open Zeratuli0 opened 1 month ago

Zeratuli0 commented 1 month ago

Description

I think this problem is happening to me recently (about 5-6 months) It happens to me randomly in the middle of the game and it doesn't go away until I restart the game (completely close the game and run it again ) 1-i use wasd keys for moving screen 2-my keyboard works fine

Example Match ID (and possibly Timestamp)

ex. 7765869179 - 34:10

Screenshots

No response

NichCodes commented 1 month ago

I can confirm this happens as someone who also primarily uses the keyboard to move the camera (though with ESDF instead of WASD). I have no idea what triggers it, but it's been happening for at least the past few months. My keyboard never does this in any other application.

Usually what happens is the camera suddenly gets stuck going in one direction as if you were holding down those keys, and then you have to hold the movement keys in the opposite direction just to keep it steady while you use the mouse to awkwardly edge pan around. Happens maybe in once every 10 to 20 games, and it does not resolve until the client is completely restarted since simply disconnecting/reconnecting doesn't fix it.

Example:

Match 7755115433 @ 44:40, Death Prophet's perspective, lasting ~15 seconds until DP disconnects. It is working properly again when DP reconnects.

Although the replay doesn't show exactly what happened, the camera got stuck flying to the top-right toward Dire's fountain. Instead the replay camera goes the opposite direction, presumably because of all the panicked counteracting key presses attempting to stabilize the camera.

commentator24 commented 1 month ago

is it something like this? #1853 i dont use wsad key though

DiskordK commented 1 month ago

Same bug, i control camera on wasd Recently it helps alt+tab and after a few times press alt and ctrl, but the camera starts to follow character and if you move it to wasd error returns.

Zeratuli0 commented 1 month ago

this is so annoying happened two time today :(

Zeratuli0 commented 1 month ago

I can confirm this happens as someone who also primarily uses the keyboard to move the camera (though with ESDF instead of WASD). I have no idea what triggers it, but it's been happening for at least the past few months. My keyboard never does this in any other application.

Usually what happens is the camera suddenly gets stuck going in one direction as if you were holding down those keys, and then you have to hold the movement keys in the opposite direction just to keep it steady while you use the mouse to awkwardly edge pan around. Happens maybe in once every 10 to 20 games, and it does not resolve until the client is completely restarted since simply disconnecting/reconnecting doesn't fix it.

Example:

Match 7755115433 @ 44:40, Death Prophet's perspective, lasting ~15 seconds until DP disconnects. It is working properly again when DP reconnects.

Although the replay doesn't show exactly what happened, the camera got stuck flying to the top-right toward Dire's fountain. Instead the replay camera goes the opposite direction, presumably because of all the panicked counteracting key presses attempting to stabilize the camera.

I guess this problem only happen with people that use keyboard keys for camera movement right? so in terms of statistical , there are few people who use keyboard and most dota 2 palyer work with mouse !! no chance this to get fix :(

Boshy28 commented 4 weeks ago

I can confirm that this is happening to me too (I'm using WASD camera movement), and I have to restart the game in the middle of a match. This issue is very annoying, and Valve needs to do something because this bug was introduced in an update.

davesalomon commented 3 weeks ago

Repro steps:

Go in to Demo mode. Hold S. Hold Alt. Release S. Release Alt.

Camera will be stuck moving down.

Fix is to exit/re-enter the game, which is very, very annoying. Interestingly, when the camera is 'stuck'. you can do the same process above in the opposite direction (i.e. W instead of S, A instead of D, etc.)... and it'll stop the camera from panning.

Neither key will work for camera movement unless you exit/re-enter the game. Re-mapping keys after they "break" has no effect. The key can be used for casting abilities / items / etc, but camera movement will not work using any key.

(i.e. if i 'break' the camera with W moving up, 'fix' it by sticking S, then re-assign camera pan up to E, camera will not pan up when I press E.)

Lastly, this doesn't happen for other keys (abilities/items,shift), it seems to only affect camera-pan.

Zeratuli0 commented 3 weeks ago

Repro steps:

Go in to Demo mode. Hold S. Hold Alt. Release S. Release Alt.

Camera will be stuck moving down.

Fix is to exit/re-enter the game, which is very, very annoying. Interestingly, when the camera is 'stuck'. you can do the same process above in the opposite direction (i.e. W instead of S, A instead of D, etc.)... and it'll stop the camera from panning.

Neither key will work for camera movement unless you exit/re-enter the game. Re-mapping keys after they "break" has no effect. The key can be used for casting abilities / items / etc, but camera movement will not work using any key.

(i.e. if i 'break' the camera with W moving up, 'fix' it by sticking S, then re-assign camera pan up to E, camera will not pan up when I press E.)

Lastly, this doesn't happen for other keys (abilities/items,shift), it seems to only affect camera-pan.

i use alt+s alt+a as hotkey items so know i understand why this happening

Zeratuli0 commented 3 weeks ago

Repro steps:

Go in to Demo mode. Hold S. Hold Alt. Release S. Release Alt.

Camera will be stuck moving down.

Fix is to exit/re-enter the game, which is very, very annoying. Interestingly, when the camera is 'stuck'. you can do the same process above in the opposite direction (i.e. W instead of S, A instead of D, etc.)... and it'll stop the camera from panning.

Neither key will work for camera movement unless you exit/re-enter the game. Re-mapping keys after they "break" has no effect. The key can be used for casting abilities / items / etc, but camera movement will not work using any key.

(i.e. if i 'break' the camera with W moving up, 'fix' it by sticking S, then re-assign camera pan up to E, camera will not pan up when I press E.)

Lastly, this doesn't happen for other keys (abilities/items,shift), it seems to only affect camera-pan.

i want to give update about this just changed my hotkey binds and removed all alt+a alt+w still get this bug and nothing solved so i guess this not a thing that trigger it

davesalomon commented 3 weeks ago

Thanks @Zeratuli0, I originally thought this was to do with Alt being a key modifier (for pinging cooldowns etc)... but, I think something else is going on.

For me, I've fixed this by going to Options > Hotkeys > Advanced Hotkeys, and turning on "Allow Windows / Command key to be bound" setting under "Hotkey options" (third column, 3rd section from the top).

After I turned this option on, I can no longer reproduce the issue using the steps outlined above (which consistently caused it before).

I highly recommend turning this setting on and seeing if it helps!