ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.74k stars 631 forks source link

[HL1] Unable to re-bind "snapshot" #1560

Closed Mecha-Weasel closed 10 years ago

Mecha-Weasel commented 10 years ago

I had not played HL1 in a while (many months), so not sure when this started. In my case this is being experienced with a Windows HL1 client install (on 64-Bit Windows-7). Whenever I unbind "snapshot" and try to bind it to another key, the interface (for keyboard options) shows it is bound correctly, as does the console. However, the functionality does not move with the bind.

For example if I bind KP_5 to "snapshot", pressing KP_5 does not take a screen-capture. It does nothing. However even if I unbind it from "pause" ("unbind pause", or just bind something else to "pause") pressing the pause key continues to initiate the taking of a screen-capture.

Not sure if other GoldSrc-based games are effected, or just HL1 itself.

dtugend commented 10 years ago

How did you end up with snapshot being bound to pause in the first place? By default pause should be bound to pause the game (singleplayer) and F5 should be bound to snapshot.

I am guessing it's an issue with your config files.

Please check your config files in the valve* (valve, valve_addon, ...) folders:

You might have some strange script that aliases s.th. that gets executed now and then and causes the keys to be rebound.

I tested on Windows XP and Windows 7 64 bit and could not reproduce your problem (can bind and unbind pause key just fine). As said I am guessing it's an issue with your config and would happen on any platform.

Mecha-Weasel commented 10 years ago

Wiping-out all my configs and letting the defaults re-download didn't help. However, I did eventually find the problem - or rather "feature". Outside of HL1, in the Steam Client itself there is a setting for "Screenshot shortcut key", which I apparently had set to "Break" (which is the same key as "Pause" generally). That explains why no matter what I did inside the game or the config files for the game the screen-shot feature kept being treated as bound to that key.

I have changed it now to something else, obviously.