Something keeps rewriting my key binds
#1
http://bpaste.net/show/155589/ I have this script to skip grenades when scrolling. I can switch to grenade with mouse2 unless I'm using the sniper, in which case it scopes. I bound left shift to "special action" using the GUI config menu and it works as expected to use the scope. MOUSE2 would then neither scope nor quicknade.

Exited AC and removed a couple of references to MOUSE2 (to "special" and "altaction") that remained in saved.cfg for some reason. After starting AC again, MOUSE2 is assigned to Special Action in keyboard config GUI and the problem persists as described. Exited AC again and grepped for mouse2 in config/.

'bind "MOUSE2" [altaction]' and 'editbind "MOUSE2" [ showmenu editing ]' are present again. 'bind "LSHIFT" [altaction]' also exists later in the file. Removed both lines referring to MOUSE2, saved, started AC. Same issue. Exited AC.

In saved.cfg, edited 'bind "MOUSE2"' to 'bind "LSHIFT"' and deleted the other LSHIFT bind that occurred later in the file. Deleted the 'editbind "MOUSE2"' line. Saved, started AC. The 'bind' and 'editbind' lines for MOUSE2 were back, and the bind of LSHIFT to altaction was moved back to its old place in the file.

What keeps rewriting my config? I imagine I could use mouse2 to quicknade with the sniper if something didn't keep reverting my changes but I have no idea why it would do this.

Lamefox suggested setting config to readonly. I did edits as before. There is no reference to MOUSE2 in saved.cfg. I have bind "LSHIFT" [altaction]. chmod a-w saved.cfg. Start AC and mouse2 zooms, and Special Action is MOUSE2 in the GUI.

My changes to saved.cfg were not reverted this time but the game simply doesn't obey it. So why does saved.cfg even exist???

http://bpaste.net/show/155593/ This is all there is now; I don't see why any of those should interfere with my binds.
Thanks given by: