Building a BAR commander editor and working with Base64 tweak limits

Players building custom commander editors for Beyond All Reason run into the same friction points. Legion unit definitions receive less public documentation than Arm and Core. The Base64 tweak system has a hard length limit. Subfolder settings do not always apply the way you expect.

Tags: beyond all reason, commander editor, Legion units, Base64 tweaks, unit tweak limits, buildoptions, subfolder

The Base64 tweak length limit

Unit Tweaks in the lobby interface accept Base64-encoded Lua tables, but the input field caps out at a specific character count. The exact number is not well documented, and the limit exists for good reason: excessively large tweaks break the lobby interface.

When you hit the wall, the workaround uses numbered tweak modoptions. These split large configurations across multiple smaller slots, effectively patching the single-slot limit.

Legion unit documentation gap

The official documentation covers Arm and Core factions thoroughly. Legion unit descriptions, build icons, and type classifications receive less attention. Developers working on commander editors must dig deeper to map the full Legion roster.

The GitHub repositories contain the raw Lua files and build icons. Pull the unit definitions directly from github.com/beyond-all-reason/Beyond-All-Reason and extract the data you need. The files carry the same structure as Arm and Core entries.

Subfolder settings that do not apply

If tooltip and name changes on build options work but subfolder assignments do not, check the official repository for how subfolder gets used in the existing code. The answer lives in the implementation pattern, not in documentation.

Search the repository for "subfolder" usage examples and copy the pattern exactly. The subfolder property requires a specific table nesting structure that differs from other build option properties.

Generating consistent unit entries

When you have the raw data, the pattern for building a unit entry looks like:

This structure works across all three factions once the raw data is available.

Building with community support

Tool builders who share their work help everyone. The BAR modding community provides direct answers to specific technical questions. That same spirit of cooperation defines play communities like Creed of Champions.

[Crd] Before discovering Creed, I was thinking the only thing that separates BAR from the perfect RTS is a friendly and safe social environment for new players to learn and feel included.

Building tools and playing well share the same underlying principle: make the game better for the people around you.