Second AgeAccount ↗

SECOND AGE RUNTIME · BFME II

What the runtime adds to BFME II.

Controller play, gameplay rules, scripting and tools inside the game—explained feature by feature.

Source review: October 12, 2026. Installed features depend on your runtime version.

What the runtime adds

Second Age Runtime (formerly BFME2Lua) runs inside BFME II. It adds controller input, camera and selection assistance, in-game settings, configurable gameplay rules, Lua scripting, and diagnostics. The launcher installs and updates it; the runtime supplies the game integration. Features depend on the executable, DLL, scripts, configuration and content archives installed together. This guide describes the current source on October 12, 2026, rather than guaranteeing that every published or older Steam Deck package contains it. BFME II is the primary target; Rise of the Witch-king and BFME I have separately guarded profiles and do not inherit every feature automatically.

Controller play and camera controls

The controller layer translates supported gamepad input into native game actions: selecting units, issuing movement and attack orders, placing buildings, navigating menus and using commands. A performs contextual selection/orders; B cancels or goes back. Double-tap gestures provide matching-unit selection or attack-move where the current context supports them. Shoulder modifiers support adding to a selection and waypoints. Shortcuts cycle heroes and builders, select the army, jump home, follow the selection, reset the camera and visit the last radar alert. Bindings are editable by context, so menu presses can behave differently from match presses.

A centered Xbox-style reticle lets you aim by panning the camera with the left stick. The right stick rotates and zooms; menus return to a movable pointer. Camera speed, acceleration, cursor size, dead zones, inversion and alternate stick modes are configurable. Held inputs are cleared on focus loss, disconnect or console capture to reduce stuck orders. Holding comma/period also rotates the camera; chat and text input keep priority.

Hold RT for Palantir command navigation. The D-pad highlights commands and A activates them. Submenus expose heroes, builders and unlocked powers, including pagination for long lists. Builder commands can select a construction preview before placement. B goes back or cancels a queued command, depending on context. Native building commands, portrait commands and construction previews are separate interfaces. Some hero/building highlighting and activation paths remain under investigation; implementation does not establish complete controller parity with the Xbox version. Steam Deck usability depends on the installed runtime and input configuration.

Selection assistance and in-game menus

Selection assistance makes near misses on units more forgiving. Exact native hits retain priority; a bounded search samples nearby positions using the engine picker. Buildings, UI-covered positions and construction previews are excluded. Settings offers Off and 12, 24, 36 or 48 pixels; 24 is the documented default.

F10 opens runtime Settings and F11 opens Cheats; native on-screen buttons also open them. Mouse, keyboard and controller navigation are supported. Settings persist selection assistance, camera speed, controller enablement, rotation inversion and centered-cursor preferences. Game Options opens the native options screen. These runtime panels capture map input but do not themselves pause simulation. Local preferences can differ between players.

The cheat interface exposes resources, power points, effective command-point limits, selected-unit levels, template cost/build-limit/production-time changes, self-building and AI controls where supported. Template changes affect every object of that type, not just the selected unit. Self-building continues normal construction without a builder; it does not mean instant completion. Actions report pending/applied/error results. Cheats are tools for supported contexts, not a promise that every mutation is permitted in online play.

Walls, fortresses and building territory

The skirmish Rules page adds a Wall rebalance switch. The current gameplay.ini specifies wall and gate health at 3×, hub health at 6×, wall costs at 0.5×, generated-hub costs at 0.7×, standalone-hub costs at 0.3× and expansion costs at 0.8×. Fortress and standalone-hub wall ranges are 2×. These are editable package settings, not fixed values in every release. Scaling uses original template values rather than repeatedly compounding them; existing objects are not automatically healed or resized.

The runtime can restrict damage to units marked CAN_ATTACK_WALLS or, more strictly, SIEGEENGINE. Allowed damage still uses native armor rules. Healing, unresistable damage and damage without a resolvable attacker retain native handling. Fortress cores have a separate damage-mode setting. Crucially, the current workspace sets SiegeOnlyFilter=0 as a performance experiment: do not assume the siege-only protection hook is active merely because damage modes are configured.

Other rules can remove intermediate hubs from new wall spans, adjust gate-side clearance and share fortress arrow upgrades with owned towers in range. The current configuration removes intermediate hubs but keeps the native gate-gap requirement. Removing extra clearance does not remove the gate footprint, all obstruction checks or upgrade prerequisites.

RequireEnclosedWalls can require non-resource construction to lie inside an owned completed boundary. Terrain and static obstacles can contribute to enclosure; navigable breaches invalidate it. Farms, wall pieces, AI players, Goblins/Wild, fortresses and attached expansion parts have documented exemptions. Gates/posterns count as boundary even when open. The placement point is tested while ordinary footprint checks remain. Existing buildings and forced scripted spawns are unchanged. Wall rebalance off disables this rule. Exact enclosure edge cases and reported wall leakage still need gameplay validation.

Starting rules, construction and AI helpers

Begin with walls can provide supported offline players with a recorded starting perimeter. Starting-resource controls extend the native rules UI; the source also contains a 100× starting-gold script, but that script depends on its associated UI/shared setting and should not be advertised as universally enabled. Video skipping stops current and newly started videos, so leaving its script enabled can skip cinematics as well as opening movies.

The runtime exposes construction requests, wall expansion, builder identity, start/finish notifications and self-building. The current construction.lua sample does not consume builders or force five-second builds: those edits are disabled. They remain scripting possibilities rather than active balance changes.

