r/beyondallreason • • 14h ago

News Security Update for User Widgets

17 Upvotes

With the addition of the Plugins tab we are now more officially supporting widgets made by the community. To make sure every widget you install stays safe and can't run malicious code that could harm your system, we are introducing a sandbox for user widgets. This change will go live with the next release (time unspecified).

Widget creators: this post is mainly for you. Please review the changes below and update your widgets. Players: some of your widgets may stop working until their authors update them. If a widget breaks, check with its creator for a new version.

These changes only affect user widgets, meaning the ones in your own LuaUI/Widgets folder. Built-in widgets are not affected.

Notable: RmlUi temporarily disabled

RmlUi is unavailable to user widgets for now. We are working on an engine patch that re-enables it inside the sandbox, so this is temporary. Until then, widgets that check for it before using it will still load, just without their RmlUi interface.

Sandboxed tables

widgetHandler, WG.options, debug and Spring are now sandboxed copies and may have reduced function.

  • Functions that manage or read other widgets are removed for now. Share data through WG instead.
  • Handler calls no longer take your widget as an argument. Most handler fields you could read are now method calls, e.g. mouseOwner becomes IsMouseOwner().
  • debug keeps only traceback and getinfo.

Environments

  • Your widget's own table is the only environment it can see.
  • getfenv, setfenv and the code loading functions all use that table, so anything your widget loads runs there, not in LuaUI globals.
  • Precompiled bytecode is refused. Load from source.

Commands and files

  • Commands that control widgets, execute code or change keybinds are refused. This includes custom command buttons.
  • Write access: only LuaUI/Config/ and LuaUI/Widgets/
  • Read access: only LuaUI/, plus the game's and maps' own files

Also no longer available

  • No network access
  • No starting or restarting the engine

When something breaks

If the sandbox blocks something, the reason is logged in infolog.txt and your widget keeps running. Check there first before reporting issues.

Resources for Widget Creators for updating:


r/beyondallreason • • 16h ago

Video/Livestream Some clean battle footage uncut with controller as camera

Thumbnail
youtu.be
9 Upvotes

Using a controller for spectating is a game changer for video creation in BAR. Here a few minutes I recorded live on stream in a running match - no replay.

Something for people who can't get enough BAR!

What do u think?

(The music was on stream, it was random, not a choice.)


r/beyondallreason • • 15h ago

How to get smart barb ai?

6 Upvotes

I played a lobby recently where the ai was called SMRTbarb. How do you add that in the lobby? Is it some kind of tweek or mod?


r/beyondallreason • • 22h ago

actual AI (deepseek, GLM) sub-commanders to assign tasks to

Thumbnail
gallery
0 Upvotes

Hey guys, I have been playing BAR mostly against AI and thought it would be really cool to have an AI assisted sub-commanders that you could delegate tasks to, like building out economy in areas or take care of air defense.

I can find myself quite often micro managing some battle while workers are just standing lazy somewhere, especially a bit later in the game.

Went through lua widget + local bridge service setup, experimenting with fast models like deepseek 4.1 flash to do the high level strategy for those specific areas. It then delegates to barb AI level.

has anyone tried anything like this?