Operations

Macros

Save sequences of Cmdr commands with variables and delays, then run, dry run, pause, resume or stop them on live servers.

A macro is a saved sequence of Cmdr commands and delays that runs in order on live game servers — for example a starter package for a player: give coins, give an item, send a message. Macros live on the Macro Runner page, on the Macros tab.

A macro never grants more than single commands do. Each step goes through the same permission checks, validation and bridge path as a command you type in the console, and your permissions are checked again before every command step.

#Permissions

Permission Allows Default roles
commands.view Seeing macros, their run history and favouriting them Owner, Admin, Developer
macros.manage — Create and edit macros Creating, editing, duplicating and deleting macros Owner, Admin, Developer
macros.execute — Run macros Starting runs (dry runs included) and pausing, resuming or stopping your own runs Owner, Admin, Developer
commands.execute Required as well for a real run, and checked before each command step Owner, Admin, Developer

Someone without macros.manage can open a macro but sees "You can view this macro but your role can't edit it". Pausing, resuming or stopping a run is limited to the person who started it, or an owner or admin.

#The macro list

The Macros tab lists every macro in the project with its step count, variables, description and last run ("Never run" if it hasn't been). Favourites come first, then the rest alphabetically. Use Search macros to filter by name or description.

Each row has:

  • a star to Add to favourites or Remove from favourites — favourites are personal, so they only change the order for you;
  • Run, which opens the run dialog;
  • a menu with Edit (or View), Duplicate, Run history and Delete.

Select New macro to create one.

#Edit a macro

#Name and description

Name is required, up to 80 characters. Description is optional, up to 300 characters, and is shown in the list and when picking a macro from a player's profile.

#Steps

Steps run in order, and a failed step stops the macro. A macro has between 1 and 50 steps, and each step is one of two kinds, chosen with the Command / Delay switch on the step:

Kind What it holds Limits
Command A Cmdr command line, which may contain {variables} Up to 500 characters
Delay A wait, in seconds, before the next step 0.1 to 600 seconds

Every step can also have an optional description of up to 200 characters.

Add steps with Add command or Add delay (a new delay starts at 2 seconds). On each step:

  • drag the handle to reorder, or focus the handle, press Space, then use the arrow keys;
  • Move up and Move down shift it by one place;
  • Duplicate step inserts a copy just below;
  • Remove step deletes it (a macro always keeps at least one step).

The command field has the same suggestions and argument hints as the console. Steps are validated against the commands your servers have reported, with any {variable} standing in for a value of the right type. If no server has reported its commands yet, steps can't be validated or autocompleted, and the editor says so.

#Variables

Variables let one macro work for different players or amounts. Use {name} anywhere in a command step, such as givecoins {player} {amount}, and declare it in the Variables panel with Add. You can have up to 20 variables, each with:

Field Rules
Name Letters, numbers and _, not starting with a number. Must be unique.
Label Optional, up to 60 characters. Shown instead of the name when running.
Default Optional, up to 200 characters. Pre-filled when running.

Every variable used in a step must be declared. If a step uses an undeclared one the panel warns you and offers Add to declare it; you can't save until it's declared. Declared variables that no step uses are marked "Not used by any step."

Name a variable player to make the macro work from player profiles: choosing Run macro on a profile fills {player} in with that player's username.

#Save, duplicate and delete

  • Create macro (new macros) or Save changes saves it for everyone in the project. If you try to leave with unsaved changes you're asked to Discard changes first.
  • Duplicate macro creates a copy named "… (copy)" with the same steps and variables and opens it.
  • Delete macro removes the macro for everyone after you confirm. Its past runs stay in the history.

You can't run a macro while it has unsaved changes; save first.

#Run a macro

Select Run on the list or in the editor. The run dialog shows:

  • a field for each variable, pre-filled with its default (or the player you came from);
  • Target server — Automatic or a specific live server, the same picker as the console;
  • who the commands will run as;
  • Dry run;
  • Steps to run, a preview of every step with your values substituted.

Select Run macro, or Start dry run when Dry run is on. You're taken to the run's page.

Before a real run starts, Bloxlytics checks that:

  • every variable has a value — empty ones are marked "Required";
  • every command step, with values substituted, is a valid command line (otherwise you get "Step N: …");
  • at least one live server runs the bridge.

Values containing spaces are quoted for Cmdr automatically, and double quotes are removed from them. Each person can start up to 10 runs a minute in a project.

A real run executes every command on live servers, one after another, without asking again. Commands that give currency or items, or change saved data, can't be undone by stopping the macro. Use a dry run first when you've changed a macro.

#Which server the steps run on

When you pick a server under Target server, every command step is sent to it. With Automatic, each step is routed the way a single console command is: to the server you're playing in, or else the least busy live server, never a Studio session. Each step then runs as your player if you're in that server, or in the system context otherwise — see who a command runs as.

If a macro works on one player, pick the server that player is in so every step reaches them.

#Dry runs

A dry run checks a macro without sending anything to the game:

  • each command step is validated against the registered commands and shows "Would run: …" with the final command line;
  • delays are checked but not waited out;
  • the first invalid step fails the run, like a real failure.

A dry run doesn't need a live server, so it's the only kind possible while no server with the bridge is online or the bridge is turned off. If your role lacks commands.execute, the dialog only offers dry runs.

Starting a dry run needs only macros.execute, but in the current version the per-step permission check also requires commands.execute, so a dry run started by someone without it stops at the first command step with "You no longer have permission to execute commands in this project."

#Follow a run

The run page (Macro Runner → History → Run) updates live. It shows:

  • the run's status, a Dry run badge if it is one, who started it, the target server and the elapsed time;
  • a progress bar, "N of M steps", and a percentage;
  • the log, one line per step: [position/total], the command (or wait N s), the step status and its duration, with the output or error underneath;
  • a summary, such as "Completed successfully.", "Dry run passed — every step is valid." or "Failed at step 3. Later steps were skipped.";
  • the variable values the run used.

Step statuses in the log:

Word Meaning
PENDING Not reached yet.
RUNNING Sent and waiting for the game server's result, or waiting out a delay.
SUCCESS The command succeeded, or the delay finished.
VALID Dry run: the step is valid.
FAILED The command failed, timed out or was refused. The run stops here.
SKIPPED Never ran because the run failed or was stopped earlier.

Run statuses are Running, Paused, Stopped, Completed and Failed.

#Pause, resume and stop

While a run is active, the person who started it — or an owner or admin — sees:

  • Pause: the run halts before the next step. During a delay, the countdown freezes until you resume.
  • Resume: carries on from where it paused.
  • Stop: ends the run before the next step (or during a delay); remaining steps are marked skipped.

A command already sent to a server isn't recalled by pausing or stopping; the run waits for its result first. When a run has finished, Run again opens the run dialog for the same macro.

#How runs execute

Bloxlytics runs a macro in the background, one step at a time, so you can close the page while it runs:

  1. Before each command step, Bloxlytics checks that the person who started the run still has macros.execute and commands.execute in the project. Roles can change while a run is in progress; if they've lost either, the step fails with "You no longer have permission to execute commands in this project." and the run stops.
  2. The step is queued exactly like a console command, so the command bridge switch, your role's Cmdr group list and routing all apply.
  3. Bloxlytics waits for the game server's result. A step whose command fails or times out fails the run, and later steps are skipped.

A run is only ever executed once at a time. If it is interrupted on our side mid-run, it picks up where it stopped, and a step whose command was already sent waits for that command's result instead of sending it again.

#History

Macro Runner → History lists recent macro runs, filterable by macro (All macros or one macro; Run history in a macro's menu opens this filtered). Each run shows its status, how many steps succeeded or failed, who ran it, the duration and when it started; select one to open its run page. The Command history table below includes every command a macro sent, marked "From a macro".

Creating, updating, duplicating, deleting, running, dry-running, pausing, resuming and stopping macros are all recorded in the audit log, with the variables each run used.

#Run a macro for a player

On a player's profile, Actions → Run macro lists the project's macros, favourites first, and shows "Uses {player}" for macros with a player variable. Choosing one opens the run dialog on Macro Runner with {player} filled in, so you can review the steps and pick the player's server before running.