Deciphering buildFile.XML File

My aim - to replace all CTRL+F Key Commands with CTRL+]. Then replace all ALT+F Key Commands with CTRL+F.

My thought - Unzip the module and edit the buildFile.xml file to perform some global replacements. Simple - not. Those (and probably all the other Key Commands) do not appear as such. Seemingly something else, a code/number/whatever, is used to designate/define these key combinations.

Is there a way to do this? The Vassal Search function can find them all, but it does not have a replace (with) functionality (BTW, that functionality would actually be very nice).

Manually altering several thousand layer traits is not my idea of spending the next few days time.

Key commands (i.e., keystrokes or named commands) are encoded as

chararcter-code,modifier-code[,name]

where character-code is the ASCII number of a character

A -> 65, B -> 66, ..., Z -> 90

and modifier-key are

Ctrl -> 130
Alt -> 520
Shift -> 65
Ctrl+Shift -> Ctrl + Shift = 195
Alt+Shift -> Alt + Shift = 585
none -> 0

and name is optional and is a named command. If name is specified then character-code must be 57348 and modifier-code must be 0.

So if you want to replace Ctrl+F with Ctrl+J, then search and replace 70,130 with 74,130, and to replace Alt+F with Ctrl+F, then search and replace 70,520 with 70,130.

Please remember to indicate which post solved your problem - that really helps other find solutions to their problems.

Yours,
Christian

Thank you Christian.

  1. for your rapid response and
  2. for your answer

I’ll load the file up and have a bash and let you know. To me, your message is the correct response, but I do like to confirm first (if that’s OK).

Don