# Deciphering buildFile.XML File

**URL:** <https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089>\
**Category:** Module Design\
**Created:** [April 23, 2026, 3:15am UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089 "2026-04-23T03:15:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)\
**Post date:** [April 23, 2026, 3:15am UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/1 "2026-04-23T03:15:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cholmcc](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cholmcc/32/8319_2.png) [@cholmcc](https://forum.vassalengine.org/u/cholmcc)\
**Post date:** [April 23, 2026, 4:50am UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/2 "2026-04-23T04:50:18Z")

</div>

> [@palad0n](#):
>
> Seemingly something else, a code/number/whatever

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

```auto
chararcter-code,modifier-code[,name]

```

where `character-code` is the ASCII number of a character

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

```

and `modifier-key` are

```auto
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_

---

<div class="post-metadata">

**Author:** ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)\
**Post date:** [April 23, 2026, 5:46am UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/3 "2026-04-23T05:46:29Z")

</div>

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

PS Seems to work quite well. There are, however, also several (28) 70\,520 entries. Are these also ALT F - they do appear where an ALT F is expected. I wonder why the \ is added though.

PPS Also several 70\,130 entries as well.

Did not do a global replacement of the 70\,x entries just in case they were something else. Recompiled the module and ran it. Then went through using the search function to locate those 70\ entries and correct/amend as necessary. Found them all and they were CTRL F and ALT F key commands. Anyway, the module seems to run fine post the changes. I’ll adfur once the team can put it through its paces during game play on Monday.

---

<div class="post-metadata">

**Author:** ![cholmcc](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cholmcc/32/8319_2.png) [@cholmcc](https://forum.vassalengine.org/u/cholmcc)\
**Post date:** [April 23, 2026, 1:36pm UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/4 "2026-04-23T13:36:54Z")

</div>

> [@palad0n](#):
>
> I wonder why the \ is added though

The backslash `\` is there to _escape_ the comma `,` in the encoding of piece traits. Comma is usually used to separate different fields in a trait configuration. Thus, to avoid the parser of the traits to understand, say `70,520` as the fields `72` and `520`, we need to escape the `,` by placing a `\` in front of it. In non-traits, e.g., buttons, the comma need not be escaped because the key is stored in an attribute of the XML element.

> [@palad0n](#):
>
> To me, your message is the correct response, but I do like to confirm first (if that’s OK).

Of course. You should of course verify that the solution works before checking it - otherwise it will be misleading which is no help at all 🙂

Yours,  
_Christian_

---

<div class="post-metadata">

**Author:** ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)\
**Post date:** [April 23, 2026, 2:15pm UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/5 "2026-04-23T14:15:59Z")

</div>

Thank you Christian.

The overall solution is:

1. Unzip the module
2. Open the buildFile.xml file with whatever you prefer to use (notepad++ it’s really good)
3. Open the find function using CTRL F.
4. Click on the ‘Replace’ tab.
5. Use the ASCII numbers the alphanumeric you need replaced and then the modifier key/codes for CTRL or ALT as provided by Christian.
6. Do the global replace functions using find x,y replace with a,b.
7. Repeat the global replace functions as for 6, but include the ‘\’ on both the find and replace by elements. ie x\,y replace with a\,b.
8. Save.
9. recompile the module.
10. play.

I think that covers it all pretty well.

My thanks to you Christian

BTW the global replace of CTRL+F with CTRL+] change well over 5000 entries.

(I think this message is the overall solution?)

---

<div class="post-metadata">

**Author:** ![clanmacrae](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/c/e8c25b/32.png) [@clanmacrae](https://forum.vassalengine.org/u/clanmacrae)\
**Post date:** [April 23, 2026, 7:37pm UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/6 "2026-04-23T19:37:35Z")

</div>

And always make sure you have a saved backup copy of the last working build file. 😉

---

<div class="post-metadata">

**Author:** ![jrwatts](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/jrwatts/32/6972_2.png) [@jrwatts](https://forum.vassalengine.org/u/jrwatts)\
**Post date:** [April 23, 2026, 10:31pm UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/7 "2026-04-23T22:31:38Z")

</div>

FYI, Christian gave you the ASCII code for “J”, not for “]” (closing bracket); that would be 93.

---

<div class="post-metadata">

**Author:** ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)\
**Post date:** [April 24, 2026, 11:34am UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/8 "2026-04-24T11:34:55Z")

</div>

> [@jrwatts](#):
>
> FYI, Christian gave you the ASCII code for “J”, not for “]” (closing bracket); that would be 93.

Thanks jr, I did pick up on that one.

> [@clanmacrae](#):
>
> And always make sure you have a saved backup copy of the last working build file

Definitely an, to reiterate, always.

---

<div class="post-metadata">

**Author:** ![cholmcc](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cholmcc/32/8319_2.png) [@cholmcc](https://forum.vassalengine.org/u/cholmcc)\
**Post date:** [April 25, 2026, 1:44pm UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/9 "2026-04-25T13:44:59Z")

</div>

> [@palad0n](#):
>
> (I think this message is the overall solution?)

You decide which is the solution to your problem - you have that prerogative as OP 😄

---

<div class="post-metadata">

**Author:** ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)\
**Post date:** [April 26, 2026, 1:24pm UTC](https://forum.vassalengine.org/t/deciphering-buildfile-xml-file/90089/10 "2026-04-26T13:24:51Z")

</div>

> [@cholmcc](#):
>
> You decide which is the solution to your problem - you have that prerogative as OP

Sorry, forgot.