Offline AI helpers can train additional builders, manage wall layouts and upgrades, and help with farm placement. The builder helper targets four builders, starts after 30 seconds and preserves an economic reserve while using normal paid production. Recorded wall plans use fortress-relative coordinates and replay supported hub/span steps with delays, budget checks and retry limits. Ctrl+Shift+R toggles wall-plan recording in the supplied script. These helpers are restricted to single-player skirmish where indicated; they do not establish synchronized multiplayer AI support.

An optional unit-training rule reduces training time when a player owns multiple completed buildings of the same exact type. It is independent of Wall rebalance. The current setting disables it; the configured reduction is 10 percentage points of original training time for each additional building, bounded to at least one simulation frame. Defeat/victory and AI suspension controls use native routines. Pausing and attaching an AI controller to a human player have explicit offline restrictions; live AI takeover still needs verification.

Optional models and texture packs

Content archives can add visuals and objects beyond the DLL/script features. The experimental Isengard wall-tower package replaces a completed wall segment through a native upgrade, using a merged wall/tower model and the existing tower weapon and armor. Its documented data sets a 400 cost and 20-second build time. It targets specific 1.09 data and is not automatically compatible with every patch. Construction, damage and rubble variants are not all modeled, and live rendering/upgrade validation remains incomplete.

A separate Gondor build-plot archive replaces Men floor textures with BFME I textures. Terrain-paving and flat-plot APIs allow additional scripted visual changes. These require their corresponding assets/configuration; installing the runtime DLL alone does not install every content pack. Keep required archives when loading saves containing custom objects. Multiplayer peers need identical relevant content archives; the DLL/Lua compatibility badge does not compare BIG files. Existing BT2DC/1.09 balance changes belong to those projects.

Multiplayer compatibility, online login and saves

The runtime queues supported mutations and shared messages at simulation boundaries. LAN compatibility checks compare the loaded DLL and Lua scripts, including relative names, with normalized line endings. Mismatch warnings identify differences; unanswered peers become unverified after eight seconds. The warning is advisory and does not itself prevent starting. INI settings, BIG files and game patch versions are not covered by that fingerprint.

Supported LAN gameplay rules can be supplied by the room host, acknowledged by clients before play and restored to local values on leaving. This allows different local gameplay INIs for the rules covered by that protocol. It does not synchronize arbitrary scripts or all mod data. End-to-end two-machine validation remains a separate requirement.

Online integration provides configurable endpoints and a pinned TLS relay for native game traffic. A linked launcher can prepare a short-lived single-use login ticket; the runtime can activate native Login and exchange that ticket without storing the account password in this flow. Server availability, successful native login, lobby operation and internet gameplay are separate requirements. Network transport alone is not a universal desynchronization fix.

Optional encrypted save/data synchronization runs on a worker thread, pulls when configured and queues uploads after changes. It includes conflict/validation handling and requires a working server/account configuration. It is separate from Steam Cloud. Match/CRC diagnostics help investigate divergence; they cannot guarantee compatible simulation between mismatched clients.

Frame rate, rendering and performance

A supported BFME II executable can use an experimental 60 FPS client target while retaining the original full logic-frame rate through scheduler mapping. A measured FPS counter is refreshed every half second. A frame-rate.txt value of 30 selects stock timing after restart. This is not a guarantee of stable 60 FPS on Steam Deck, and game-speed/multiplayer validation remains necessary.

Rendering repairs handle certain device-reset, loading-transition and terrain-buffer allocation failures by recovering or skipping/retrying affected passes. Overlay/font resources participate in device-loss handling. These repairs target diagnosed paths rather than every possible graphics crash.

Performance work includes cached device/window state, demand-driven selection/catalog scans, reduced allocations and memory queries, a 125 Hz Wine keyboard fallback and reduced disconnected-controller polling. Profiling exposes frame/hook timings, peaks, counters and reset/report functions. Network workers batch already queued frames without adding a batching delay. Such optimizations describe implementation; measured improvements depend on the build, scene and machine.

Lua tools and developer capabilities

A native 32-bit DLL embeds Lua 5.4.9 and installs signature-gated hooks. Sorted top-level dev/*.lua scripts load modular libraries. Ctrl+Shift+F5 reloads scripts; native DLL changes require restarting the game. The runtime offers an in-game console, command history, log view and named-pipe terminal console.

Scripts can inspect player resources, diplomacy, powers, selection, unit/building instances, templates, commands and construction state. Supported setters/actions include costs, build limits, production timing, levels, resources, command points, power acquisition, native orders and match controls. Copied snapshots avoid exposing raw engine pointers; queued writes are revalidated and return mutation tickets. A readable position or health field does not imply an arbitrary position or health setter exists.

Events cover selection, construction, death/destruction, pause, defeat, video, save/data and shared values. Native dialogs, custom command buttons, UI layout data, JSON helpers and shared messages support new interfaces. Unlocking another faction’s science does not create missing spellbook buttons or ability modules. API availability is version/profile specific; creators should check results rather than assuming every hook exists.

Installation and current limits

Use a matching DLL, boot DLL, script tree and configuration; restart after replacing DLLs. The launcher supports published, existing and developer runtime sources. Developer mode rebuilds from a chosen checkout. Backups allow restoring original executables when disabling autoload. Older packages retain BFME2Lua names while newer ones use SecondAgeRuntime; mixing their boot/config/script paths can break startup.

The current Steam Deck package and the Second Age AppImage are separate installations. Proton/Wine setup, DirectX dependencies and correct prefix selection are prerequisites for either; the runtime cannot replace missing graphics DLLs. Current investigations include controller building/hero commands, wall-edge leakage, experimental content rendering, live multiplayer rule agreement and repeated alt-tab/60 FPS testing. This guide describes source capabilities and known limits, not a claim that the recent Deck crash is fixed.

Get started

Install Second Age, choose BFME II and review the runtime source in Settings.

Download Second Age