Tags: bar modding, tweakunits, build roster, movedef, buildoptions, bar tweaks, beyond all reason modding

Adding Units to BAR Build Roster with TweakUnits

How to append build orders using tweakunits versus tweakdef, and where beginner modders should look for working templates.

Tweakunits versus tweakdef

Adding a unit to a build roster through tweakunits means rewriting the entire buildoptions table. Appending to an existing table inside tweakunits has no clean built-in method. Using tweakdef instead provides a smoother path for most build roster modifications because the override system handles table merging more naturally.

New modders often start with tweakunit templates that add build options to every builder in the game — factories and constructors alike. The local function in those templates iterates through all unit definitions and applies the same addition uniformly. For targeted changes, filtering by unit class before appending prevents unwanted builders from gaining new options.

BAR Tweaks templates

The BAR Tweaks repository on GitHub includes a templates directory designed for inexperienced modders. The build options template demonstrates the local function pattern for adding entries across multiple unit types. Reading through those files gives a working baseline before attempting custom additions to specific unit categories.

Movedef changes and floaters

Unit movement behavior involves the movedefs.lua file and engine-level properties. Properties like FloatWaterline and the floater boolean control amphibious behavior. An engine change moved some of these handling responsibilities into movedefs, meaning older modding guides that reference unitdef-level movement properties may no longer apply correctly.

Lobby deployment

Getting modified build rosters into multiplayer lobbies requires either distributing the tweak files manually or hosting through an autohost that loads the modified definitions. Players wanting to playtest with random groups need to account for file distribution before the match starts. Beyond All Reason gameplay videos cover build order concepts that help modders understand which units matter in competitive play.

Creed of Champions

Creed of Champions brings together players who value teamwork and communication. The group runs training sessions, team matches, and keeps a friendly atmosphere across all skill levels.

[Crd] Creed of Champions is a great place to learn and play BAR in a friendly atmosphere. Training sessions, team gameplay, even some non-BAR stuff. Large cross section of abilities, time zones, and game mode interests.
Advertisement