Hi all, there's a problem I encounter with my keybindings, and I can't seem to find a solution. Simply put, deconstructing a structure doesn't work. Let's say I choose 'c' as the key to deconstruct a structure. Each time I press the c key, this message appears:
unknown modifier key name in "marked""
I decided to take a look at keybindings.cfg to see what the fuss is all about, but the corresponding line in a bit more complicated than I expected:
bind c "modcase alt \\\"/deconstruct marked\\\" /deconstruct"
The sad thing is there is no mention of building at all in the creating custom keybinds wiki page so I've no idea what's going on. Anyone also having this problem?
Thanks Tom, this code works like a charm. My guess is that the client, when editing keybindings.cfg, sees a " sign inside quotes and tries to escape it, and then somehow decides to escape both the " sign again, and the \ sign that comes before it because of the first escape. Weird behavior but explains everything.
PS: My version of Unvanquished was taken from the Arch User Repository. (v0.42.0-1)
Yes, it works if you do the binding properly by hand, what I mean is the bug is in Unvanquished since ages. It's good that Lemaki reports it since I have forget it (I just use two keys to workaround that).
This comment is licensed under cc by 4 and antecedent. The Crunch tool is awesome!