Workbench Links – Arma Reforger

From Bohemia Interactive Community
Revision as of 13:21, 1 August 2024 by Lou Montana (talk | contribs) (Fix)
Jump to navigation Jump to search

A Workbench link is a protocol link that allows to share a direct point to a resource/script/game world location.


Using a Workbench link requires registering the enfusion:// protocol in Windows; see the Register enfusion:// protocol section for more information.


Supported Modules


Format

A Workbench link is composed of the enfusion:// protocol, the Module to open, eventually an addon ID, the relative file path and eventual parameters:

  • enfusion://ResourceManager/~ArmaReforger:Configs/Factions/BLUFOR.conf
  • enfusion://AudioEditor/$ArmaReforger:Sounds/Environment/Environment_Ambients_2D.acp
  • enfusion://BehaviorEditor/$ArmaReforger:AI/BehaviorTrees/Waypoints/WP_Move.bt
  • enfusion://ScriptEditor/scripts/Game/Editor/Containers/UIInfo/SCR_UIInfo.c;8
  • enfusion://WorldEditor/worlds/arland/arland.ent;3458.4,34.5587,2820.21;-15.107,297.881,0;46247
Module Parameters
ResourceManager N/A
AudioEditor N/A
BehaviorEditor N/A
ScriptEditor
  • file line number
WorldEditor
  • camera's world position (x, y, z)
  • camera's angles (x, y, z) - angles in -180..+180 range, z is always 0
  • entity ID - to select a specific entity

A link can be prefixed with https://enfusionengine.com/api/redirect?to=; the Enfusion Engine website provides a redirection for platforms that do not see enfusion:// as a valid protocol (e.g Discord).

The following editor links do not take any arguments:
  • enfusion://AnimEditor
  • enfusion://ParticleEditor
  • enfusion://LocalizationEditor


Link Creation

Link creation is not available in the following editors, yet properly-formatted links work for them:

The following editors do not take any file argument:

Resource Manager

Create a link by clicking on any resource in Resource Browser with Right Mouse Button then selecting Copy Link option from the context menu.

Creating a link in Resource Browser

Script Editor

Create a link by selecting from the top menu Edit → Copy link option or by using the Ctrl + ⇧ Shift + L shortcut (can be changed in the shortcuts options section)

Creating a link in Script Editor
Example: EnWorld.c file is being open in Script Editor and current line is set to line 17 enfusion://ScriptEditor/scripts/Core/proto/EnWorld.c;17

World Editor

Create a link by selecting from the top menu Game → Copy view link option or by using the Ctrl + ⇧ Shift + L shortcut (can be changed in the shortcuts options section)

Creating a link in World Editor