Chem O’DunReferences and Guides

Lua Globals Reference

Every name X4: Foundations puts into the global namespace of X4 UI Lua code - what creates it, which of the two Lua environments can see it, and which game version has it.

805 globals in 9.00: 711 injected by the executable, 59 from widget_fullscreen.lua, 26 from an addon file, 9 from a core file. Availability and version presence are verified in the game, not inferred from the code: every row reports what each Lua environment actually holds, on each version.

Download globals.lua

521 KB. The same 805 declarations as a Lua Language Server meta file - every global with its description, parameters and returns. Point an editor at it as a library and X4's globals get completion and signatures while UI Lua is being written.

Using it in an editor

The Lua Language Server reads a meta file when it is listed as a workspace library. In VS Code that is .luarc.json beside the workspace root, or the same key in settings:

{
  "workspace.library": [ "path/to/globals.lua" ]
}

The file declares names only - it is never executed and never loaded by the game. It covers the global namespace; for the wider set of X4 Lua definitions there is a packaged addon, X4-LuaLSAddon, installable through the Lua extension's addon manager.

How to read a row
Originengine injected by the game executable, defined in no .lua file.
widget_fullscreen written in ui/widget/lua/widget_fullscreen.lua.
addon a top-level definition in a ui/addons/* file.
core a top-level definition in a ui/core/* HUD file.
Availabilityall present in both Lua environments; an open card spells that out as all (addons + core).
addons only where ui/addons/* menus run.
core only in the HUD environment - addon code cannot reach these.
absent declared, but present in neither version.
The column is headed Seen in; a row carries the short word, and hovering it or opening the card gives the full wording.
Signatureconfirmed vanilla calls it, and every argument count fits the declaration - or, where vanilla never calls it, the global was called in the running game instead and the card's Probed in-game row says what that call measured.
disputed vanilla passes a count the declaration cannot take - believe the call site.
unverified neither: no vanilla code calls it, and no probe reading either.
from source nothing to verify: the name is defined in a vanilla .lua file, so its declaration is read from that definition. The three verdicts above are for engine globals, which no file defines; these 94 carry this instead, which is why all four options together add up to the 805.
Game versionsWhich versions have the global to be used: a version that deprecated it is not counted here, in the filter, or in its count, even though the executable still exports the name.
all in every version covered here (8.00, 9.00).
≥ 9.00 from that version onwards, so new since the one before it.
≤ 8.00 up to that version, and gone in the next.
The card still names every version, because which Lua environment holds it can differ between them.
Deprecateddeprecated: 9.00 - the game version that deprecated the name; the card says what the engine answers when it is called anyway. Independent of the signature badge: a deprecated name can still have a measured signature, and a live one can have none. A deprecated version does not list the name: the card's Game versions row says deprecated there, and the Version filter has a deprecated option for the names no covered version can still use.
Probedprobed: 8.00 / probed: 8.00, 9.00 - the card's reading was taken by calling the global in the running game, on the versions listed; every other card was read from vanilla's own call sites.
Every global was re-called on 9.00 in a confirmation pass, and presence, argument counts, return shapes and the engine's own complaints all reproduce 8.00 with one exception, GetRadarModuleName, which 9.00 deprecates. A card lists 9.00 only where a run on that version produced the reading it states, so a card badged 8.00 alone is still one 9.00 agrees with.
CopyingAn open card carries Copy name, Copy signature and Copy link; the last gives a URL that reopens that card.
Savedsaved - a <savedvariable> in the addon’s ui.xml. The engine restores the previous value before that file runs, which is why vanilla creates every one of them with X = X or { }. The card names the store: saved: userdata is per player profile, saved: savegame travels with the save.

All globals

799 of 805
NameOriginSeen inVersionDescription
__CORE_CHAT_WINDOWaddonaddonsallsaved Persistent chat-window state: its layout version, frame position and size, and the buffer of announcements it has received.

table addon addons only all saved: userdata declaration: from source

__CORE_CHAT_WINDOW = {}

Persistent chat-window state: its layout version, frame position and size, and the buffer of announcements it has received. Being a saved variable it already holds the previous session's value when chatwindow.lua starts, which is why that file creates it with __CORE_CHAT_WINDOW = __CORE_CHAT_WINDOW or { ... } and migrates older layouts by the version field.

Kindtable
__CORE_CHAT_WINDOWversion number - Data version; the addon migrates older layouts on load.
x number - Frame x offset.
y number - Frame y offset.
size string - Frame size preset.
announcements table - Announcement buffer.
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_chatwindow/chatwindow.lua - table assignment (8.00 :74 :77, 9.00 :76 :79)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DEBUGLOG_LOGaddonaddonsallsaved The debug log's stored contents: its layout version, the version at which it was last cleared, and the entries themselves.

table addon addons only all saved: userdata declaration: from source

__CORE_DEBUGLOG_LOG = {}

The debug log's stored contents: its layout version, the version at which it was last cleared, and the entries themselves. Setting it to nil clears the log. debuglog.lua starts the last-clear version at 0.0 deliberately, so the log is cleared once on first use rather than needing that number maintained.

Kindtable
__CORE_DEBUGLOG_LOGversion number - Data version.
lastClear table - { major, minor } of the last clear.
data table - The log entries.
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_debuglog/debuglog.lua - table assignment (8.00 :51 :982 :985 :994 :997 :1000 :1003 :1006 :1010 :1498, 9.00 :50 :974 :977 :986 :989 :992 :995 :998 :1002 :1511)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DETAILMONITOR_MAPEDITORaddonaddonsallsaved Persistent map editor settings, kept across UI reloads and game starts.

table addon addons only all saved: userdata declaration: from source

__CORE_DETAILMONITOR_MAPEDITOR = {}

Persistent map editor settings, kept across UI reloads and game starts. Being a saved variable it already holds the previous value when menu_mapeditor.lua runs, so that file creates it with the X = X or { ... } idiom rather than a plain assignment.

Kindtable
__CORE_DETAILMONITOR_MAPEDITORopacity number - Map-editor overlay opacity, 0-100.
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_detailmonitor/menu_mapeditor.lua - table assignment (8.00 :173, 9.00 :166)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DETAILMONITOR_MAPFILTERaddonaddonsallsaved Persistent map filter settings, the ones kept across savegames.

table addon addons only all saved: userdata declaration: from source

__CORE_DETAILMONITOR_MAPFILTER = {}

Persistent map filter settings, the ones kept across savegames. Keyed by filter name - layer_trade, layer_fight, trade_price_maxprice, think_alert and so on - plus a version field the menu migrates on load.

Kindtable
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_detailmonitor/menu_map.lua - table assignment (8.00 :1737, 9.00 :1865)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DETAILMONITOR_MAPFILTER_SAVEaddonaddonsallsaved Per-savegame map filter settings.

table addon addons only all saved: savegame declaration: from source

__CORE_DETAILMONITOR_MAPFILTER_SAVE = {}

Per-savegame map filter settings. Unlike __CORE_DETAILMONITOR_MAPFILTER this one travels with the save rather than the player profile. Holds the trade_storage_* toggles and a version field.

Kindtable
Saved variablesavegame
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in the savegame, so it travels with the save.
Originaddon
ui/addons/ego_detailmonitor/menu_map.lua - table assignment (8.00 :1817, 9.00 :1949)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DETAILMONITOR_SHIPBUILDaddonaddonsallsaved Persistent ship configuration menu settings, kept across UI reloads and game starts.

table addon addons only all saved: userdata declaration: from source

__CORE_DETAILMONITOR_SHIPBUILD = {}

Persistent ship configuration menu settings, kept across UI reloads and game starts. Being a saved variable it already holds the previous value when menu_ship_configuration.lua runs, so that file creates it with the X = X or { ... } idiom rather than a plain assignment.

Kindtable
__CORE_DETAILMONITOR_SHIPBUILDversion number - Data version.
showStats2 string - Stats panel mode, e.g. limited.
showStatsPaintMod2 string - Paint-mod stats mode, e.g. hidden.
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_detailmonitor/menu_ship_configuration.lua - table assignment (8.00 :846, 9.00 :894)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DETAILMONITOR_STATIONBUILDaddonaddonsallsaved Persistent station build menu settings, kept across UI reloads and game starts.

table addon addons only all saved: userdata declaration: from source

__CORE_DETAILMONITOR_STATIONBUILD = {}

Persistent station build menu settings, kept across UI reloads and game starts. Being a saved variable it already holds the previous value when menu_station_configuration.lua runs, so that file creates it with the X = X or { ... } idiom rather than a plain assignment.

Kindtable
__CORE_DETAILMONITOR_STATIONBUILDversion number - Data version.
discreteanglestep number - Rotation snap in degrees.
moduleoverlap boolean - Whether module overlap is allowed.
environment boolean - Whether the environment is shown.
gizmo boolean - Whether the placement gizmo is shown.
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_detailmonitor/menu_station_configuration.lua - table assignment (8.00 :378, 9.00 :503)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_DETAILMONITOR_USERQUESTIONaddonaddonsallsaved Persistent "do not ask again" answers for user questions.

table addon addons only all saved: userdata declaration: from source

__CORE_DETAILMONITOR_USERQUESTION = {}

Persistent "do not ask again" answers for user questions. Carries a version field plus one entry per remembered answer; ego_gameoptions resets entries when the player clears them.

Kindtable
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_detailmonitor/menu_followcamera.lua - table assignment (8.00 :40, 9.00 :34)
ui/addons/ego_detailmonitor/menu_userquestion.lua - table assignment (8.00 :51, 9.00 :51)
ui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :8406, 9.00 :8345)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_GAMEOPTIONS_PRIVACYPOLICYaddonaddons≥ 9.00saved Whether the player has accepted the online privacy policy.

boolean addon addons only ≥ 9.00 saved: userdata declaration: from source

__CORE_GAMEOPTIONS_PRIVACYPOLICY = false

Whether the player has accepted the online privacy policy. Reset to false on logout.

Kindboolean
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :3435 :3487 :5234, 9.00 :3341 :3395 :5140)
Availabilityaddons only
no vanilla call site in either version
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_GAMEOPTIONS_RESTOREINFOaddonaddonsallsaved Where the options menu was when it was last closed, so it can reopen there.

table addon addons only all saved: userdata declaration: from source

__CORE_GAMEOPTIONS_RESTOREINFO = {}

Where the options menu was when it was last closed, so it can reopen there.

Kindtable
__CORE_GAMEOPTIONS_RESTOREINFOhistory table - The menu's page history.
optionParameter any - Parameter of the option to restore.
returnhistory any - Cleared on init.
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :418, 9.00 :420)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_GAMEOPTIONS_VENTURECONFIGaddonaddonsallsaved Cached venture configuration flags, refreshed when the online client starts.

table addon addons only all saved: userdata declaration: from source

__CORE_GAMEOPTIONS_VENTURECONFIG = {}

Cached venture configuration flags, refreshed when the online client starts. Each field mirrors OnlineGetVentureConfig(key).

Kindtable
__CORE_GAMEOPTIONS_VENTURECONFIGallow_validation any
allow_update any
allow_update_once any
Saved variableuserdata
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in userdata.xml, so it is per player profile, not per save.
Originaddon
ui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :420 :3029, 9.00 :422 :2933)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_HELPTEXT_DISPLAYEDHINTSaddonaddonsallsaved Which hints the player has already been shown, so none is offered twice.

table addon addons only all saved: savegame declaration: from source

__CORE_HELPTEXT_DISPLAYEDHINTS = {}

Which hints the player has already been shown, so none is offered twice. It is a **savegame** variable rather than a userdata one - the record travels with the save, so a new game starts with the hints fresh. helptext.lua creates it with the X = X or { ... } idiom, because the engine has already restored it by the time that file runs.

Kindtable
Saved variablesavegame
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in the savegame, so it travels with the save.
Originaddon
ui/addons/ego_helptext/helptext.lua - table assignment (8.00 :38, 9.00 :37)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__CORE_HELPTEXT_QUEUEaddonaddonsallsaved Hints queued for display.

table addon addons only all saved: savegame declaration: from source

__CORE_HELPTEXT_QUEUE = {}

Hints queued for display. Carries a version field the addon migrates.

Kindtable
Saved variablesavegame
Declared as a <savedvariable> in the addon’s ui.xml, so the engine restores it before that file runs. Stored in the savegame, so it travels with the save.
Originaddon
ui/addons/ego_helptext/helptext.lua - table assignment (8.00 :39 :234, 9.00 :38 :233)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
__EGO_GLOBALSwidgetaddonsallThe registry of globals that SetEGOGlobals copies into a Lua environment.

table widget_fullscreen addons only all declaration: from source

__EGO_GLOBALS = {}

The registry of globals that SetEGOGlobals copies into a Lua environment. MakeGlobalAvailable(name) stores _G[name] here; AddGlobalAccess(name, impl) assigns _G[name] and then registers it. Adding a name here is what makes it reachable from the addons Lua environment - see SetEGOGlobals.

Kindtable
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - table assignment (8.00 :346, 9.00 :430)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
ActivateEditBoxwidgetaddonsallActivates a specific edit box widget, allowing it to receive text input.

function widget_fullscreen addons only all signature: from source

ActivateEditBox(editBoxID, cursorPos, shiftStartPos)

Activates a specific edit box widget, allowing it to receive text input.

Kindfunction
ParameterseditBoxID any - The edit box widget to activate.
cursorPos number optional - Cursor position to place the caret at.
shiftStartPos number optional - Selection anchor position.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.activateEditBox (8.00 :17845, 9.00 :18834)
maps to widgetSystem.activateEditBox
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
ActivateSliderCellInputwidgetaddonsallActivates the input field of a slider cell, typically for manual value entry.

function widget_fullscreen addons only all signature: from source

ActivateSliderCellInput(sliderCell)

Activates the input field of a slider cell, typically for manual value entry.

Kindfunction
ParameterssliderCell table - The slider cell widget to activate.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.activateSliderCellInput (8.00 :17866, 9.00 :18856)
maps to widgetSystem.activateSliderCellInput
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
AddAmmoengineaddonsallAdds a specified amount of an ammo ware to a component (e.g., a ship or station).

function engine addons only all signature: confirmed

AddAmmo(componentID, wareID, amount, checkOnly, arg5)

Adds a specified amount of an ammo ware to a component (e.g., a ship or station).

Kindfunction
ParameterscomponentID any - The ID of the component to add ammo to.
wareID string - The ID of the ammo ware.
amount number - The integer amount of ammo to add.
checkOnly boolean optional - (inferred) Return how much would fit without adding it.
arg5 any optional - Unidentified in 9.00 vanilla usage; always true.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 4-5 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:106, ui/addons/ego_detailmonitor/menu_map.lua:4636, ui/addons/ego_detailmonitor/menu_playerinfo.lua:735
AddCargoengineaddonsallAdds a specified amount of a ware to a component's cargo bay.

function engine addons only all signature: confirmed

AddCargo(componentID, wareID, amount, arg4)

Adds a specified amount of a ware to a component's cargo bay.

Kindfunction
ParameterscomponentID any - The ID of the component to add cargo to.
wareID string - The ID of the ware.
amount number - The integer amount of the ware to add; may be negative to remove.
arg4 any optional - Unidentified in 9.00 vanilla usage; always true.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4606
AddGlobalAccesswidgetaddonsallExposes a Lua function to the global scope, making it accessible by its string name.

function widget_fullscreen addons only all signature: from source

AddGlobalAccess(name, func)

Exposes a Lua function to the global scope, making it accessible by its string name.

Kindfunction
Parametersname string - The name to expose the function under.
func function - The Lua function to expose.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :352, 9.00 :436)
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
AddInventoryengineaddonsallAdds a ware to an inventory.

function engine addons only all signature: confirmed

AddInventory(componentID, wareID, amount, arg4)

Adds a ware to an inventory. The first argument is the component that receives it, and nil means the player - which is what every vanilla call passes, whether crafting is depositing what it made or the SETA cheat is handing over inv_timewarp. Vanilla passes three arguments or four, so the last one is optional; what it selects is not identifiable from the call sites.

Kindfunction
ParameterscomponentID any - The ID of the component receiving the items; nil for the player.
wareID any - The ID of the ware to add.
amount number - The amount to add.
arg4 any optional - Unidentified in 9.00 vanilla usage; always true.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 3-4 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:115, ui/addons/ego_detailmonitor/menu_map.lua:19163, ui/addons/ego_detailmonitor/menu_playerinfo.lua:744
AddKnownItemengineaddonsallUnlocks a specific encyclopedia entry or other knowledge item for the player.

function engine addons only all signature: confirmed

AddKnownItem(category, itemID)

Unlocks a specific encyclopedia entry or other knowledge item for the player.

Kindfunction
Parameterscategory string - The category of the item (e.g., "wares", "factions").
itemID string - The ID of the item to unlock.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 70 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:300, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1856, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:566, ui/addons/ego_detailmonitor/menu_map.lua:9227
AddLicenceengineaddonsallGrants a licence to a faction.

function engine addons only all signature: confirmed

AddLicence(factionID, licenceID, otherFactionID)

Grants a licence to a faction. The three arguments are the faction that receives it - "player" in the only vanilla call - the licence type, and the faction the licence is with.

Kindfunction
ParametersfactionID string - The ID of the faction receiving the licence.
licenceID string - The ID of the licence to grant.
otherFactionID string optional - The faction the licence applies to.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_trader_blueprintsorlicences.lua:600
AddLogbookEntryengineaddonsallWrites an entry into the player's logbook under a category.

function engine addons only all signature: confirmed

AddLogbookEntry(category, title, text, ...)

Writes an entry into the player's logbook under a category. Vanilla passes five arguments where the declaration names three plus a vararg tail, so the entry carries more than a title and a text - the help text menu logs a tip with nil for the text and a string in the fifth position.

Kindfunction
Parameterscategory string - The logbook category (e.g., "general", "upkeep").
title string - The title of the log entry.
text string - The main content of the log entry.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 5 arguments
Seen at ui/addons/ego_helptext/helptext.lua:152
AddMoneyengineaddonsallCredits or debits a **container's** account by amount, and returns the amount moved.

function engine addons only all signature: confirmed probed: 8.00, 9.00

AddMoney(containerID, amount)

Credits or debits a **container's** account by amount, and returns the amount moved. A negative amount takes it back. No vanilla code calls it - the menus move money with TransferPlayerMoneyTo and TransferMoneyToPlayer, which name a counterparty. **It creates money rather than transferring it.** Across a +1000 / -1000 pair on the player HQ the station account went 330795062 -> 330796062 -> 330795062 while the player purse stayed at 23844772840 at all three readings. Nothing is debited on the other side, which makes this a cheat-grade call, not a trade primitive. **The player is not a container.** C.GetPlayerID() resolves to class player, IsComponentClass(player, "container") is false, and both AddMoney(player, ...) and GetAccountData(player, "money") answer Component '...' is not of class container. The player's own money is a separate mechanism, reached through GetPlayerMoney and TransferMoneyToPlayer. An entity is refused the same way, so a pilot or a station manager is not the argument either.

Kindfunction
ParameterscontainerID any - The container whose account to change, as a 64-bit component ID.
amount number - The amount to add. Negative takes it away.
Returnstransferred number - The amount actually moved. Nothing is returned when the call is refused.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - nine rungs over a station, a ship, a derived entity and the player, each a +1000 / -1000 pair with the account read back either side; arity stated by the engine in words. 9.00 repeated the station and the ship: the container's account moves by the amount, the player purse does not move at any of the three readings, and the player is refused as not a container
AddTradeToShipQueueengineaddonsallQueues a trade offer on a ship.

function engine addons only all signature: confirmed

AddTradeToShipQueue(tradeOfferID, shipID, amount, immediate, fromTrader)

Queues a trade offer on a ship. amount is always positive - the map menu negates its own signed amount before passing it - and immediate puts the trade at the front rather than the back. Vanilla passes four arguments from the map and five from the interact menu, so the last one is optional.

Kindfunction
ParameterstradeOfferID any - The ID of the trade offer.
shipID any - The ID of the ship performing the trade.
amount number - The amount of the ware to trade.
immediate boolean optional - Whether the trade should be executed immediately.
fromTrader boolean optional - (inferred) Whether the trade is initiated by a trader.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 4-5 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3637, ui/addons/ego_interactmenu/menu_interactmenu.lua:985
AddUITriggeredEventengineallallRaises a UI event that the game and any listening Mission Director code can react to - the menu name, the event name, and optionally more values.

function engine all (addons + core) all signature: confirmed

AddUITriggeredEvent(menuName, eventName, ...)

Raises a UI event that the game and any listening Mission Director code can react to - the menu name, the event name, and optionally more values. Vanilla uses it to announce what the player is doing (AddUITriggeredEvent(menu.name, mode, "on")), and it is the usual way a mod tells MD that its own UI did something. It became available in the core Lua environment as well in 9.00.

Kindfunction
ParametersmenuName string - The name of the menu or UI area where the event occurred.
eventName string - The name of the event.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons + core
Vanilla usageconfirmed - 122 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:381, ui/addons/ego_detailmonitor/menu_diplomacy.lua:662, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:1033, ui/addons/ego_detailmonitor/menu_help.lua:112
AddUnitsengineaddonsallAdds units to a defensible - amount of unitMacro, the drone and police ships its unit storage holds - or removes that many when amount is negative.

function engine addons only all signature: confirmed probed: 8.00, 9.00

AddUnits(defensibleID, unitMacro, amount, unavailable)

Adds units to a defensible - amount of unitMacro, the drone and police ships its unit storage holds - or removes that many when amount is negative. Arity 4, returns nothing. MD's <add_units> and <remove_units> (common.xsd:20866) are the same operation from the script side, and their attributes name these arguments one for one. Argument 1 must be a **defensible** - the engine says so itself, answering Invalid argument #1 <defensible> (got cdata, expected component ID) to anything else, the player person included. **Argument 2 is a macro, never a category.** The MD action takes either a macro or a category plus mk; the Lua form has only the macro half, and "transport" is refused with the same Cannot find XML file component macro '...' in index 'index\macros' a nonsense string gets. A bad macro therefore names itself rather than failing silently. **It clamps at units.maxcount and fills partially rather than refusing.** Asked for 500 with 87 free, it added 87 and stopped; vanilla's hand-computed maxcount - count at story_paranid.xml:2885 is belt and braces rather than necessity. **unavailable puts the added units in the unavailable pool**, which C.GetNumUnavailableUnits reads back and MD states as units.count - availableunits.count. A negative amount removes from whichever pool the flag names, so the call undoes itself in each pool separately. **A non-unit macro is accepted as well and lands in its own storage** - a missile, torpedo or mine goes to missile or deployable storage, never to unit storage - **but how much is added still depends on the unit storage's free space.** At units.free 0 the call adds nothing whatever the macro is, so the free-space check gates the whole call before anything is routed. C.IsUnitMacroCompatible does not predict either behaviour: it answered false for all three consumable macros the engine then accepted. The units it adds are ships - libraries/loadoutrules.xml declares every <unit> macro as a ship_* macro. **Marines are not units and cannot be added from Lua at all**; mines and satellites are <deployable>, a separate enum reached through ammo storage.

Kindfunction
ParametersdefensibleID any - The defensible whose unit storage is written. Not any component.
unitMacro string - A unit macro name. A category name is refused; another macro type is accepted and routed to its own storage.
amount number - How many to add; a negative amount removes. Clamped to the unit storage's free space.
unavailable boolean - Whether the units are added to, or removed from, the unavailable pool.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - three ships, both storages read back per macro either side of every call; the amount, the unavailable flag, the consumable path and the fill-to-maxcount clamp are 9.00 measurements, where 8.00 only carried them
AdjustMultilineStringengineaddonsallAdjusts a multi-line string, likely for formatting or word wrapping.

function engine addons only all signature: confirmed

AdjustMultilineString(text)

Adjusts a multi-line string, likely for formatting or word wrapping.

Kindfunction
Parameterstext string - The string to adjust.
Returnsstring - The adjusted string.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6285
AIRangeUpdatedengineaddonsallTells a controllable's subordinates that their operational range setting has changed.

function engine addons only all signature: confirmed probed: 8.00, 9.00

AIRangeUpdated(controllable, entity)

Tells a controllable's subordinates that their operational range setting has changed. The name is past tense and it is exact: this **notifies, it does not set**. It raises the object signal range_setting_updated on every subordinate of argument 1 and carries no value with it, so the range itself has to be in place before the call. The setting lives on the commander's control entity as the blackboard variable $config_subordinate_range, and **nothing in vanilla ever writes it** - twelve read sites in 9.00, no writer, in neither MD nor Lua. It is a modder's hook, and this function is the paired doorbell for it. A range is a **sector, cluster or zone**, or one of the keywords 'cluster', 'sector', 'zone' (aiscripts/order.mining.routine.xml:534-560) - never a number. **Measured, 8.00.** The subordinates are signalled and the object in argument 1 is not; a controllable with no subordinates is a silent no-op rather than an error; the raise is **synchronous**, so a listener has run before the call returns. param2 is **always null**, measured with $config_subordinate_range deliberately seeded on the commander entity. So for vanilla's two listeners - order.mining.routine.xml:99 and order.trade.routine.xml:127, both if @event.param2 then event.param2 else …commanderentity.$config_subordinate_range - a signal raised from Lua can only ever take the **else** branch. The if half is there for MD raisers, which do supply a param2. **Calling this on a live mining or trade subordinate sets its $range to null** whenever the commander entity's variable is unset, which is its shipped state. That is recoverable rather than destructive - the order's Ranges block logs range is null. attempting to recover. and falls back to jobmainsector, then sector - but set the variable first. Argument 2 must be class entity and is otherwise **inert**: a subordinate's control entity and the player entity both produce the same signalled set and the same null payload.

Kindfunction
Parameterscontrollable any - The controllable whose subordinates are signalled.
entity any - A control entity. Mandatory, and not read.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - witnessed with an MD group listener, against a positive control; the subordinates-but-not-the-commander asymmetry reproduced on both versions
AKDataPortengineallallThe Anark data port, the runtime's data-table interface.

userdata engine all (addons + core) all usage: unverified

AKDataPort = nil

The Anark data port, the runtime's data-table interface. The getTable/getRow/getColumn/getValue/setValue family works against it. No vanilla code touches it.

Kinduserdata
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla reference
AKGameplanengineallallThe Anark gameplan object, the runtime's presentation state machine.

userdata engine all (addons + core) all usage: unverified

AKGameplan = nil

The Anark gameplan object, the runtime's presentation state machine. fireGameplanEvent raises events on it. No vanilla code touches it.

Kinduserdata
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla reference
AttackEnemySettingChangedengineaddonsallRaises the object signal update config on a defence NPC entity.

function engine addons only all signature: confirmed probed: 8.00, 9.00

AttackEnemySettingChanged(defencenpcID)

Raises the object signal update config on a defence NPC entity. **That is the whole effect**, measured: the signal goes out on every call, carries no param2 or param3, and reaches the entity passed in and nothing else - not its assignedcontrolled, which was in the same listening group and never fired. **No vanilla script listens for update config**, so the only consumer is a mod's own event_object_signalled cue. A station's defence manager, fight.attack.object.station.xml, does listen on itself - for 'reset', which this call never raises. **Argument 1 is checked for the class entity and nothing narrower.** GetComponentData(obj, "defencenpc") is the documented source and its computer entity is accepted; so is an unrelated npc, silently. A controllable is refused with Component '<name>' is not of class entity and a C.GetPlayerID cdata with Invalid argument #1 <defencenpc> (got cdata, expected component ID) - the engine's own parameter name. Both refusals print while pcall returns OK. **Takes one argument, not two.** The raise is unaffected by the NPC blackboard variable $config_attackenemies that helper.lua reads to pick the displayed command text: calls with it absent and set to true were identical. Note GetControlEntity is the same entity as defencenpc on a station but the pilot on a ship, so it is not a substitute for the lookup.

Kindfunction
ParametersdefencenpcID any - The defence NPC entity to signal. Any entity is accepted; a controllable is not.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - a player station and a capital ship, an MD group listener with no param filter as the witness; 'update config' raised on the defence entity on both versions
calculateBoundingBoxengineallallComputes the bounding box of a scene element.

function engine all (addons + core) all signature: unverified

calculateBoundingBox(element, ...)

Computes the bounding box of a scene element. Sibling of calculateGlobalTransform. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnsbox any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
calculateGlobalOpacityengineallallReturns a scene element's opacity with every ancestor's opacity folded in.

function engine all (addons + core) all signature: unverified

calculateGlobalOpacity(element)

Returns a scene element's opacity with every ancestor's opacity folded in. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnsopacity number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
calculateGlobalTransformengineallallWrites an element's global transform into a matrix you pass in - it fills the matrix rather than returning one.

function engine all (addons + core) all signature: confirmed

calculateGlobalTransform(element, matrix)

Writes an element's global transform into a matrix you pass in - it fills the matrix rather than returning one. billboard.lua uses it on the render camera and then reads the translation out of _41, _42, _43 to find where the camera actually is.

Kindfunction
Parameterselement any - The scene element.
matrix any - The matrix to populate.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 8 vanilla call sites, 2 arguments
Seen at ui/core/lua/billboard.lua:107
CallEventScriptswidgetaddonsallRuns the handlers registered for a named event, with one argument.

function widget_fullscreen addons only all signature: from source

CallEventScripts(eventName, argument1)

Runs the handlers registered for a named event, with one argument. widget_fullscreen.lua calls it to dispatch an event to everything that registered through RegisterEvent.

Kindfunction
ParameterseventName string - The name of the event to trigger.
argument1 any - An argument to pass to the event scripts.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :18003, 9.00 :18996)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :18017, 9.00 :19010)
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CallHotkeyScriptswidgetaddonsallRuns the handlers registered for a hotkey action.

function widget_fullscreen addons only all signature: from source

CallHotkeyScripts(action)

Runs the handlers registered for a hotkey action. No vanilla code calls it: the engine is what raises hotkeys, and menu code registers into it with SetScript("onHotkey", ...).

Kindfunction
Parametersaction string - The hotkey action that was triggered.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :18019, 9.00 :19012)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :18028, 9.00 :19021)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CallTabScrollScriptswidgetaddonsallRuns the handlers registered for tab scrolling, in a direction.

function widget_fullscreen addons only all signature: from source

CallTabScrollScripts(direction)

Runs the handlers registered for tab scrolling, in a direction. widget_fullscreen.lua calls it from its own left and right handlers, and menu code registers into it with Helper.setTabScrollCallback.

Kindfunction
Parametersdirection string - The direction of the scroll ("left" or "right").
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :18030, 9.00 :19023)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :18039, 9.00 :19032)
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CallUpdateScriptswidgetaddonsallCalls all registered update scripts, typically on each frame.

function widget_fullscreen addons only all signature: from source

CallUpdateScripts()

Calls all registered update scripts, typically on each frame.

Kindfunction
Parametersnone documented
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :18041, 9.00 :19034)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :18050, 9.00 :19043)
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CallWidgetEventScriptswidgetaddonsallDispatches an event to a specific widget's registered event handlers.

function widget_fullscreen addons only all signature: from source

CallWidgetEventScripts(widgetID, eventName, ...)

Dispatches an event to a specific widget's registered event handlers.

Kindfunction
ParameterswidgetID table - The widget to which the event is sent.
eventName string - The name of the event (e.g., "onClick", "onTextChanged").
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :18052, 9.00 :19045)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :18071, 9.00 :19064)
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CanBeSubordinateOfengineaddonsallAnswers whether **this kind of thing can command that kind of thing**.

function engine addons only all signature: confirmed probed: 8.00, 9.00

CanBeSubordinateOf(subordinateID, commanderID)

Answers whether **this kind of thing can command that kind of thing**. The argument order is proved by reversal rather than inferred: the same station and ship gave false as (station, ship) and true as (ship, station), and only the declared reading fits both, since a ship can be subordinate to a station and a station can be subordinate to nothing. Vanilla agrees twice - libraries/assignments.xml gives defence, mining, trade and supplyfleet a <station> element beside <ship>, and the MD analogue canuseassignment.{$assignment}.{$controllable} is a property *on the subordinate* taking the commander as its parameter. **It is a class-level compatibility test, not an assignability test, and a mod must not gate a UI action on it alone.** It ignores ownership - a scavenger-owned Manticore returned true against a player Erlking - and it ignores identity, returning true for a ship paired with itself. It looks at neither faction relations, distance nor current assignment. The MD canuseassignment takes an actual $assignment and is the stricter question.

Kindfunction
ParameterssubordinateID any - The controllable that would be subordinate.
commanderID any - The controllable that would command it.
ReturnscanBeSubordinate boolean - True when the two classes are compatible - not that the assignment is allowed.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - four pairs including the same two objects in both orders, arity 2; five more pairs in both orders on 9.00 against one reference ship, where every station answered false as the subordinate and true as the commander, and ship against ship was true both ways
CancelConversationengineaddonsallCancels the running player conversation.

function engine addons only all signature: confirmed probed: 8.00, 9.00

CancelConversation()

Cancels the running player conversation. No vanilla code calls it; the menus end a conversation by closing themselves, and UnsuspendConversation is what they do call around one. **It reports whether there was anything to cancel.** Every call measured was made with no conversation running and returned false, with the engine writing [ConversationManager::CancelConversation] There is no conversation beside it. The positive case has not been measured, so that true means "cancelled" is the reading the engine's own line implies rather than one taken.

Kindfunction
Parametersnone documented
Returnscancelled boolean - false when there was no conversation to cancel.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions with no conversation running: false and the same engine line either side. No argument is required; the positive case is unmeasured.
CancelEditBoxInputwidgetaddonsallCancels the current input action in an edit box, reverting any changes.

function widget_fullscreen addons only all signature: from source

CancelEditBoxInput(editBoxID)

Cancels the current input action in an edit box, reverting any changes.

Kindfunction
ParameterseditBoxID table - The edit box widget to cancel input for.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.cancelEditBoxInput (8.00 :17844, 9.00 :18833)
maps to widgetSystem.cancelEditBoxInput
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CanTradeWithengineaddonsallChecks if a trade is possible between a trade offer and a ship.

function engine addons only all signature: confirmed

CanTradeWith(tradeOfferID, shipID, amount, isMultiTrade)

Checks if a trade is possible between a trade offer and a ship.

Kindfunction
ParameterstradeOfferID any - The ID of the trade offer.
shipID any - The ID of the ship.
amount number - The amount to trade.
isMultiTrade boolean optional - (inferred) Whether this is part of a multi-trade sequence.
Returnsboolean - True if the trade is possible.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 3-4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21382, ui/addons/ego_detailmonitor/menu_map.lua:21403
CanViewLiveDataengineaddonsallChecks if the player has the necessary access to view live data for a component (e.g., video feed from a station).

function engine addons only all signature: confirmed

CanViewLiveData(componentID)

Checks if the player has the necessary access to view live data for a component (e.g., video feed from a station).

Kindfunction
ParameterscomponentID any - The ID of the component.
Returnsboolean - True if live data can be viewed.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6210
CheckInputProfileRegressionengineaddonsallChecks for regressions or issues in the current input profile settings.

function engine addons only all signature: confirmed

CheckInputProfileRegression()

Checks for regressions or issues in the current input profile settings.

Kindfunction
Parametersnone documented
Returnsboolean - True if a regression is detected.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:5961
CheckSuitableTransportTypeengineaddonsallChecks if a component has a suitable transport type for a given ware (e.g., solid, liquid, container).

function engine addons only all signature: confirmed

CheckSuitableTransportType(componentID, wareID)

Checks if a component has a suitable transport type for a given ware (e.g., solid, liquid, container).

Kindfunction
ParameterscomponentID any - The ID of the component (e.g., a ship or station).
wareID string - The ID of the ware to check.
Returnsboolean - True if the component can transport the ware.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21868, ui/addons/ego_detailmonitor/menu_station_overview.lua:497, ui/addons/ego_detailmonitor/menu_terraforming.lua:639
ClaimVentureRewardsengineaddonsallClaims the rewards of completed ventures.

function engine addons only all signature: unverified

ClaimVentureRewards()

Claims the rewards of completed ventures. No vanilla code calls it - the map menu clears them with OnlineClearLogbookRewards instead.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
ClearContainerStockLimitOverrideengineaddonsallClears a previously set stock limit override for a specific ware in a container.

function engine addons only all signature: confirmed

ClearContainerStockLimitOverride(containerID, wareID)

Clears a previously set stock limit override for a specific ware in a container.

Kindfunction
ParameterscontainerID any - The ID of the container.
wareID string - The ID of the ware.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_station_overview.lua:2423, ui/addons/ego_detailmonitorhelper/helper.lua:12448
ClearContainerWarePriceOverrideengineaddonsallClears a previously set ware price override for a specific ware in a container.

function engine addons only all signature: confirmed

ClearContainerWarePriceOverride(containerID, wareID, isBuyOverride)

Clears a previously set ware price override for a specific ware in a container.

Kindfunction
ParameterscontainerID any - The ID of the container.
wareID string - The ID of the ware.
isBuyOverride boolean - True to clear the buy price, false to clear the sell price.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:5050, ui/addons/ego_detailmonitor/menu_station_overview.lua:2417, ui/addons/ego_detailmonitorhelper/helper.lua:12536
ClearErrorsengineallallClears the error log.

function engine all (addons + core) all signature: unverified

ClearErrors()

Clears the error log. No vanilla code calls it, though GetNumErrors and GetError read the same log.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
ClearLogbookengineaddonsallClears logbook entries of one category, or of every category when the category is nil.

function engine addons only all signature: confirmed

ClearLogbook(age, category)

Clears logbook entries of one category, or of every category when the category is nil. The first argument is an age and vanilla always passes 0, which clears them all regardless of when they were written.

Kindfunction
Parametersage number - (inferred) The age of entries to clear (e.g., 0 for all).
category string|nil - The category to clear, or nil for all categories.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:847
ClearTradeQueueengineaddonsallClears a ship's queued trades: every entry of the queue GetTradeShipData reports, which is the only view of it Lua has.

function engine addons only all signature: confirmed probed: 8.00, 9.00

ClearTradeQueue(shipID)

Clears a ship's queued trades: every entry of the queue GetTradeShipData reports, which is the only view of it Lua has. Returns nothing. No vanilla code calls it; the map menu removes trades one at a time instead. **The queue is empty by the next line.** Measured on a player L trader carrying two queued trades, the count read 0 immediately after the call - so a caller can clear and re-read in the same frame. The community reference warns the clear is not instantaneous, especially with a trade already in progress; that is untested rather than contradicted here, since a trade the ship has already begun is not the same thing as the queue behind it. Only a ship has been tested. The community reference types the argument containerID, which would take a station as well, and nothing here confirms or denies that.

Kindfunction
ParametersshipID any - The ship whose trade queue should be cleared.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - read back through GetTradeShipData, before and twice after; 9.00 repeated it on a second L trader with two trades queued and read 0 on both reads after the call
ClipLineengineaddonsallClips a line to a rectangle and returns the clipped endpoints.

function engine addons only all signature: confirmed

ClipLine(x0, y0, x1, y1, xmin, ymin, xmax, ymax)

Clips a line to a rectangle and returns the clipped endpoints. It returns nothing when the line falls entirely outside, which is what widget_fullscreen.lua tests for - if not x0 then - rather than clamping the coordinates itself.

Kindfunction
Parametersx0 number - The starting x-coordinate of the line.
y0 number - The starting y-coordinate of the line.
x1 number - The ending x-coordinate of the line.
y1 number - The ending y-coordinate of the line.
xmin number - The minimum x-coordinate of the boundary.
ymin number - The minimum y-coordinate of the boundary.
xmax number - The maximum x-coordinate of the boundary.
ymax number - The maximum y-coordinate of the boundary.
Returnsnumber, number, number, number - The clipped line coordinates (x0, y0, x1, y1).
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 8 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:7105
cloneengineallallClones an Anark scene element under a new name and returns the copy.

function engine all (addons + core) all signature: confirmed

clone(master, name)

Clones an Anark scene element under a new name and returns the copy. It is how core HUD code builds a repeated element: one master in the presentation, then a clone per item - "button2", "missilelockclone3" - each named so it can be found again.

Kindfunction
Parametersmaster any - The element to clone.
name string optional - Name for the clone.
Returnselement any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 48 vanilla call sites, 1-2 arguments
Seen at ui/core/lua/compass.lua:164, ui/core/lua/loading.lua:204, ui/core/lua/overlay.lua:261, ui/core/lua/targetsystem.lua:925
CloseDropDownOptionswidgetaddonsallCloses an open dropdown's option list.

function widget_fullscreen addons only all signature: from source

CloseDropDownOptions(dropdownID)

Closes an open dropdown's option list. helper.lua reaches the dropdown widget with GetCellContent first, so what it takes is the widget, not a table position.

Kindfunction
ParametersdropdownID table - The dropdown widget to close.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.closeDropDownOptions (8.00 :17859, 9.00 :18848)
maps to widgetSystem.closeDropDownOptions
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CloseFrameengineaddonsallCloses one frame of the current view.

function engine addons only all signature: confirmed

CloseFrame(frameID, hasPlayerControls, startAnimation, useMiniWidgetSystem, keepHUDVisible, keepCrosshairVisible, showTickerPermanently, blurBackground, usePanelMode)

Closes one frame of the current view. The eight flags after the frame repeat what the view was created with - player controls, animation, mini widget system, HUD, crosshair, ticker, blur, panel mode - because closing a frame re-evaluates all of them for what stays on screen.

Kindfunction
ParametersframeID any - The ID of the frame to close.
hasPlayerControls boolean
startAnimation boolean
useMiniWidgetSystem boolean
keepHUDVisible boolean
keepCrosshairVisible boolean
showTickerPermanently boolean
blurBackground boolean optional
usePanelMode boolean optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 9 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:74
CloseMenusUponMouseClickengineallallCloses any open menus, as a click outside them would.

function engine all (addons + core) all signature: confirmed

CloseMenusUponMouseClick()

Closes any open menus, as a click outside them would. The core target system calls it when the player clicks in space to pick a target, so selecting something out there also dismisses what was on screen.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/core/lua/targetsystem.lua:1276
ColorwidgetallallThe global colour lookup table.

table widget_fullscreen all (addons + core) all declaration: from source

Color = {}

The global colour lookup table. Filled from the game's colour definitions and registered with MakeGlobalAvailable. Index it by colour name - Color["text_warning"] - for a { r, g, b, a, glow } table. An unknown name logs a DebugError with a traceback and returns magenta, so a typo shows up on screen instead of erroring.

Kindtable
Originwidget_fullscreen
ui/core/lua/compass.lua - table assignment (8.00 :58, 9.00 :57)
ui/core/lua/crosshair handling.lua - table assignment (8.00 :150, 9.00 :151)
ui/core/lua/firstperson_crosshair.lua - table assignment (8.00 :60, 9.00 :59)
ui/core/lua/loading.lua - table assignment (8.00 :66, 9.00 :62)
ui/core/lua/monitors.lua - table assignment (8.00 :129, 9.00 :129)
ui/core/lua/targetsystem.lua - table assignment (8.00 :219, 9.00 :227)
ui/widget/lua/widget_fullscreen.lua - table assignment (8.00 :778, 9.00 :884)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :779, 9.00 :885)
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
ColorTextwidgetaddonsallThe global lookup of colour codes for use inside formatted text.

table widget_fullscreen addons only all declaration: from source

ColorText = {}

The global lookup of colour codes for use inside formatted text. Registered with MakeGlobalAvailable. Index it by colour name to get the escape prefix to concatenate in front of the text; an unknown name logs a DebugError with a traceback and returns an empty string. Available in the addons Lua environment only.

Kindtable
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - table assignment (8.00 :780, 9.00 :886)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :781, 9.00 :887)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CompareJumpRouteengineaddonsallReports whether the first route is **strictly shorter** than the second.

function engine addons only all signature: confirmed probed: 8.00, 9.00

CompareJumpRoute(numgates, numjumps, othernumgates, othernumjumps)

Reports whether the first route is **strictly shorter** than the second. Takes four plain numbers, not two routes: the gate transitions and jumps of one route, then of the other, which is exactly the pair FindJumpRoute returns for each. No game object is involved. The comparison is strict. **Equal routes return false**, so this is a < and not a <=, and it cannot be used to test two routes for being the same - which is what this row claimed until it was measured, because every call ever made compared a route with its own reverse and false was the only answer it could give. **A jump counts for less than a gate transition.** One jump against one gate returns true, one gate against one jump returns false, and the same asymmetry holds at two of each - so the two halves are not simply added together. An empty route beats any non-empty one, and two empty routes return false like any other tie.

Kindfunction
Parametersnumgates number - Gate transitions of the first route.
numjumps number - Jumps of the first route.
othernumgates number - Gate transitions of the second route.
othernumjumps number - Jumps of the second route.
Returnsshorter boolean - True when the first route is strictly shorter than the second.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - a ten-case truth table over literal numbers, both orders of every pair, every case answering the same either side
configwidgetaddonsallThe widget system's configuration table.

table widget_fullscreen addons only all declaration: from source

config = {}

The widget system's configuration table. Created as "config = config or {}" and then filled with the sizing, colour and animation constants the widget system draws with (config.nativePresentationWidth, config.flowchart, config.statusbar, ...). Several core and addon files declare their own file-scope config table of the same name, which shadows this one.

Kindtable
Originwidget_fullscreen
ui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :11083, 9.00 :11110)
ui/core/lua/targetsystem.lua - table assignment (8.00 :246, 9.00 :254)
ui/widget/lua/widget_fullscreen.lua - table assignment (8.00 :367, 9.00 :451)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
ConfirmEditBoxInputwidgetaddonsallConfirms the input in an edit box, triggering its 'onConfirmed' event.

function widget_fullscreen addons only all signature: from source

ConfirmEditBoxInput(editBoxID)

Confirms the input in an edit box, triggering its 'onConfirmed' event.

Kindfunction
ParameterseditBoxID table - The edit box widget to confirm.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.confirmEditBoxInput (8.00 :17843, 9.00 :18832)
maps to widgetSystem.confirmEditBoxInput
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
ConvertIDTo64BitengineaddonsallConverts a game object or ID to its 64-bit integer representation.

function engine addons only all signature: confirmed

ConvertIDTo64Bit(id)

Converts a game object or ID to its 64-bit integer representation. This is often required for passing IDs to C-level engine functions.

Kindfunction
Parametersid any - The component, object, or ID to convert.
Returnsinteger64 - The 64-bit integer representation of the ID.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 287 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1648, ui/addons/ego_detailmonitor/menu_docked.lua:746, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:1103, ui/addons/ego_detailmonitor/menu_map.lua:3504
ConvertIntegerStringengineaddonsallFormats a number into a localized string with various options.

function engine addons only all signature: confirmed

ConvertIntegerString(number, useGroupingSeparator, padZeros, forceSign, allowFloat, useShortScale)

Formats a number into a localized string with various options.

Kindfunction
Parametersnumber number - The number to format.
useGroupingSeparator boolean optional - Whether to use thousand separators (e.g., 1,000). (inferred, default: false)
padZeros integer optional - The number of digits to pad with leading zeros. (inferred, default: 0)
forceSign boolean optional - Whether to always show a sign (+/-). (inferred, default: false)
allowFloat boolean optional - Whether to allow floating point numbers. (inferred, default: false)
useShortScale boolean optional - Whether to use short scale abbreviations (k, M, B). (inferred, default: false)
Returnsstring - The formatted number as a string.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 279 vanilla call sites, 2-6 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:2167, ui/addons/ego_detailmonitor/menu_docked.lua:725, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2635, ui/addons/ego_detailmonitor/menu_map.lua:11037
ConvertMissionLevelStringengineaddonsallConverts a mission difficulty level into a localized display string and a mouseover tooltip.

function engine addons only all signature: confirmed

ConvertMissionLevelString(difficulty)

Converts a mission difficulty level into a localized display string and a mouseover tooltip.

Kindfunction
Parametersdifficulty number|string - The difficulty level of the mission (e.g., 1, "easy", "hard").
ReturnslocalizedName string - The localized string for the difficulty (e.g., "Easy", "Very Hard").
mouseOverText string - The tooltip text for the difficulty.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18405, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:336, ui/addons/ego_targetmonitor/targetmonitor.lua:955
ConvertMoneyStringengineaddonsallFormats an amount as money in the player's language, and is what every price in the UI goes through.

function engine addons only all signature: confirmed

ConvertMoneyString(money, showSign, useGrouping, accuracy, colorize, ignoreSign)

Formats an amount as money in the player's language, and is what every price in the UI goes through. Vanilla's usual call is ConvertMoneyString(value, false, true, 0, true) - no forced sign, thousands separators, no decimals, coloured - followed by ReadText(1001, 101) for the currency name, which this call does not add.

Kindfunction
Parametersmoney number - The amount of money to format.
showSign boolean optional - Whether to always show a sign (+/-). (inferred, default: false)
useGrouping boolean optional - Whether to use thousand separators. (inferred, default: true)
accuracy integer optional - The number of decimal places to show. (inferred, default: 0)
colorize boolean optional - Whether to apply color based on the value (e.g., red for negative). (inferred, default: false)
ignoreSign boolean optional - Whether to ignore the sign for formatting. (inferred, default: false)
Returnsstring - The formatted currency string.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 134 vanilla call sites, 3-6 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:602, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1772, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:3928, ui/addons/ego_detailmonitor/menu_map.lua:4458
ConvertStringTo64BitengineaddonsallConverts a string representation of an ID into a 64-bit integer ID.

function engine addons only all signature: confirmed

ConvertStringTo64Bit(idString)

Converts a string representation of an ID into a 64-bit integer ID. This is often used when an ID has been converted to a string and needs to be passed back to an engine function.

Kindfunction
ParametersidString string - The string to convert.
Returnsinteger64 - The resulting 64-bit integer ID.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 355 vanilla call sites, 1 argument
Seen at ui/addons/ego_chatwindow/chatwindow.lua:487, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1657, ui/addons/ego_detailmonitor/menu_docked.lua:211, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:547
ConvertStringToLuaIDengineaddonsallConverts a string representation of an ID into a Lua-usable object ID.

function engine addons only all signature: confirmed

ConvertStringToLuaID(idString)

Converts a string representation of an ID into a Lua-usable object ID. This is primarily used when setting parameters for ship orders.

Kindfunction
ParametersidString string - The string representation of the game ID.
Returnsany - The Lua object ID, likely a specific userdata type.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 164 vanilla call sites, 1 argument
Seen at ui/addons/ego_chatwindow/chatwindow.lua:344, ui/addons/ego_detailmonitor/menu_diplomacy.lua:448, ui/addons/ego_detailmonitor/menu_map.lua:2743, ui/addons/ego_detailmonitor/menu_mapeditor.lua:683
ConvertTimeStringengineaddonsallFormats a time in seconds into a string, using the format specifiers below.

function engine addons only all signature: confirmed

ConvertTimeString(time, format, separators, precision)

Formats a time in seconds into a string, using the format specifiers below. The default format is %T, which takes the time format from the TextDB and shows days only past one day. Vanilla calls it 63 times and never passes more than two arguments, so separators and precision are marked optional: their names and meanings are documented, but whether the engine accepts them is unverified here. Specifiers: %s all seconds, %S seconds 00-59, %m all minutes, %M minutes 00-59, %h all hours, %H hours 00-23, %d all days, %T the TextDB time format, %% a literal percent sign. %s, %S and %T also take a precision override written as %.#, with # from 1 to 9 - %.3T, for example. separators turns on thousand separators and applies only to %s, %m, %h and %d. precision is the number of fractional digits for %s, %S and %T, defaulting to 0; -1 selects automatic display and cannot be combined with separators. A %.# in the format string overrides it.

Kindfunction
Parameterstime number - The time in seconds to format.
format string optional - A format string, e.g. "%h:%M:%S" or "%T". Defaults to "%T".
separators boolean optional - Use thousand separators.
precision integer optional - Fractional digits, or -1 for automatic.
Returnsstring - The formatted time string.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 63 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1524, ui/addons/ego_detailmonitor/menu_docked.lua:1343, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2713, ui/addons/ego_detailmonitor/menu_map.lua:10119
CopyDefaultOrderParamsForPlanningengineaddonsallCopies the default order parameters for a component to be used in the planning map.

function engine addons only all signature: confirmed

CopyDefaultOrderParamsForPlanning(component)

Copies the default order parameters for a component to be used in the planning map. This likely prepares an object's default command (e.g., "Attack") with its parameters for modification in the UI.

Kindfunction
Parameterscomponent any - The component whose default order parameters are to be copied.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:10480
createAxisPropertyInfoaddonaddonsallConverts a graph axis property into the descriptor the engine expects.

function addon addons only all signature: from source

createAxisPropertyInfo(axisproperty)

Converts a graph axis property into the descriptor the engine expects. Internal to the helper; it is a global only because it is declared at file scope. offset, grid, color, gridcolor, glowfactor and unittext.

Kindfunction
Parametersaxisproperty table - The axis property, with startvalue, endvalue, granularity,
Returnsinfo table
Originaddon
ui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3559, 9.00 :3743)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CreateBoxTextengineaddonsallCreates a text element within a colored box, often used for headers or distinct labels in tables.

function engine addons only all signature: confirmed

CreateBoxText(text, properties)

Creates a text element within a colored box, often used for headers or distinct labels in tables.

Kindfunction
Parameterstext string|table - The text to display, or a descriptor table for the widget.
properties table optional - A table of properties for the widget (e.g., { width, fontsize, boxColor, halign, mouseOverText }).
Returnswidget table - The created box text widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:5646
CreateButtonengineaddonsallBuilds a button widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateButton(properties)

Builds a button widget and returns its descriptor. One table carries everything - icon, colours, size, mouse-over text and the click handler. Menu code normally goes through Helper.createButton, but the help text menu builds one directly and keeps the descriptor to release later.

Kindfunction
Parametersproperties table optional - A table of properties for the button (e.g., { active, mouseOverText, icon, onClick, height, width }).
Returnswidget table - The created button widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 18 vanilla call sites, 1 argument
Seen at ui/addons/ego_debuglog/debuglog.lua:420, ui/addons/ego_detailmonitorhelper/helper.lua:2047, ui/addons/ego_helptext/helptext.lua:344
CreateCheckBoxengineaddonsallBuilds a checkbox widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateCheckBox(checked, properties)

Builds a checkbox widget and returns its descriptor. helper.lua, the only vanilla caller, passes a single descriptor table carrying the state and the properties together; menu code reaches it through Helper.createCheckBox.

Kindfunction
Parameterschecked boolean|function - The initial state of the checkbox, or a function that returns the state.
properties table optional - A table of properties for the checkbox (e.g., { active, height, width, mouseOverText, onCheckChanged }).
Returnswidget table - The created checkbox widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:6375
CreateCutsceneDescriptorengineaddonsallCreates a descriptor table for a cutscene, specifying the cutscene to play and any required reference objects.

function engine addons only all signature: confirmed

CreateCutsceneDescriptor(cutsceneKey, refObjects)

Creates a descriptor table for a cutscene, specifying the cutscene to play and any required reference objects. The resulting descriptor is used to play in-engine cutscenes.

Kindfunction
ParameterscutsceneKey string - The key/name of the cutscene to play (e.g., "OrbitIndefinitelySlow").
refObjects table - A table of reference objects for the cutscene, with keys like 'targetobject' or 'npcref'.
Returnsdescriptor table - The created cutscene descriptor table.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 15 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2389, ui/addons/ego_detailmonitor/menu_playerinfo.lua:4464, ui/addons/ego_detailmonitor/menu_timeline.lua:425, ui/addons/ego_gameoptions/customgame.lua:5130
CreateDropDownengineaddonsallBuilds a dropdown widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateDropDown(options, properties)

Builds a dropdown widget and returns its descriptor. helper.lua, the only vanilla caller, passes a single descriptor table holding the options and the properties together; menu code goes through Helper.createDropDown.

Kindfunction
Parametersoptions table - A table of option entries to populate the dropdown. Each entry is a table (e.g., { id, text, mouseOverText }).
properties table optional - A table of properties for the dropdown (e.g., { startOption, active, height, onOptionChanged }).
Returnswidget table - The created dropdown widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2180
CreateEditBoxengineaddonsallBuilds an edit box widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateEditBox(properties)

Builds an edit box widget and returns its descriptor. The single descriptor table carries the default text, whether the text is hidden, and the changed and confirmed handlers; menu code goes through Helper.createEditBox.

Kindfunction
Parametersproperties table optional - A table of properties for the edit box (e.g., { description, defaultText, textHidden, onTextChanged, onConfirmed }).
Returnswidget table - The created edit box widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2224
CreateFlowchartengineaddonsallBuilds a flowchart widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateFlowchart(descriptor)

Builds a flowchart widget and returns its descriptor. The single descriptor table carries everything - nodes, edges and layout; Helper.createFlowchart assembles it, and no menu calls this directly.

Kindfunction
Parametersdescriptor table - A descriptor table containing all properties for the flowchart (nodes, edges, layout, etc.).
Returnswidget table - The created flowchart widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:7169
CreateFlowchartEdgeengineaddonsallBuilds one edge of a flowchart - the connector between two nodes - and returns its descriptor.

function engine addons only all signature: confirmed

CreateFlowchartEdge(descriptor)

Builds one edge of a flowchart - the connector between two nodes - and returns its descriptor. As with the rest of the flowchart family, the single descriptor table carries everything and helper.lua assembles it.

Kindfunction
Parametersdescriptor table - A descriptor table containing properties for the edge (e.g., source and target nodes).
Returnswidget table - The created flowchart edge widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:7660
CreateFlowchartNodeengineaddonsallBuilds one node of a flowchart and returns its descriptor.

function engine addons only all signature: confirmed

CreateFlowchartNode(descriptor)

Builds one node of a flowchart and returns its descriptor. As with the other widget constructors, the single descriptor table carries everything, and helper.lua assembles it.

Kindfunction
Parametersdescriptor table - A descriptor table containing properties for the node (e.g., text, position, size, content).
Returnswidget table - The created flowchart node widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:7379
CreateFontStringengineaddonsallCreates a font string descriptor for use in other UI elements.

function engine addons only all signature: confirmed

CreateFontString(text, properties)

Creates a font string descriptor for use in other UI elements.

Kindfunction
Parameterstext string|table - The text to display, or a full descriptor table for the font string.
properties table optional - A table of properties for the font string (e.g., { font, fontsize, color, halign }).
Returnsdescriptor table - The created font string descriptor.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 21 vanilla call sites, 1 argument
Seen at ui/addons/ego_debuglog/debuglog.lua:418, ui/addons/ego_detailmonitorhelper/helper.lua:905, ui/addons/ego_gameoptions/gameoptions.lua:13337, ui/addons/ego_helptext/helptext.lua:313
CreateFrameengineaddonsallCreates a UI frame widget, which is a container for other UI elements.

function engine addons only all signature: confirmed

CreateFrame(children, layer, background, name, parent, width, height, x, y, properties, arg11)

Creates a UI frame widget, which is a container for other UI elements. (Legacy version) Note: Most code uses Helper.createFrameHandle() or CreateFrame2() instead.

Kindfunction
Parameterschildren table - A table of child widgets to add to the frame.
layer string optional - The rendering layer for the frame.
background string optional - The background style or texture.
name any optional - An optional name for the frame.
parent any optional - The parent widget.
width number optional - The width of the frame.
height number optional - The height of the frame.
x number optional - The x-position of the frame.
y number optional - The y-position of the frame.
properties table optional - An additional table of properties.
arg11 any optional - Unidentified in 9.00 vanilla usage; a standard-button table such as { close = true }.
Returnswidget table - The created frame widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 10-11 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:786, ui/addons/ego_debuglog/debuglog.lua:805
CreateFrame2engineaddonsallBuilds a frame - the box a menu's tables and widgets live in - and returns its descriptor.

function engine addons only all signature: confirmed

CreateFrame2(descriptor)

Builds a frame - the box a menu's tables and widgets live in - and returns its descriptor. One table carries the children, the layer, the size and the offset. Helper.createFrameHandle wraps it for menu code; the help text menu builds one directly.

Kindfunction
Parametersdescriptor table - A descriptor table containing all properties for the frame (e.g., { children, layer, width, height, x, y }).
Returnswidget table - The created frame widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4102, ui/addons/ego_helptext/helptext.lua:410
createFrameTexturePropertyInfoaddonaddonsallConverts a frame texture property into the descriptor the engine expects.

function addon addons only all signature: from source

createFrameTexturePropertyInfo(textureproperty)

Converts a frame texture property into the descriptor the engine expects. Internal to the helper; it is a global only because it is declared at file scope. the rotation* fields and the initialScaleFactor/scaleDuration pair.

Kindfunction
Parameterstextureproperty table - The texture property, with icon, color, width, height,
Returnsinfo table
Originaddon
ui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3532, 9.00 :3716)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CreateGraphengineaddonsallBuilds a graph widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateGraph(properties)

Builds a graph widget and returns its descriptor. The single descriptor table carries the data and the scaling; Helper.createGraph assembles it, and SelectGraphDataPoint selects a point on the finished widget.

Kindfunction
Parametersproperties table - A table of properties for the graph (e.g., { height, scaling, data }).
Returnswidget table - The created graph widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:6598
CreateIconengineaddonsallBuilds an icon widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateIcon(icon, properties)

Builds an icon widget and returns its descriptor. helper.lua, the only vanilla caller, passes a single descriptor table that already carries the icon and its properties together.

Kindfunction
Parametersicon string - The ID or name of the icon texture to display.
properties table optional - A table of properties for the icon (e.g., { width, height, color, mouseOverText }).
Returnswidget table - The created icon widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:5741
CreateInputBarwidgetaddons≥ 9.00Puts up the input bar along the bottom of the screen, from a height and two lists of input descriptors, left and right.

function widget_fullscreen addons only ≥ 9.00 signature: from source

CreateInputBar(height, inputsLeft, inputsRight)

Puts up the input bar along the bottom of the screen, from a height and two lists of input descriptors, left and right. New in 9.00. helper.lua follows it with Helper.getWidgetSystemSizes, because the bar takes room away from the widget system. UpdateInputBar changes its contents, RemoveInputBar takes it down.

Kindfunction
Parametersheight number - Bar height.
inputsLeft table - Input descriptors shown on the left.
inputsRight table - Input descriptors shown on the right.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.createInputBar (9.00 :18863)
Availabilityaddons only
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CreateInteractionDescriptorengineaddonsdepBuilds a **legacy** interaction descriptor and returns it as **userdata**.

function engine addons only dep signature: confirmed deprecated: 3.00 Beta 6 probed: 8.00, 9.00

CreateInteractionDescriptor(interaction, payload)

Builds a **legacy** interaction descriptor and returns it as **userdata**. Deprecated since 3.00 Beta 6 in favour of CreateInteractionDescriptor2, and the deprecation is not cosmetic: the descriptor *type* changed, and **nothing in 8.00 consumes the old one**. Measured - RaisePlayerInteractionEvent, TargetMonitorInteractionShown2 and TargetMonitorInteractionHidden2 each refuse the userdata (invalid arguments, invalid parameters), and the only call that accepts it is ReleaseInteractionDescriptor. The function still allocates; what it allocates cannot be used for anything. Vanilla says the same in prose at ui/addons/ego_targetmonitor/targetmonitor.lua:1037 - the interactionDescriptor field was **dropped** rather than preserved. Both arguments are mandatory: the name alone answers Invalid number of arguments (1, expected 2). Argument 2 is **not validated** - a component id, a ConvertStringToLuaID userdata and a plain table were all accepted, each returning its own descriptor.

Kindfunction
Parametersinteraction string - The interaction name, e.g. "object interaction".
payload any - That interaction's payload. Mandatory, unvalidated.
Returnsdescriptor userdata - A legacy descriptor no current call accepts.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsdeprecated in every covered version (8.00, 9.00)
8.00 deprecated
9.00 deprecated
Deprecated3.00 Beta 6 - superseded by CreateInteractionDescriptor2; the descriptor type changed with it, so nothing in the current pipeline accepts what this one returns
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - created, then refused by every consumer in the current pipeline, on both versions
CreateInteractionDescriptor2engineaddonsallCreates a player interaction and returns its **id as a small integer**, not a descriptor object - measured, and the counterpart cdef says the same: void ReleaseInteractionDescriptor(int32_t id), ui/core/lua/monitors.lua:103.

function engine addons only all signature: confirmed

CreateInteractionDescriptor2(interaction, component)

Creates a player interaction and returns its **id as a small integer**, not a descriptor object - measured, and the counterpart cdef says the same: void ReleaseInteractionDescriptor(int32_t id), ui/core/lua/monitors.lua:103. Ids are handed out in ascending order through a session and the engine calls them **notifications** internally: a raise against a freed one answers Cannot find notification with ID 'N'. Argument 1 is a name, and vanilla's own four - "object interaction", "platform interaction", "missionoffer interaction" and "encyclopedia interaction" - are just the names its four MD handlers listen for (md/conversations.xml:1789-1830). **The vocabulary is open**: a name nothing listens for is created and raised without complaint, which is how a mod adds its own interaction without touching a vanilla handler. Argument 2 is that handler's **payload**, not necessarily a component: three of vanilla's four pass a component or a mission id and the encyclopedia one passes a { library, component } table. It reaches MD as event.param2, **unresolved** - a component id arrives as a plain number that MD has to turn back into an object with component.{...}. The id is consumed by RaisePlayerInteractionEvent, TargetMonitorInteractionShown2 and TargetMonitorInteractionHidden2, and freed with C.ReleaseInteractionDescriptor.

Kindfunction
Parametersinteraction string - The interaction name the MD handler listens for.
component any - The payload handed to that handler as event.param2.
ReturnsinteractionID integer
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_targetmonitor/targetmonitor.lua:1046
CreateObjectInPresentationClusterengineaddonsallCreates a copy of a game object within a special 3D rendering environment (a "presentation cluster") for UI display.

function engine addons only all signature: confirmed

CreateObjectInPresentationCluster(object, clusterMacro)

Creates a copy of a game object within a special 3D rendering environment (a "presentation cluster") for UI display. Used for things like the encyclopedia and ship previews.

Kindfunction
Parametersobject any - The game object to display.
clusterMacro string - The macro for the presentation cluster environment (e.g., "cluster_black_wlight_bg_macro").
Returnscluster table - The created presentation cluster.
presentationObject any - The handle to the new object inside the cluster.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2392, ui/addons/ego_detailmonitor/menu_playerinfo.lua:4468, ui/addons/ego_gameoptions/customgame.lua:5119
CreateOrderengineaddonsallCreates an order on a controllable and appends it to its queue.

function engine addons only all signature: confirmed

CreateOrder(controllable, orderDefinition, params, default, plannedDefault, priority, arg7, arg8, arg9, arg10)

Creates an order on a controllable and appends it to its queue.

Kindfunction
Parameterscontrollable any - The controllable object.
orderDefinition string - The order definition ID, e.g. "Attack".
params table|boolean - The order parameters, or false when the order takes none.
default boolean optional - Whether the order becomes the default order.
plannedDefault boolean optional - Whether the order becomes the planned default order.
priority boolean optional - Whether the order is queued as a priority order.
arg7 any optional - Unidentified in 9.00 vanilla usage; passed the same value as the caller's "immediate", or nil.
arg8 any optional - Unidentified in 9.00 vanilla usage; always nil.
arg9 any optional - Unidentified in 9.00 vanilla usage; passed "immediate" or nil.
arg10 any optional - Unidentified in 9.00 vanilla usage; always true.
ReturnsorderIndex integer
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 32 vanilla call sites, 6-10 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3467, ui/addons/ego_detailmonitor/menu_map.lua:3487, ui/addons/ego_interactmenu/menu_interactmenu.lua:587
createOverlayPropertyInfoaddonaddonsallBuilds the help-overlay descriptor for a widget, or nil when it has no overlay text.

function addon addons only all signature: from source

createOverlayPropertyInfo(widget)

Builds the help-overlay descriptor for a widget, or nil when it has no overlay text. Internal to the helper; it is a global only because it is declared at file scope.

Kindfunction
Parameterswidget table - The widget whose helpOverlay* properties are read.
Returnsinfo table|nil
Originaddon
ui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3511, 9.00 :3695)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
CreateRenderTargetengineaddonsallCreates a render target widget, which is an area in the UI used to display 3D objects or scenes.

function engine addons only all signature: confirmed

CreateRenderTarget(width, height, x, y, alpha, mouseOverText, helpOverlay, clear, startNoise, frameBorder)

Creates a render target widget, which is an area in the UI used to display 3D objects or scenes.

Kindfunction
Parameterswidth number - Width of the render target.
height number - Height of the render target.
x number optional - X position.
y number optional - Y position.
alpha number optional - Alpha value.
mouseOverText string optional - Mouse-over text.
helpOverlay any optional - Help overlay descriptor.
clear boolean optional - Whether the target is cleared before drawing.
startNoise boolean optional - Whether the target starts with the noise effect.
frameBorder any optional - Frame border descriptor.
Returnswidget table - The created render target widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 10 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4665
CreateShieldHullBarengineaddonsallBuilds the combined shield and hull bar and returns its descriptor.

function engine addons only all signature: confirmed

CreateShieldHullBar(shield, hull, properties)

Builds the combined shield and hull bar and returns its descriptor. helper.lua, the only vanilla caller, passes a single descriptor table with the size filled in, so the separate shield and hull parameters here are the older shape.

Kindfunction
Parametersshield number|table - The shield percentage, or a full descriptor table.
hull number optional - The current hull percentage (0-100).
properties table optional - A table of properties for the bar (e.g., { width, height, scaling }).
Returnswidget table - The created shield/hull bar widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:5950
CreateSinkengineallallCreates a data sink for the target element system, used to manage HUD target indicators.

function engine all (addons + core) all signature: confirmed

CreateSink(sinkName, numElements, elements)

Creates a data sink for the target element system, used to manage HUD target indicators.

Kindfunction
ParameterssinkName string - The unique name for the sink (e.g., "explicittarget", "poi").
numElements integer|table - The maximum number of elements, or the position elements themselves.
elements table optional - The target elements managed by the sink.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/core/lua/targetsystem.lua:1712
CreateSliderCellengineaddonsallCreates a slider cell widget, used for selecting a numerical value within a range.

function engine addons only all signature: confirmed

CreateSliderCell(properties)

Creates a slider cell widget, used for selecting a numerical value within a range.

Kindfunction
Parametersproperties table - A table of properties for the slider (e.g., { min, max, start, step, onValueChanged }).
Returnswidget table - The created slider cell widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2331
CreateSourceengineallallCreates a data source for the target element system, used to provide targetable objects.

function engine all (addons + core) all signature: confirmed

CreateSource(sourceName)

Creates a data source for the target element system, used to provide targetable objects.

Kindfunction
ParameterssourceName string - The unique name for the source (e.g., "basic", "missionobjective").
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 12 vanilla call sites, 1 argument
Seen at ui/core/lua/targetsystem.lua:1788
CreateStatusBarengineaddonsallBuilds a status bar widget from a property table and returns its descriptor.

function engine addons only all signature: confirmed

CreateStatusBar(properties)

Builds a status bar widget from a property table and returns its descriptor. helper.lua fills the size in and hands the whole descriptor over as the single argument; menu code reaches it through Helper.createStatusBar rather than directly.

Kindfunction
StatusBarPropertiescurrent number
start number
max number
cellBGColor any optional
valueColor any optional
posChangeColor any optional
negChangeColor any optional
markerColor any optional
width number optional
x number optional
scaling boolean optional
height number optional
Parametersproperties StatusBarProperties
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:6452
CreateTableengineaddonsallBuilds a table widget and returns its descriptor.

function engine addons only all signature: confirmed

CreateTable(header, tableContent, columnWidths, columnWidthPercent, borderEnabled, tabOrder, skipTabChange, defaultInteractiveObject, numFixedRows, offsetX, offsetY, maxHeight, initialSelection, wraparound, highlightMode, multiselect, backgroundID, backgroundColor, helpOverlay, backgroundPadding, rowGroups, borderID)

Builds a table widget and returns its descriptor. Only the first two arguments are ever required - vanilla calls it with anything from 8 to all 22 - so everything from the column widths on has a default. Almost no mod needs it directly: Helper.createTable wraps it and is what menu code uses.

Kindfunction
InitialSelectionselectedcol integer optional
Parametersheader table|string
tableContent table
columnWidths table|number
columnWidthPercent boolean optional
borderEnabled boolean optional
tabOrder any optional
skipTabChange boolean optional
defaultInteractiveObject boolean optional
numFixedRows integer optional
offsetX number optional
offsetY number optional
maxHeight number optional
initialSelection InitialSelection|table optional
wraparound boolean optional
highlightMode any optional
multiselect boolean optional
backgroundID any optional
backgroundColor any optional
helpOverlay any optional
backgroundPadding any optional
rowGroups table optional
borderID any optional
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 8-22 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:784, ui/addons/ego_debuglog/debuglog.lua:799, ui/addons/ego_detailmonitorhelper/helper.lua:5168, ui/addons/ego_helptext/helptext.lua:409
CreateViewengineallallBuilds a view - the container every menu frame lives in - and returns its descriptor, which then goes to DisplayView.

function engine all (addons + core) all signature: confirmed

CreateView(frameDescriptors, exclusiveInteractions, closeOnUnhandledClick, useMiniWidgetSystem, startAnimation, keepHUDVisible, keepCrosshairVisible, showTickerPermanently, blurBackground, usePanelMode)

Builds a view - the container every menu frame lives in - and returns its descriptor, which then goes to DisplayView. The nine flags after the frame descriptors decide how the view behaves while it is up: whether it takes interaction exclusively, closes on a click it does not handle, uses the mini widget system, animates in, keeps the HUD, the crosshair or the ticker visible, blurs what is behind it, and whether it is a panel. The view helper is the only vanilla caller and passes all ten.

Kindfunction
ParametersframeDescriptors table
exclusiveInteractions boolean
closeOnUnhandledClick boolean
useMiniWidgetSystem boolean
startAnimation boolean
keepHUDVisible boolean
keepCrosshairVisible boolean
showTickerPermanently boolean
blurBackground boolean optional
usePanelMode boolean optional
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 10 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:39
DeactivateViewengineallallDeactivates a view.

function engine all (addons + core) all signature: unverified

DeactivateView(view)

Deactivates a view. No vanilla code calls it, so nothing here confirms what it takes or how it differs from HideView.

Kindfunction
Parametersview any
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
DebugConfigaddonaddonsallThe debug library's configuration, kept global so it can be changed at runtime.

table addon addons only all declaration: from source

DebugConfig = {}

The debug library's configuration, kept global so it can be changed at runtime. enabled is switched on automatically when IsLuaDebugInputEnabled() reports true.

Kindtable
DebugConfigenabled boolean - Whether debug input handling is active.
reprRecursionDepth number - Table recursion depth used by ToReprString.
reprIndentStep string - Indent added per level by ToReprString.
Originaddon
ui/addons/ego_debug/debug.lua - table assignment (8.00 :1, 9.00 :1)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
DebugErrorengineallallWrites a message into the game's error log - the UI's own way of reporting a problem, and what the debug log menu reads back.

function engine all (addons + core) all signature: confirmed

DebugError(message)

Writes a message into the game's error log - the UI's own way of reporting a problem, and what the debug log menu reads back. It is the closest thing UI Lua has to a print that survives, and vanilla uses it for everything from a failed engine call to invalid saved data.

Kindfunction
Parametersmessage string
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 449 vanilla call sites, 1 argument
Seen at ui/addons/ego_chatwindow/chatwindow.lua:445, ui/addons/ego_debuglog/debuglog.lua:973, ui/addons/ego_detailmonitor/menu_docked.lua:1444, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2295
DebugProfileStartengineallallOpens a profiling timer under a name, to be closed with DebugProfileStop.

function engine all (addons + core) all signature: unverified

DebugProfileStart(profileName)

Opens a profiling timer under a name, to be closed with DebugProfileStop. No vanilla code calls either half.

Kindfunction
ParametersprofileName string
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
DebugProfileStopengineallallStops the profiling timer DebugProfileStart opened under that name.

function engine all (addons + core) all signature: unverified

DebugProfileStop(profileName)

Stops the profiling timer DebugProfileStart opened under that name. No vanilla code calls either half.

Kindfunction
ParametersprofileName string
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
DestroyPresentationClusterengineaddonsallDestroys a presentation cluster and everything drawn in it.

function engine addons only all signature: confirmed

DestroyPresentationCluster(cluster)

Destroys a presentation cluster and everything drawn in it. Menus that show a rendered object - the encyclopedia, the paint mod showcase - destroy their cluster on the way out, after stopping the cutscene and releasing its descriptor.

Kindfunction
Parameterscluster any
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 11 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2343, ui/addons/ego_detailmonitor/menu_playerinfo.lua:4421, ui/addons/ego_gameoptions/customgame.lua:696
DialogMenuHiddenengineallallTells the game that the dialog menu has gone, the counterpart of DialogMenuShown.

function engine all (addons + core) all signature: confirmed

DialogMenuHidden()

Tells the game that the dialog menu has gone, the counterpart of DialogMenuShown. The core dialog menu calls it while hiding itself, so whatever was waiting on the dialog can carry on.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/dialogmenu.lua:680
DialogMenuShownengineallallTells the game that the dialog menu is now on screen, so anything waiting on it - a conversation, for one - can proceed.

function engine all (addons + core) all signature: confirmed

DialogMenuShown()

Tells the game that the dialog menu is now on screen, so anything waiting on it - a conversation, for one - can proceed. The core dialog menu calls it once it has finished displaying itself.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/dialogmenu.lua:878
DisableCameraEffectSyncengineallallDetaches the presentation from the camera effects, so its elements stay still while the camera wobbles.

function engine all (addons + core) all signature: confirmed

DisableCameraEffectSync()

Detaches the presentation from the camera effects, so its elements stay still while the camera wobbles. Every core bar that has to read as fixed to the screen - the info bars, the sub-channel bar - calls it while setting up.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 8 vanilla call sites, 0 arguments
Seen at ui/core/lua/debugline.lua:124, ui/core/lua/infobar.lua:109, ui/core/lua/infobar2.lua:107, ui/core/lua/infobar3.lua:108
DisplayViewengineallallDisplays a view built by CreateView and returns its frames, one per layer.

function engine all (addons + core) all signature: confirmed

DisplayView(viewDescriptor, suppressDisplayErrors, hasPlayerControls)

Displays a view built by CreateView and returns its frames, one per layer. Vanilla wraps the call in table.pack, because the number of returned frames depends on how many frame descriptors the view was created with.

Kindfunction
ParametersviewDescriptor any
suppressDisplayErrors boolean optional
hasPlayerControls boolean optional
Returnsany ...
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:40
DrawCirclewidgetaddonsallQueues a circle to be drawn - it is a drawing command, not a widget, so nothing appears until the queue is processed.

function widget_fullscreen addons only all signature: from source

DrawCircle(radiusZ, radiusY, centerX, centerY, z, color)

Queues a circle to be drawn - it is a drawing command, not a widget, so nothing appears until the queue is processed. helper.lua passes the same radius twice, which is what makes it a circle rather than an ellipse. HideCircle and HideAllCircles take them off again.

Kindfunction
ParametersradiusZ number
radiusY number
centerX number
centerY number
z number
color any
Returnsany
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → function (...) return widgetSystem.queueShapeDraw("circle", ...) end (8.00 :17849, 9.00 :18838)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
DrawRectwidgetaddonsallQueues a rectangle to be drawn - a drawing command rather than a widget, so nothing appears until the queue is processed.

function widget_fullscreen addons only all signature: from source

DrawRect(width, height, offsetX, offsetY, angle, z, color)

Queues a rectangle to be drawn - a drawing command rather than a widget, so nothing appears until the queue is processed. Unlike DrawTriangle next to it, helper.lua passes the angle straight through without converting it. HideRect and HideAllRects take them off again.

Kindfunction
Parameterswidth number
height number
offsetX number
offsetY number
angle number
z number
color any
Returnsany
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → function (...) return widgetSystem.queueShapeDraw("rectangle", ...) end (8.00 :17846, 9.00 :18835)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
DrawTrianglewidgetaddonsallQueues a triangle to be drawn - a drawing command rather than a widget, so nothing appears until the queue is processed.

function widget_fullscreen addons only all signature: from source

DrawTriangle(width, height, offsetX, offsetY, angle, z, color)

Queues a triangle to be drawn - a drawing command rather than a widget, so nothing appears until the queue is processed. The angle is in **radians**: helper.lua converts its own degrees with math.rad before passing them.

Kindfunction
Parameterswidth number
height number
offsetX number
offsetY number
angle number
z number
color any
Returnsany
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → function (...) return widgetSystem.queueShapeDraw("triangle", ...) end (8.00 :17852, 9.00 :18841)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
DumpAllMessagesengineallallFlushes the queued messages.

function engine all (addons + core) all signature: confirmed

DumpAllMessages()

Flushes the queued messages. The core target system calls it when a target sink goes away, to clear the messages still waiting for it.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/core/lua/targetsystem.lua:897
DumpAllMessageSinksengineallallDiscards every registered message sink.

function engine all (addons + core) all signature: confirmed

DumpAllMessageSinks()

Discards every registered message sink. The core target system calls it when resetting itself, right after DumpAllMessageSources.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/targetsystem.lua:1717
DumpAllMessageSourcesengineallallDiscards every registered message source.

function engine all (addons + core) all signature: confirmed

DumpAllMessageSources()

Discards every registered message source. The core target system calls it first when resetting itself, before DumpAllMessageSinks.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/targetsystem.lua:1716
EnableCameraEffectSyncengineallallEnables camera effect synchronisation.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

EnableCameraEffectSync()

Enables camera effect synchronisation. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
ExecuteDebugCommandengineallallRuns a debug command with one parameter.

function engine all (addons + core) all signature: confirmed

ExecuteDebugCommand(command, parameter)

Runs a debug command with one parameter. The chat window parses what the player typed into command and parameter and passes both through.

Kindfunction
Parameterscommand string
parameter string optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:464
ExistsTextengineaddonsallReports whether a text entry exists, and hands back the text when it does - one call answers both questions.

function engine addons only all signature: confirmed probed: 8.00, 9.00

ExistsText(page, line)

Reports whether a text entry exists, and hands back the text when it does - one call answers both questions. It takes a page and a line exactly like ReadText: the engine rejects the single-argument form in words, Invalid number of arguments (1, expected 2), which is the most explicit the arity oracle has ever been. A missing page or line returns nil, silently, and if ExistsText(page, line) then is therefore correct Lua - an entry holding an empty string is still truthy. **This is the only way to detect missing text.** ReadText never fails and never complains: asked for text that does not exist it returns the placeholder string "=ReadText1001-999999=", so the alternative to this call is pattern-matching that shape. Ids are coerced from strings and bounded at 32 bits - (-1, -1) draws ReadTextHelper(): pageid (-1, -1) exceeds 32-bit and returns **no value at all**, where an in-range miss returns one nil. Both read as nil at the call site; select("#", ...) separates "called it wrong" from "not there". The complaint is a log line, not a Lua error, so pcall reports success either way.

Kindfunction
Parameterspage integer|string - The text page id. Strings are coerced - ("1001", "2954") works.
line integer|string - The text line id within that page.
Returnstext string? - The text when it exists, nil when it does not.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - seven calls, arity stated by the engine in words; every shared rung answered the same either side
FindJumpRouteengineaddonsallReturns how far apart two sectors are, as **two** numbers: gate transitions first, then jumps.

function engine addons only all signature: confirmed probed: 8.00, 9.00

FindJumpRoute(startSector, endSector)

Returns how far apart two sectors are, as **two** numbers: gate transitions first, then jumps. Takes the two sectors as 64-bit component IDs and nothing else - the engine answers any other count with Invalid number of arguments (n, expected 2), so the maxJumps this row used to declare does not exist. The hop count was measured as a ladder over sector pairs: 0 for a sector against itself, then 1, 2, 3, 4, 6 and 7, symmetric in both directions at every step. The second return has been 0 in all 19 samples taken, so what separates a jump from a gate transition is not yet measured. **0 gate transitions is also what a sector returns against itself**, so a caller cannot read 0 as "no route" without testing for that case first. A rejected call - wrong arity, or a UniverseID cdata where a component ID belongs - returns nothing at all rather than 0, and the engine writes the reason to the log. That mod also shows how it fails: given a destroyed component it is reached with 0 and logs FindJumpRoute(): Component 0 does not exist any more. Guard the sectors with IsValidComponent before calling, which the Distance Tool does not.

Kindfunction
ParametersstartSector any - The sector to start from, as a 64-bit component ID.
endSector any - The sector to reach, as a 64-bit component ID.
Returnsnumgates number - The gate transitions between the two sectors.
numjumps number - The jumps needed. 0 in every sample measured so far.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site; also read against kuertee_ui_extensions
Seen at kuertee_ui_extensions ui/addons/ego_detailmonitor/menu_map.xpl:34321
Probed in-game8.00, 9.00 - a hop ladder of sector pairs in both directions plus a sector against itself, the ladder repeated over five 9.00 clicks; arity and the parameter name fromsector are the engine's own words on 8.00, where a cdata argument was passed
fireEventengineallallRaises a named event on a scene element.

function engine all (addons + core) all signature: unverified

fireEvent(element, event, ...)

Raises a named event on a scene element. The counterpart of registerForEvent. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element to raise the event on.
event string - The event name.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
fireEventOnPresentationengineallallRaises a named event on a whole presentation rather than one element.

function engine all (addons + core) all signature: unverified

fireEventOnPresentation(presentation, event, ...)

Raises a named event on a whole presentation rather than one element. No vanilla code calls it; signature unverified.

Kindfunction
Parameterspresentation any - The presentation.
event string - The event name.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
fireGameplanEventengineallallRaises an event on the Anark gameplan.

function engine all (addons + core) all signature: unverified

fireGameplanEvent(event, ...)

Raises an event on the Anark gameplan. See AKGameplan. No vanilla code calls it; signature unverified.

Kindfunction
Parametersevent string - The event name.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
ForceAnarkUpdateengineallallForces the Anark presentation to update now instead of on the next frame.

function engine all (addons + core) all signature: confirmed

ForceAnarkUpdate()

Forces the Anark presentation to update now instead of on the next frame. The core target system calls it when it has changed something the player has to see immediately.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/core/lua/targetsystem.lua:4238, ui/widget/lua/widget_fullscreen.lua:2788
GetAccountDataengineaddonsallReads one field of a component's account - money is what vanilla asks for.

function engine addons only all signature: confirmed

GetAccountData(component, key)

Reads one field of a component's account - money is what vanilla asks for. It returns nothing when the component has no account, so every caller falls back with or 0.

Kindfunction
Parameterscomponent any
key string
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:14278, ui/addons/ego_detailmonitor/menu_playerinfo.lua:962
GetActionInfoengineallallReturns everything the HUD needs about the actions offered for a message, as eleven values: the action name, whether it is possible, how many actions there are, whether the first is an instant action, the display state, how many are shown, a pointer into them, and the selected, active and inactive icons.

function engine all (addons + core) all signature: confirmed

GetActionInfo(messageID)

Returns everything the HUD needs about the actions offered for a message, as eleven values: the action name, whether it is possible, how many actions there are, whether the first is an instant action, the display state, how many are shown, a pointer into them, and the selected, active and inactive icons. Callers take only the ones they need - the crosshair asks for the fourth to decide whether the target has an instant action at all.

Kindfunction
ParametersmessageID any
Returnsstring, boolean, integer, boolean, any, any, integer, any, any, any, any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 7 vanilla call sites, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1501, ui/core/lua/firstperson_crosshair.lua:173, ui/core/lua/targetsystem.lua:1441
GetActiveFrameengineaddonsallReturns the frame that currently owns interaction.

function engine addons only all signature: confirmed

GetActiveFrame()

Returns the frame that currently owns interaction. Menu code compares it against its own frame before reacting to a row change, so a background menu does not play hover sounds for a table the player is not actually in.

Kindfunction
Parametersnone documented
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:27238, ui/addons/ego_detailmonitorhelper/helper.lua:966, ui/widget/lua/widget_fullscreen.lua:1688
GetActiveGuidanceMissionComponentengineaddonsallReturns the component the active guidance mission points at.

function engine addons only all signature: unverified

GetActiveGuidanceMissionComponent()

Returns the component the active guidance mission points at. No vanilla code calls it - the map reads GetActiveMission and works from the mission.

Kindfunction
Parametersnone documented
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
GetActiveMissionengineaddonsallReturns the mission currently set as active - the one the guidance shows.

function engine addons only all signature: confirmed

GetActiveMission()

Returns the mission currently set as active - the one the guidance shows. The map menu compares each mission against it to mark the active row.

Kindfunction
Parametersnone documented
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18698
GetAdapterOptionengineaddonsallReturns the graphics adapter in use.

function engine addons only all signature: confirmed

GetAdapterOption()

Returns the graphics adapter in use. The options menu pairs it with GetPossibleAdapters to build the dropdown and preselect the current entry.

Kindfunction
Parametersnone documented
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6935
GetAimAssistOptionengineaddonsallReturns the aim assist level on the engine's scale, which starts at zero.

function engine addons only all signature: confirmed

GetAimAssistOption()

Returns the aim assist level on the engine's scale, which starts at zero. The options menu adds one to turn it into a dropdown index, the same offset SetAimAssistOption takes back off.

Kindfunction
Parametersnone documented
Returnsnumber
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6557
GetAlignmentengineaddonsallReturns the alignment of a text widget.

function engine addons only all signature: confirmed

GetAlignment(fontStringID)

Returns the alignment of a text widget. widget_fullscreen.lua reads it with GetWordWrap and the width when it measures a text for layout.

Kindfunction
ParametersfontStringID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:13142
GetAllCommandersengineaddonsallReturns the whole commander chain above a controllable, not just the one directly above it - the map menu walks the list to find how far up a subordinate sits from a given commander.

function engine addons only all signature: confirmed

GetAllCommanders(controllable)

Returns the whole commander chain above a controllable, not just the one directly above it - the map menu walks the list to find how far up a subordinate sits from a given commander. GetCommander returns only the immediate one.

Kindfunction
Parameterscontrollable any
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:7621
GetAllExtensionSettingsengineaddonsallReturns the per-extension settings, keyed by the index of the matching GetExtensionList entry rather than by extension id.

function engine addons only all signature: confirmed

GetAllExtensionSettings()

Returns the per-extension settings, keyed by the index of the matching GetExtensionList entry rather than by extension id. Key 0 is not an extension: it holds the global sync setting, which gameoptions.lua:3365 reads on its own. Either field can be absent, and vanilla treats a missing one as "use the extension's own default" - enabledbydefault or syncbydefault - so every read is guarded twice, for the entry and for the field. The options menu refetches the whole table after each change rather than editing it in place.

Kindfunction
ExtensionSettingenabled boolean - Whether the extension is enabled.
sync boolean - Whether the extension is synced.
Parametersnone documented
Returnstable<integer, ExtensionSetting>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2979
GetAllStatIDsengineaddonsallReturns every statistics ID the game keeps, as a flat array of id strings.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetAllStatIDs()

Returns every statistics ID the game keeps, as a flat array of id strings. The player information menu walks it to build the statistics page; everything behind an ID, the raw value included, comes from GetStatData. The IDs are the id attributes of libraries/stats.xml, and the set is exactly that file: it declares 126 statistics of which two are commented out, and the measured return is **124 strings**, so the engine keeps nothing the file does not declare. That file is byte-identical in 8.00 and 9.00 and no extension ships a copy. It is also the only existence test there is: GetStatData answers an unknown ID with no return values at all rather than with exists = false.

Kindfunction
Parametersnone documented
ReturnsstatIDs string[] - Every statistics ID, as declared in libraries/stats.xml.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:2525
Probed in-game8.00, 9.00 - 124 ids on both versions, matching libraries/stats.xml exactly
GetAllWeaponsengineaddonsallReturns the primary weapons and missiles of a destructible, in two separate arrays.

function engine addons only all signature: confirmed

GetAllWeapons(component)

Returns the primary weapons and missiles of a destructible, in two separate arrays. The target monitor reads it for the weapon systems block, next to the check that weapon information is unlocked for the player at all; it counts both arrays and shows nothing when they are empty, so both are always present and may be empty tables.

Kindfunction
WeaponEntrycomponent any - The weapon component id.
macro string - The weapon macro name.
name string - The weapon's displayed name.
range number - Bullet range.
dps number - Hull and shield damage per second.
MissileEntrymacro string - The missile macro name.
name string - The missile's displayed name.
speed number - Missile range.
damage number - Explosion damage.
amount number - Number carried.
WeaponDataweapons WeaponEntry[] - The primary weapons.
missiles MissileEntry[] - The missiles.
Parameterscomponent any - The destructible to inspect.
ReturnsWeaponData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_targetmonitor/targetmonitor.lua:1199
GetAmmoCountAfterTradeOrdersengineaddonsallReturns what a container's ammunition will be once its queued trade orders have run, rather than what it holds now - the ammunition counterpart of GetCargoAfterTradeOrders, and the map menu reads the two together.

function engine addons only all signature: confirmed

GetAmmoCountAfterTradeOrders(container)

Returns what a container's ammunition will be once its queued trade orders have run, rather than what it holds now - the ammunition counterpart of GetCargoAfterTradeOrders, and the map menu reads the two together.

Kindfunction
Parameterscontainer any
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21341
getAttributeengineallallReads one attribute of an Anark scene element, by the same path setAttribute writes - "scale.y", "pivot.x", "billboardType".

function engine all (addons + core) all signature: confirmed

getAttribute(element, attribute)

Reads one attribute of an Anark scene element, by the same path setAttribute writes - "scale.y", "pivot.x", "billboardType". Core HUD code reads a value, adjusts it and writes it back; a nil answer is how it detects an element reference that never resolved.

Kindfunction
Parameterselement any - The scene element.
attribute string - Attribute path, e.g. "position.z".
Returnsvalue any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 90 vanilla call sites, 2 arguments
Seen at ui/core/lua/billboard.lua:42, ui/core/lua/compass.lua:380, ui/core/lua/counteract rotation.lua:32, ui/core/lua/crosshair handling.lua:2286
GetAutoPilotTargetengineaddonsallReturns the object the autopilot is flying to, or nothing when the autopilot is off.

function engine addons only all signature: confirmed

GetAutoPilotTarget()

Returns the object the autopilot is flying to, or nothing when the autopilot is off. The map menu reads it next to the softtarget to decide what to mark.

Kindfunction
Parametersnone documented
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6734
GetAutorollOptionengineaddonsallReturns whether autoroll is on.

function engine addons only all signature: confirmed

GetAutorollOption()

Returns whether autoroll is on. The options menu turns it straight into the On/Off label of the row whose callback toggles it with SetAutorollOption.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2029
GetAutosaveOptionengineaddonsallReturns whether autosaving is on, and pairs with SetAutosaveOption the same way the other option rows do.

function engine addons only all signature: confirmed

GetAutosaveOption()

Returns whether autosaving is on, and pairs with SetAutosaveOption the same way the other option rows do.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:1996
GetBonusContentDataengineaddonsallReturns the bonus content entries as a list.

function engine addons only all signature: confirmed

GetBonusContentData()

Returns the bonus content entries as a list. The options menu only asks for it when IsSteamworksEnabled is true, and walks the result to build the page: it shows the page at all only if some entry is owned, then renders each entry's status from installed, and offers Install or Uninstall only where optional is set and changed is not - the engine allows one change per entry per session.

Kindfunction
BonusContentEntryappid integer - The Steam app id of the bonus content.
name string - The displayed name.
owned boolean - Whether the player owns it.
installed boolean - Whether it is currently installed.
optional boolean - Whether it can be installed and uninstalled at will.
changed boolean - Its installation state has already been changed and cannot be changed again this session.
description string optional - Documented; vanilla does not read it.
path string optional - Path to the content. Documented; vanilla does not read it.
Parametersnone documented
ReturnsBonusContentEntry[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:10474
GetBoostToggleOptionengineaddonsallReturns whether boost is set to toggle rather than to hold, and pairs with SetBoostToggleOption.

function engine addons only all signature: confirmed

GetBoostToggleOption()

Returns whether boost is set to toggle rather than to hold, and pairs with SetBoostToggleOption.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2045
GetBudgetDataengineaddonsallReturns properties of a container's budget, one value per key asked and in that order.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetBudgetData(container, ...)

Returns properties of a container's budget, one value per key asked and in that order. It is a variadic property getter of the same family as GetComponentData, GetMacroData, GetStatData and GetWareData, not a table getter: called bare it returns nothing at all, because nothing was asked for. Two keys exist, "min" and "max". A wrong key is answered Invalid argument N, got unknown key 'X' - the engine names the key it rejected, numbers the argument 1-based including the container, puts nil in that slot and **still returns the good keys beside it**. So a bad key costs nothing and identifies itself, which makes the whole Get*Data family enumerable by trial. The budget is a different source from the container's own account. A player factory reading money=2000000 with minmoney and maxmoney both nil through GetAccountData answered min=2000000, max=3000000 here while being its own account holder, so scriptproperties.xml's "has a budget or is its own account holder" is not an exclusive or, and a budget needs no precondition beyond class container. **min is not an independent floor: it is two thirds of max, rounded.** Every container that answered a non-zero pair fits exactly - 2000000 / 3000000 on that factory, 263914287 / 395871430 on a player HQ and 1362311345 / 2043467017 on a player shipyard. What max itself tracks is unmeasured. A container can also have no budget at all: a player wharf and every ship tried answered 0 to both keys rather than refusing the call.

Kindfunction
Parameterscontainer any - The container to ask about.
Returnsnumber ... - One value per requested property, in order.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - a player factory, bare, with each key alone and with all three together; the same four shapes on 9.00 over four ships and four stations, responsibility refused by name as an unknown key every time, and the min = 2/3 max relation measured on the three containers that answered a non-zero pair
GetBuildAnchorengineaddonsallReturns the build anchor of a component, or nothing when it has none.

function engine addons only all signature: confirmed

GetBuildAnchor(component)

Returns the build anchor of a component, or nothing when it has none. The target monitor asks for it once it knows the component is a container, to show what is being built there.

Kindfunction
Parameterscomponent any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_targetmonitor/targetmonitor.lua:869
GetBuildDurationengineaddonsallReturns the build duration of the component's own macro, in seconds.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetBuildDuration(component, unused1, unused2)

Returns the build duration of the component's own macro, in seconds. It is a **constant from the ware table, not remaining build time**: every measured figure is the exact <production time> of that component's ware in wares.xml, and a *finished* Asgard still answered its 516. A station *module* is a ware like any other - the three ship fabrication bays answered 731, 1298 and 954, the production times of module_gen_build_l_01, module_gen_build_dockarea_m_01 and module_gen_build_xl_01. A component whose ware carries no production entry, a station or a sector, answers 0, and so does a station with a construction plan pending. Arity is 3 and the engine insists on it - one argument is answered Invalid number of arguments (1, expected 3) - but arguments 2 and 3 are inert. A wharf, given a macro from its own GetBuilderMacros and that macro's real GetBuildProductionMethod, still answered 0. The (containerid, order) this row used to declare was borrowed from the FFI function of the same name, which is a different function.

Kindfunction
Parameterscomponent any - The component to ask about.
unused1 any - Inert, but the call needs three arguments.
unused2 any - Inert, but the call needs three arguments.
Returnsseconds number - The macro's <production time>, or 0 if its ware has none.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - six ships of four races on 8.00; on 9.00 five more ships, three station build modules and a production module, every figure matching its ware's default production time in that version's own wares.xml to the second, the finished Asgard answering its 516 again, and 0 for a sector, a station and a wharf alike
GetBuilderMacrosengineaddonsallReturns the macros a container or build module can build, as a list of macro and name pairs.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetBuilderMacros(containerID)

Returns the macros a container or build module can build, as a list of macro and name pairs. It is **per build module**, and a station is the union of its bays: one shipyard's three fabrication bays returned 107 (S/M), 29 (L) and 5 (XL) entries, and the station itself returned the aggregate, its first entry matching the S/M bay's. A build module is class module, not container, so a guard written for containers silently skips the target this call is really about.

Kindfunction
BuilderMacromacro string - The macro name.
name string - The macro's displayed name.
ParameterscontainerID any - The container or build module to ask about.
ReturnsBuilderMacro[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - a shipyard and each of its three bays, arity 1; on 9.00 a shipyard and a wharf, 107 entries each, and empty on every other target tried
GetBuildProductionMethodengineaddonsallReturns the production method a builder would use for a macro, as a string shaped <macro without its _macro suffix>.<method> - "ship_arg_m_bomber_01_a.default".

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetBuildProductionMethod(containerID, macro)

Returns the production method a builder would use for a macro, as a string shaped <macro without its _macro suffix>.<method> - "ship_arg_m_bomber_01_a.default". Argument 1 is the builder, either the station or one of its build modules; argument 2 is a macro from that builder's GetBuilderMacros. The method belongs to the **macro's own build recipe, not to the builder's race**: a Terran ATF Asgard built at an Argon shipyard still returned .default.

Kindfunction
ParameterscontainerID any - The container or build module that would build it.
macro string - A macro the builder can build, from GetBuilderMacros.
Returnsmethod string - The production method, <macro>.<method>.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - a shipyard and its three bays, four macros, arity 2; the three bays again on 9.00, each answering with the macro it is building
GetButtonColorengineallallReturns the colour of a button widget as four values - red, green, blue and alpha.

function engine all (addons + core) all signature: confirmed

GetButtonColor(buttonID)

Returns the colour of a button widget as four values - red, green, blue and alpha. widget_fullscreen.lua reads them to re-apply the button's glow factor on top.

Kindfunction
ParametersbuttonID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:15416
GetButtonHotkeyDetailsengineallallReturns the hotkey badge of a button as four values: whether to show it, the icon, and its x and y offset.

function engine all (addons + core) all signature: confirmed

GetButtonHotkeyDetails(buttonID)

Returns the hotkey badge of a button as four values: whether to show it, the icon, and its x and y offset. widget_fullscreen.lua zeroes the nil ones straight away, so any of them can come back empty.

Kindfunction
ParametersbuttonID any
Returnsboolean, any, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12000
GetButtonIconengineallallReturns the icon of a button widget.

function engine all (addons + core) all signature: confirmed

GetButtonIcon(buttonID)

Returns the icon of a button widget. widget_fullscreen.lua uses it to read back what a button is showing before it changes it.

Kindfunction
ParametersbuttonID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12057
GetButtonIcon2engineallallReturns the second icon of a button, or nothing when it has only one.

function engine all (addons + core) all signature: confirmed

GetButtonIcon2(buttonID)

Returns the second icon of a button, or nothing when it has only one. A button can carry two icons side by side, which is how vanilla draws a paired state on one button.

Kindfunction
ParametersbuttonID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12098
GetButtonIcon2ColorengineallallReturns the colour of a button's second icon as four values.

function engine all (addons + core) all signature: confirmed

GetButtonIcon2Color(buttonID)

Returns the colour of a button's second icon as four values. widget_fullscreen.lua reads it after switching that icon element to its active slide, and dims it when the button is inactive.

Kindfunction
ParametersbuttonID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12103
GetButtonIcon2OffsetengineallallReturns the x and y offset of a button's second icon.

function engine all (addons + core) all signature: confirmed

GetButtonIcon2Offset(buttonID)

Returns the x and y offset of a button's second icon. Like GetButtonIconOffset it only applies to an icon that is not full-sized.

Kindfunction
ParametersbuttonID any
Returnsnumber, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12118
GetButtonIcon2SizeengineallallReturns the width and height of a button's second icon.

function engine all (addons + core) all signature: confirmed

GetButtonIcon2Size(buttonID)

Returns the width and height of a button's second icon. A zero in either means there is no second icon to place, the same convention as GetButtonIconSize.

Kindfunction
ParametersbuttonID any
Returnsnumber, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12115
GetButtonIconColorengineallallReturns the colour of a button's icon as four values.

function engine all (addons + core) all signature: confirmed

GetButtonIconColor(buttonID)

Returns the colour of a button's icon as four values. widget_fullscreen.lua reads it after switching the icon element to its active slide, then applies the glow factor on top.

Kindfunction
ParametersbuttonID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12062
GetButtonIconOffsetengineallallReturns the x and y offset of a button's icon.

function engine all (addons + core) all signature: confirmed

GetButtonIconOffset(buttonID)

Returns the x and y offset of a button's icon. It only means anything for an icon that is not full-sized: widget_fullscreen.lua combines it with GetButtonIconSize, which returns zeroes when the icon fills the button.

Kindfunction
ParametersbuttonID any
Returnsnumber, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12080
GetButtonIconSizeengineallallReturns the width and height of a button's icon.

function engine all (addons + core) all signature: confirmed

GetButtonIconSize(buttonID)

Returns the width and height of a button's icon. widget_fullscreen.lua treats a zero in either as no icon at all.

Kindfunction
ParametersbuttonID any
Returnsnumber, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12077
GetButtonSwapIconengineallallReturns the second icon of a button - the one it swaps to on mouse-over or when toggled.

function engine all (addons + core) all signature: confirmed

GetButtonSwapIcon(buttonID)

Returns the second icon of a button - the one it swaps to on mouse-over or when toggled. widget_fullscreen.lua caches it next to the main icon.

Kindfunction
ParametersbuttonID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12070
GetButtonSwapIcon2engineallallReturns the swap icon of a button's second icon - the state a two-icon button flips to.

function engine all (addons + core) all signature: confirmed

GetButtonSwapIcon2(buttonID)

Returns the swap icon of a button's second icon - the state a two-icon button flips to. GetButtonIcon2 returns the second icon itself.

Kindfunction
ParametersbuttonID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12108
GetButtonTextengineallallReturns the label a button widget is showing.

function engine all (addons + core) all signature: confirmed

GetButtonText(buttonID)

Returns the label a button widget is showing. widget_fullscreen.lua reads it back before deciding whether the button needs one at all.

Kindfunction
ParametersbuttonID any
Returnsstring
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12136
GetButtonTextAlignmentengineallallReturns the alignment of a button's label, which widget_fullscreen.lua turns into the horizontal offset it draws the text at.

function engine all (addons + core) all signature: confirmed

GetButtonTextAlignment(buttonID)

Returns the alignment of a button's label, which widget_fullscreen.lua turns into the horizontal offset it draws the text at.

Kindfunction
ParametersbuttonID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12140
GetButtonTextColorengineallallReturns the colour of a button's label as four values, red, green, blue and alpha.

function engine all (addons + core) all signature: confirmed

GetButtonTextColor(buttonID)

Returns the colour of a button's label as four values, red, green, blue and alpha. widget_fullscreen.lua reads it to re-apply the text glow factor on top.

Kindfunction
ParametersbuttonID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:15506
GetButtonTextFontengineallallReturns the font and font size of a button's label, as two values.

function engine all (addons + core) all signature: confirmed

GetButtonTextFont(buttonID)

Returns the font and font size of a button's label, as two values.

Kindfunction
ParametersbuttonID any
Returnsany, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12035
GetButtonTextOffsetengineallallReturns the x and y offset of a button's label.

function engine all (addons + core) all signature: confirmed

GetButtonTextOffset(buttonID)

Returns the x and y offset of a button's label. widget_fullscreen.lua uses it to place text that is not simply centred.

Kindfunction
ParametersbuttonID any
Returnsnumber, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12142
GetCaptureHQOptionengineaddonsallReturns whether high quality screenshot capture is on, and pairs with SetCaptureHQOption the way the other option rows do.

function engine addons only all signature: confirmed

GetCaptureHQOption()

Returns whether high quality screenshot capture is on, and pairs with SetCaptureHQOption the way the other option rows do.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:1899
GetCargoAfterTradeOrdersengineaddonsallReturns what a ship's cargo will hold once its queued trade orders have run, rather than what is in it now.

function engine addons only all signature: confirmed

GetCargoAfterTradeOrders(component, includeSubordinates)

Returns what a ship's cargo will hold once its queued trade orders have run, rather than what is in it now. That is the number a trade dialogue has to reason with; includeSubordinates counts the subordinates' queued trades as well. GetAmmoCountAfterTradeOrders is the same idea for ammunition.

Kindfunction
Parameterscomponent any
includeSubordinates boolean optional
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:14099, ui/addons/ego_detailmonitor/menu_map.lua:21340
GetCellContentengineallallReturns the widget in a table cell, whatever kind it is - a button, an editbox, a slider.

function engine all (addons + core) all signature: confirmed

GetCellContent(tableObj, row, col)

Returns the widget in a table cell, whatever kind it is - a button, an editbox, a slider. It is how vanilla reaches an existing widget to change it in place instead of rebuilding the table: read the cell, then call SetButtonColor or SetScript on what comes back.

Kindfunction
ParameterstableObj any
row integer
col integer
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 41 vanilla call sites, 3 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1088, ui/addons/ego_detailmonitorhelper/helper.lua:2654, ui/addons/ego_helptext/helptext.lua:510, ui/widget/lua/widget_fullscreen.lua:2461
GetCellTextengineaddonsallReturns the text widget inside a table cell - the widget itself, not a string, which is why vanilla passes the result straight to SetText.

function engine addons only all signature: confirmed

GetCellText(tableObj, row, col)

Returns the text widget inside a table cell - the widget itself, not a string, which is why vanilla passes the result straight to SetText. It returns nothing when the cell holds no text widget, and Helper.updateCellText tests for that before writing.

Kindfunction
ParameterstableObj any
row integer
col integer
Returnsstring
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1496, ui/addons/ego_detailmonitorhelper/helper.lua:2642
GetCharacterDensityOptionengineaddonsallReturns the density of characters on station platforms - the value SetCharacterDensityOption writes and MD reads as player.chardensity.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetCharacterDensityOption()

Returns the density of characters on station platforms - the value SetCharacterDensityOption writes and MD reads as player.chardensity. No vanilla code calls either half. Reads the persisted setting, not save state: it matches <chardensity> in config.xml and survives a reload. Returns the stored 32-bit float widened to a Lua number, so a value that is not exactly representable comes back approximate - 0.8 reads as 0.80000001192093.

Kindfunction
Parametersnone documented
Returnsdensity number - Characters on platforms. 0 to 1 by convention; the setter does not clamp.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - the read-back witness for SetCharacterDensityOption across four values, on both versions
GetChildrenengineallallReturns the child widgets of a frame, one return value each and in the order they were added.

function engine all (addons + core) all signature: confirmed

GetChildren(frame)

Returns the child widgets of a frame, one return value each and in the order they were added. The caller has to know how many to expect - debuglog.lua takes two, and code that does not know wraps the call in table.pack.

Kindfunction
Parametersframe any
Returnsany ...
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 7 vanilla call sites, 1 argument
Seen at ui/addons/ego_debuglog/debuglog.lua:1087, ui/addons/ego_detailmonitorhelper/helper.lua:1634, ui/addons/ego_helptext/helptext.lua:503, ui/widget/lua/widget_fullscreen.lua:17074
getChildrenengineallallReturns the child elements of a scene element.

function engine all (addons + core) all signature: unverified

getChildren(element)

Returns the child elements of a scene element. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnschildren table
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetClustersengineaddonsallReturns the galaxy's clusters as a list.

function engine addons only all signature: confirmed

GetClusters(includeHighways)

Returns the galaxy's clusters as a list. includeHighways decides whether highway-only clusters come with them; every vanilla call passes true.

Kindfunction
ParametersincludeHighways boolean optional
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:524, ui/addons/ego_detailmonitor/menu_map.lua:20885, ui/addons/ego_detailmonitor/menu_playerinfo.lua:3920
GetCollectableDataengineaddonsallReturns what a collectable holds.

function engine addons only all signature: confirmed

GetCollectableData(component)

Returns what a collectable holds. type selects which of three disjoint field sets is filled in, and the target monitor branches on it exactly that way: ammo gives name and amount, wares gives the wares array plus money and isdroppedcontainer, and shieldrestore gives restoretype with the value it scales. value is a floating point number, not an integer. targetmonitor.lua:1221 reads isdroppedcontainer to choose between the "cannot collect container" and "cannot collect materials" warnings.

Kindfunction
CollectableWareware string - The ware id.
amount number - The amount held.
CollectableDatatype string - "ammo", "wares" or "shieldrestore" - which other fields are present.
macro string optional - Ammo macro name. Ammo only.
name string optional - Ammo name. Ammo only.
icon string optional - Ammo icon. Ammo only.
amount number optional - Ammo amount. Ammo only.
wares CollectableWare[] optional - The wares held. Wares only.
money number optional - Credits held. Wares only.
isdroppedcontainer boolean optional - Whether this is a dropped container rather than loose materials. Wares only.
restoretype string optional - "duration", "hp" or "percent". Shield restore only.
value number optional - The restore value, meaning set by restoretype. Shield restore only.
Parameterscomponent any - The collectable to inspect.
ReturnsCollectableData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:20221, ui/addons/ego_targetmonitor/targetmonitor.lua:689
GetCollisionAvoidanceAssistOptionengineaddonsallReturns whether collision avoidance assist is on, and pairs with SetCollisionAvoidanceAssistOption.

function engine addons only all signature: confirmed

GetCollisionAvoidanceAssistOption()

Returns whether collision avoidance assist is on, and pairs with SetCollisionAvoidanceAssistOption.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2037
GetColorengineaddonsallReturns the colour of a text widget as four values, red, green, blue and alpha.

function engine addons only all signature: confirmed

GetColor(fontStringID)

Returns the colour of a text widget as four values, red, green, blue and alpha. widget_fullscreen.lua reads it alongside GetSize and GetWordWrap when it measures a text.

Kindfunction
ParametersfontStringID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:17732
getColumnengineallallReturns one column of an Anark data table.

function engine all (addons + core) all signature: unverified

getColumn(table, column)

Returns one column of an Anark data table. Part of the data-port API around AKDataPort. No vanilla code calls it; unverified.

Kindfunction
Parameterstable any - The data table, as returned by getTable.
column any - Column name or index.
Returnscolumn any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
getColumnNamesengineallallReturns the column names of an Anark data table.

function engine all (addons + core) all signature: unverified

getColumnNames(table)

Returns the column names of an Anark data table. Part of the data-port API around AKDataPort. No vanilla code calls it; unverified.

Kindfunction
Parameterstable any - The data table, as returned by getTable.
Returnsnames table
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetCommanderengineaddonsallReturns the commander of a controllable, or nothing when it has none - which is the test for whether a ship is a subordinate at all.

function engine addons only all signature: confirmed

GetCommander(controllableid, fleetUnitID)

Returns the commander of a controllable, or nothing when it has none - which is the test for whether a ship is a subordinate at all. The second parameter addresses a fleet unit; no vanilla call passes it.

Kindfunction
Parameterscontrollableid any
fleetUnitID any optional
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 19 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:7890, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:1674, ui/addons/ego_detailmonitorhelper/helper.lua:12575, ui/addons/ego_interactmenu/menu_interactmenu.lua:1528
GetCommanderEntityengineaddonsallReturns the **pilot character of the direct commander**, class npc - not the commanding ship, which is what GetCommander returns, and not the top of the chain.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetCommanderEntity(controllableid)

Returns the **pilot character of the direct commander**, class npc - not the commanding ship, which is what GetCommander returns, and not the top of the chain. One hop per call: a Katana returns the pilot of its Tokyo, that Tokyo returns the pilot of its Syn, and the Syn leads the fleet and returns nothing. To reach the fleet leader, resolve the npc back to its ship and call again until the result is empty.

Kindfunction
Parameterscontrollableid any - The controllable whose commander to ask about.
ReturnscommanderNPC any - The direct commander's pilot, class npc; nothing at the top of the chain.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - one three-ship fleet, every returned handle's class resolved; four 9.00 ships, two answering with an npc handle and two with nil
GetComponentDataengineaddonsallReads named properties off a component, and is the workhorse of the whole UI.

function engine addons only all signature: confirmed

GetComponentData(component, ...)

Reads named properties off a component, and is the workhorse of the whole UI. Every argument after the component is a property name, and it returns one value per name, in the order asked: GetComponentData(id, "isshipyard", "iswharf", "istradestation") returns three booleans. Vanilla asks for anything from one property to fifteen at a time, and one call for several is cheaper than several calls for one. The 193 keys below are the ones 9.00 vanilla actually passes, in order of how often it asks for them. It is not necessarily the whole set the engine accepts, but every one of them is confirmed in use, which no published list of keys is: isplayerowned, name, macro, assignedpilot, classid, isdeployable, owner, money, primarypurpose, idcode, isdocked, hullpercent, sector, shiptype, icon, cargo, productionmoney, shiptrader, isonlineobject, realclassid, sectorid, ishacked, assignedaipilot, ismissiontarget, pilot, subordinategroup, buildstorage, isdock, isenemy, isfunctional, ownername, size, postname, skills, ismodule, tradenpc, aicommand, aicommandparam, isactive, aicommandaction, aicommandactionparam, aicommandstack, ishostile, isshipyard, poststring, basestation, buildingprocessor, description, destinationsector, entrygate, fleetname, isdocking, isfemale, ismissingresources, iswharf, missilecapacity, policefaction, products, shieldpercent, uirelation, wantedmoney, allresources, assignment, boardingresistance, countermeasurecapacity, issuperhighway, issupplyship, istugweapon, canequipships, combinedskill, destination, hasterraforming, hull, hullmax, isally, isfleetlead, ispausedmanually, isreallyenemy, isshowroommodule, isunit, maxradarrange, ownericon, systemid, tradesubscription, wares, zoneid, aipilot, canbuildships, caninitiatecomm, clusterid, hasanymod, hasshipdockingbays, hasturret, isequipmentdock, islocked, paintmodlocked, prestigename, recyclingwares, shiptypename, sourcesector, sunlight, tradewares, typename, typestring, cansupplyships, cluster, containsthewave, defencenpc, deployablecapacity, docksizes, hiringdiscounts, individualtrainee, isattachedaslimpet, iscovered, isdatavault, isdefencestation, isdockingenabled, isinternallystored, isknown, islandmark, isorphaned, isradarvisible, isreallyplayerowned, issellable, istradestation, iswreck, modulesets, numdockingbays, occupationname, populationworkforcefactor, pureresources, shieldmax, shipstoragecapacity, agenticon, aicommandactionraw, assigneddock, assignmentname, availableproducts, basename, blacklistgroup, boardingstrength, buildcomponents, canbeclaimed, canhavetradeoffers, container, currentyield, datavaultunlockstate, discounts, engineer, formation, hasavailablemarines, haswaveprotectionmodule, height, image, intermediatewares, isbusy, iscapturable, isdefendingfromboardingoperation, isdockedinternally, isfriend, isinliveview, isinnormalspace, ismasstraffic, ismissionactor, isnpcassignmentrestricted, isstorageallowed, length, makerraceid, moddingdiscounts, npcfacecutscenekey, numlocks, numlockslots, numtrips, ownershortname, parent, rawdescription, rawname, recyclingcomponents, repairdiscounts, resourcebuffer, resourcedetectionrange, revealpercent, rolename, roomtype, scrapbuffer, shield, tradercommissions, traderdiscounts, typeicon, venturetransactionid, ventureuserid, width, workforcebonus.

Kindfunction
Parameterscomponent any
Returnsany ... - One value per name, in the order asked.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 832 vanilla call sites, 2-16 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:488, ui/addons/ego_detailmonitor/menu_crafting.lua:228, ui/addons/ego_detailmonitor/menu_diplomacy.lua:737, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1946
GetComponentNameengineaddonsallReturns a component's name, already truncated to fit.

function engine addons only all signature: confirmed

GetComponentName(componentid, font, fontsize, maxwidth, arg5, arg6)

Returns a component's name, already truncated to fit. The font, size and width after the component are the box it has to fit into, so the engine measures and shortens the name instead of the caller doing it. Vanilla passes six arguments; what the last two select is not identifiable from the call sites.

Kindfunction
Parameterscomponentid any
font string optional - Font used to measure the name for truncation.
fontsize number optional - Font size used to measure the name.
maxwidth number optional - Width the name is truncated to.
arg5 any optional - Unidentified in 9.00 vanilla usage; a boolean or nil.
arg6 any optional - Unidentified in 9.00 vanilla usage; a boolean.
Returnsstring
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 6 arguments
Seen at ui/addons/ego_detailmonitor/menu_station_overview.lua:3243, ui/addons/ego_targetmonitor/targetmonitor.lua:358
GetConfineMouseOptionengineaddonsallReturns whether the mouse is confined to the window, and pairs with SetConfineMouseOption.

function engine addons only all signature: confirmed

GetConfineMouseOption()

Returns whether the mouse is confined to the window, and pairs with SetConfineMouseOption.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2464
GetContainedBuildStoragesByOwnerengineaddonsallReturns the build storages of one owner.

function engine addons only all signature: confirmed

GetContainedBuildStoragesByOwner(owner)

Returns the build storages of one owner. The player information page reads it for "player" and filters the list down itself.

Kindfunction
Parametersowner string
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:2585
GetContainedObjectsByOwnerengineaddonsallReturns the objects of one owner, as a list.

function engine addons only all signature: confirmed

GetContainedObjectsByOwner(owner, container)

Returns the objects of one owner, as a list. Called with just a faction ID - "player" - it covers everything that faction owns; with a container as the second argument it is limited to what is inside that container, which is how the undock menu lists the ships docked at a station.

Kindfunction
Parametersowner string
container any optional
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2258, ui/addons/ego_detailmonitor/menu_map.lua:4836, ui/addons/ego_detailmonitor/menu_platformundock.lua:121, ui/addons/ego_detailmonitor/menu_playerinfo.lua:1225
GetContainedShipsengineaddonsallReturns the ships in a space, whoever owns them.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetContainedShips(space, showOnMap)

Returns the ships in a space, whoever owns them. No vanilla code calls it - the menus want the owner filter and use GetContainedShipsByOwner or GetContainedObjectsByOwner. Argument 1 is a **space**, a sector or a zone, the family GetGates, HasShipyard and HasWharf also belong to; omitting it resolves universe-wide and hands back every ship in the game, 9,595 on one save and 13,814 on an older one. showOnMap is a filter that is **off** by default, matching GetGates: true narrows the result to what the player's map actually shows, and false is identical to omitting it. In an unexplored sector the bare call returned 149 ships and true returned 0. **The unfiltered call leaks undiscovered objects** - 149 ships with their owners named, in a sector the player has never visited - so any mod that puts this in front of the player must pass true.

Kindfunction
Parametersspace any optional - The sector or zone whose ships to list. Omitted, it covers the whole universe.
showOnMap boolean optional - True to return only ships shown on the player's map. Defaults to off.
Returnsships table - Array of ship components.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - both arguments measured in-game, the class named by the engine on 8.00; both forms again over eight 9.00 clicks
GetContainedShipsByOwnerengineaddonsallReturns the ships of one owner, as a list.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetContainedShipsByOwner(owner, space)

Returns the ships of one owner, as a list. space really is optional, and dropping it makes the call **galaxy-wide** rather than dropping the owner filter: ("player") returned 1,411 ships where ("player", Ore Belt) returned 12, and a bare GetContainedShips() returned 9,595 over the same save, so the faction form is a filtered subset of the same universe. Argument 2 is a **space**, a sector or a zone - a ship in that slot draws "is not of class space" from the engine and the call still reports success with an empty table, so the result is only readable against the log line above it.

Kindfunction
Parametersowner string - The faction id, e.g. "player".
space any optional - The sector or zone to limit the search to. Omitted, it covers the whole galaxy.
Returnsships table - Array of ship components.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - both forms measured in-game, the class named by the engine on 8.00; both again over eight 9.00 clicks, with and without the space argument
GetContainedSpacesByOwnerengineaddonsallReturns the spaces belonging to one owner, as an array of component handles.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetContainedSpacesByOwner(owner)

Returns the spaces belonging to one owner, as an array of component handles. No vanilla code calls it. The count is per savegame, not a constant: GetContainedSpacesByOwner("player") answered 0, 323 and 334 entries on three different saves. **The engine reports a minimum, not a fixed count** - a bare call answers Invalid number of arguments (0, expected >= 1) - so there is at least one further parameter, presumably the space its sibling GetContainedShipsByOwner takes to limit the search. Only the one-argument form has been called.

Kindfunction
Parametersowner string - The faction id, e.g. "player".
Returnsspaces table - Array of space components.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - the one-argument form on three savegames and again on 9.00, arity minimum stated by the engine in words on 8.00; any further parameter is unmeasured
GetContainedStationsengineaddonsallReturns the stations inside a container, whoever owns them - GetContainedStationsByOwner is the same with an owner filter.

function engine addons only all signature: confirmed

GetContainedStations(container, includeGates)

Returns the stations inside a container, whoever owns them - GetContainedStationsByOwner is the same with an owner filter. The second argument decides whether gates count as stations; both vanilla calls pass true.

Kindfunction
Parameterscontainer any
includeGates boolean optional
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2727, ui/addons/ego_detailmonitor/menu_map.lua:14812
GetContainedStationsByOwnerengineaddonsallReturns the stations of one owner.

function engine addons only all signature: confirmed

GetContainedStationsByOwner(owner, container, includeGates)

Returns the stations of one owner. With a container it is limited to that container; with nil it covers the whole galaxy, which is how the map builds the player's station list. The third argument decides whether gates count as stations.

Kindfunction
Parametersowner string
container any optional
includeGates boolean optional
Returnstable
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 1-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1925, ui/addons/ego_detailmonitor/menu_map.lua:5132, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2582, ui/addons/ego_detailmonitorhelper/helper.lua:11152
GetContainerWarePriceengineaddonsallReturns what one ware costs at one container.

function engine addons only all signature: confirmed

GetContainerWarePrice(container, ware, isBuy, useBuildPrice)

Returns what one ware costs at one container. isBuy picks the side of the trade, and the fourth argument asks for the build price instead of the trade price - the station configuration menu passes it, the trade dialogues do not. Callers clamp the result between the ware's min and max price, and HasContainerWarePriceOverride says whether a manual price is in force.

Kindfunction
Parameterscontainer any
ware any
isBuy boolean
useBuildPrice boolean optional
Returnsnumber
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7 vanilla call sites, 3-4 arguments
Seen at ui/addons/ego_detailmonitor/menu_ship_configuration.lua:4887, ui/addons/ego_detailmonitor/menu_station_configuration.lua:4269, ui/addons/ego_detailmonitorhelper/helper.lua:12052
GetContextByClassengineaddonsallWalks up from a component to the enclosing object of a given class - the container a ship or an NPC is in, for instance - and returns it.

function engine addons only all signature: confirmed

GetContextByClass(componentid, classname, includeSelf)

Walks up from a component to the enclosing object of a given class - the container a ship or an NPC is in, for instance - and returns it. includeSelf decides whether the component itself counts when it is already of that class.

Kindfunction
Parameterscomponentid any
classname string
includeSelf boolean optional
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 21 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4151, ui/addons/ego_detailmonitor/menu_map.lua:14895, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2953, ui/addons/ego_detailmonitor/menu_trader_blueprintsorlicences.lua:132
GetControlEntityengineaddonsallReturns the control entity of a component - the NPC actually flying or running it - or nothing when there is none.

function engine addons only all signature: confirmed

GetControlEntity(component)

Returns the control entity of a component - the NPC actually flying or running it - or nothing when there is none. The interact menu uses its absence to explain why an action is unavailable.

Kindfunction
Parameterscomponent any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_interactmenu/menu_interactmenu.lua:6881
GetControllerInfoengineallallReturns which input device the player is currently using, and the joystick input angle.

function engine all (addons + core) all signature: confirmed

GetControllerInfo()

Returns which input device the player is currently using, and the joystick input angle. The mode is one of mouseSteering, mouseCursor, gamepad, touch or joystick. Menus branch on it to show the right button prompts and to decide whether an input bar is needed at all; every vanilla call site uses the mode alone and discards the angle. The angle is only meaningful in touch, joystick and gamepad mode. It is -1 while the stick sits in its safe area, and otherwise an angle in radians from 0 to 2π, with 0 pointing upwards and rotation running clockwise.

Kindfunction
Parametersnone documented
Returnsstring - mode, number? angle
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 21 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:20560, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:326, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:11491, ui/addons/ego_detailmonitor/menu_station_configuration.lua:6973
GetControlPostDataengineaddonsallReads a row of libraries/posts.xml by its id, in the same shape as GetComponentData: the key, then one property name per return value.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetControlPostData(controlPost, ...)

Reads a row of libraries/posts.xml by its id, in the same shape as GetComponentData: the key, then one property name per return value. The twin of GetEntityTypeData, down to the closed property set and the two traps below. controlPost is the **db key string** - playerpilot, aipilot, defence, manager, engineer, shadyguy, shiptrader, tradeagent, tradecomputer, trainee_individual - never a component and never a person. No game object is involved. **Only name and icon exist.** Every other column of the xml row - femalename, description, type, tag, control, task, even id - is refused with Invalid argument 2, got unknown key '<name>' and a nil. control and task in particular are not readable from Lua; MD reads them off the person instead. icon returns the **active** variant of the icon group the row names, from libraries/icons.xml - never the group name itself, and never a predictable suffix: defence names group defenceofficer and reads back as defenseofficer_active, the spelling changing with it. Always use the returned string as-is. Measured on 8.00: playerpilot and aipilot both -> Captain, pilot_active; defence -> Defence Coordinator, defenseofficer_active; manager -> Manager, manager_active; engineer -> Engineer, engineer_active; shiptrader -> Ship Trader, shipdealer_active.

Kindfunction
ParameterscontrolPost string - An id from libraries/posts.xml.
Returnsany ... - One value per name, in the order asked.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - six post ids answered for "name" and "icon"; every other column of the row was refused by name, and a person returns nothing. The six ids answer identically on both versions, value for value, over seven shared rungs
GetCrashReportOptionengineaddonsallReturns whether crash reporting is on, and pairs with SetCrashReportOption on the privacy page.

function engine addons only all signature: confirmed

GetCrashReportOption()

Returns whether crash reporting is on, and pairs with SetCrashReportOption on the privacy page.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2887
GetCurRealTimeengineaddonsallReturns the current real time in seconds - wall clock, so it keeps running while the game is paused.

function engine addons only all signature: confirmed

GetCurRealTime()

Returns the current real time in seconds - wall clock, so it keeps running while the game is paused. UI timing uses it: an update interval, how long a mouse button has been down, when a help text was last refreshed.

Kindfunction
Parametersnone documented
Returnsnumber
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 20 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_ship_configuration.lua:9924, ui/addons/ego_detailmonitor/menu_station_configuration.lua:6385, ui/addons/ego_detailmonitorhelper/helper.lua:1409, ui/addons/ego_helptext/helptext.lua:267
GetCurrentMouseOverFontwidgetaddonsallReturns the font and size the mouse-over text is drawn in.

function widget_fullscreen addons only all signature: from source

GetCurrentMouseOverFont()

Returns the font and size the mouse-over text is drawn in. Vanilla passes both, with GetCurrentMouseOverWidth, into Helper.indentText, so wrapped text is measured in the font it will actually appear in.

Kindfunction
Parametersnone documented
Returnsstring, number
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getCurrentMouseOverFont (8.00 :17872, 9.00 :18862)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetCurrentMouseOverWidthwidgetaddonsallReturns the width the mouse-over text box is being drawn at.

function widget_fullscreen addons only all signature: from source

GetCurrentMouseOverWidth()

Returns the width the mouse-over text box is being drawn at. Vanilla passes it, with GetCurrentMouseOverFont, into Helper.indentText, so wrapped lines are measured against the box they land in.

Kindfunction
Parametersnone documented
Returnsnumber
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getCurrentMouseOverWidth (8.00 :17871, 9.00 :18861)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
getCurrentSlideengineallallReturns which slide an Anark element is on, as an index and a name.

function engine all (addons + core) all signature: confirmed

getCurrentSlide(element)

Returns which slide an Anark element is on, as an index and a name. Core code reads the name to test what state an element is in - the loading screen checks it rather than tracking the state itself.

Kindfunction
Parameterselement any - The scene element.
Returnsindex any
slide string
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/loading.lua:369
GetCurTimeengineaddonsallReturns the current game time in seconds, which pause stops and SETA speeds up.

function engine addons only all signature: confirmed

GetCurTime()

Returns the current game time in seconds, which pause stops and SETA speeds up. Anything the player is told about in game time - an ETA, an order's remaining time - is computed against this, not against GetCurRealTime.

Kindfunction
Parametersnone documented
Returnsnumber
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21083, ui/addons/ego_detailmonitorhelper/helper.lua:11583, ui/addons/ego_interactmenu/menu_interactmenu.lua:5555
GetDateengineallallFormats a timestamp as a date string, with a strftime style format - the debug log copies entries to the clipboard with GetDate("!%c", entry.timestamp), where the leading ! asks for UTC.

function engine all (addons + core) all signature: confirmed

GetDate(format, timestamp)

Formats a timestamp as a date string, with a strftime style format - the debug log copies entries to the clipboard with GetDate("!%c", entry.timestamp), where the leading ! asks for UTC.

Kindfunction
Parametersformat string
timestamp number optional
Returnsstring
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1027
GetDeadzoneOptionengineaddonsallReturns the controller deadzone, on the engine's own 0 to 1 scale.

function engine addons only all signature: confirmed

GetDeadzoneOption()

Returns the controller deadzone, on the engine's own 0 to 1 scale. The options menu multiplies it back up for its 0-100 slider, whose callback is SetDeadzoneOption.

Kindfunction
Parametersnone documented
Returnsnumber
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7560
GetDialogOptionengineallallReturns one option of the running dialog, by index.

function engine all (addons + core) all signature: confirmed

GetDialogOption(index)

Returns one option of the running dialog, by index. The core dialog menu walks the indexes and treats an empty text as an inactive button. Five values come back, in this order: the text, whether the option is selectable, whether it is immediate, its shortcut key and its mouse-over text. dialogmenu.lua:850 takes all five and uses each of them - the mouse-over text reaches GetTextNumLines at line 953, so the fifth value really is the text and not something internal.

Kindfunction
Parametersindex integer
Returnsstring - text, boolean selectable, boolean immediate, string shortcutKey, string mouseOverText
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/dialogmenu.lua:850
GetDiplomaticActionOperationParamValuesengineaddonsallReturns the permitted values for a diplomacy operation parameter.

function engine addons only all signature: confirmed

GetDiplomaticActionOperationParamValues(operationID)

Returns the permitted values for a diplomacy operation parameter.

Kindfunction
ParametersoperationID integer - The operation ID.
Returnsvalues table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:2250
GetDiplomaticActionTargetParametersengineaddonsallReturns the target parameters accepted by a diplomatic action.

function engine addons only all signature: confirmed

GetDiplomaticActionTargetParameters(actionID)

Returns the target parameters accepted by a diplomatic action.

Kindfunction
ParametersactionID any - The diplomatic action ID.
Returnsparameters table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:450
GetDistortionOptionengineaddonsallReturns whether the distortion graphics option is on, and pairs with SetDistortionOption.

function engine addons only all signature: confirmed

GetDistortionOption()

Returns whether the distortion graphics option is on, and pairs with SetDistortionOption.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:1815
GetEditBoxCloseMenuOptionengineallallReports whether an edit box closes the menu when the player backs out of it.

function engine all (addons + core) all signature: confirmed

GetEditBoxCloseMenuOption(editBoxID)

Reports whether an edit box closes the menu when the player backs out of it. widget_fullscreen.lua caches it on the element as closeMenuOnBack.

Kindfunction
ParameterseditBoxID any
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12693
GetEditBoxColorengineallallReturns the colour of an edit box as four values, red, green, blue and alpha.

function engine all (addons + core) all signature: confirmed

GetEditBoxColor(editBoxID)

Returns the colour of an edit box as four values, red, green, blue and alpha. widget_fullscreen.lua reads them back to keep its cached element colour in step.

Kindfunction
ParameterseditBoxID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12736
GetEditBoxFontengineallallReturns the font and the font size of an edit box, as two values.

function engine all (addons + core) all signature: confirmed

GetEditBoxFont(editBoxID)

Returns the font and the font size of an edit box, as two values. widget_fullscreen.lua caches both on the element when it builds it.

Kindfunction
ParameterseditBoxID any
Returnsany, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12651
GetEditBoxHotkeyDetailsengineallallReturns the hotkey badge of an edit box as four values: whether to show it, the icon, and its x and y offset.

function engine all (addons + core) all signature: confirmed

GetEditBoxHotkeyDetails(editBoxID)

Returns the hotkey badge of an edit box as four values: whether to show it, the icon, and its x and y offset. Any of them can come back empty, and widget_fullscreen.lua zeroes them straight away.

Kindfunction
ParameterseditBoxID any
Returnsboolean, any, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12616
GetEditBoxTextengineallallReturns what an edit box currently holds.

function engine all (addons + core) all signature: confirmed

GetEditBoxText(editBoxID)

Returns what an edit box currently holds. widget_fullscreen.lua polls it and only reacts when the text differs from what it last saw.

Kindfunction
ParameterseditBoxID any
Returnsstring
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:2649
GetEditBoxTextAlignmentengineallallReturns the text alignment of an edit box, which widget_fullscreen.lua turns into the horizontal offset it draws the text at.

function engine all (addons + core) all signature: confirmed

GetEditBoxTextAlignment(editBoxID)

Returns the text alignment of an edit box, which widget_fullscreen.lua turns into the horizontal offset it draws the text at.

Kindfunction
ParameterseditBoxID any
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12674
GetEditBoxTextColorengineallallReturns the colour of an edit box's text as four values, red, green, blue and alpha - the box's own colour comes from GetEditBoxColor.

function engine all (addons + core) all signature: confirmed

GetEditBoxTextColor(editBoxID)

Returns the colour of an edit box's text as four values, red, green, blue and alpha - the box's own colour comes from GetEditBoxColor.

Kindfunction
ParameterseditBoxID any
Returnsnumber, number, number, number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:12754
GetEffectDistanceOptionengineaddonsallReturns the effect distance on the engine's 0 to 1 scale; the options menu multiplies by 100 for its slider.

function engine addons only all signature: confirmed

GetEffectDistanceOption()

Returns the effect distance on the engine's 0 to 1 scale; the options menu multiplies by 100 for its slider.

Kindfunction
Parametersnone documented
Returnsnumber
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7010
GetEfficiencyUpgradesengineaddonsallReturns the efficiency upgrades of a destructible.

function engine addons only all signature: unverified probed: 8.00, 9.00

GetEfficiencyUpgrades(destructible)

Returns the efficiency upgrades of a destructible. Argument 1 is measured - arity 1, and the engine accepts a station, a ship and a station module alike without complaint - but **the return shape is not**: every call so far has given an empty array, including one to a genuine production module derived through GetProductionModules rather than clicked. The engine knows the concept: scriptproperties.xml gives datatype object an efficiencyupgrades.<state>.list, whose elements are typed destructible rather than the strings the community library declares. But no vanilla MD script, AI script or UI file reads that family, and the two siblings the library documents beside this one, GetAllUpgrades and GetNotUpgradesByClass, are in neither 8.00 nor 9.00. So this is the last survivor of a family X4 does not use, and an always-empty array is plausible - but an empty array is not a measured return, so what a populated one holds is still unknown.

Kindfunction
Parametersdestructible any - The destructible to ask about.
Returnsupgrades table - Empty in every measured case; the element type is unmeasured.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
Probed in-game8.00, 9.00 - arity 1; empty on every target tried, a production module included, and empty again on every 9.00 target, none of which was a production module
getElapsedTimeengineallallReturns the time in seconds since the UI was started.

function engine all (addons + core) all signature: confirmed

getElapsedTime()

Returns the time in seconds since the UI was started. The scene-graph clock, unaffected by game pause; it is what the target monitor and the chat window time their fades and timeouts against.

Kindfunction
Parametersnone documented
Returnsseconds number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 310 vanilla call sites, 0 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:165, ui/addons/ego_detailmonitor/menu_diplomacy.lua:544, ui/addons/ego_detailmonitor/menu_docked.lua:223, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:1930
getElementengineallallLooks up a scene element by name, optionally relative to a parent element.

function engine all (addons + core) all signature: confirmed

getElement(name, parent)

Looks up a scene element by name, optionally relative to a parent element.

Kindfunction
Parametersname string - Element name or dotted path, e.g. "Scene.UIContract".
parent any optional - Parent element to search within; searches the scene root when omitted.
Returnselement any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 892 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:31, ui/addons/ego_detailmonitor/menu_diplomacy.lua:297, ui/addons/ego_detailmonitor/menu_docked.lua:200, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:275
getElementTypeengineallallReturns the type name of a scene element.

function engine all (addons + core) all signature: unverified

getElementType(element)

Returns the type name of a scene element. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnstype string
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetEntityTypeDataengineaddonsallReads a row of libraries/entitytypes.xml by its id.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetEntityTypeData(entityType, ...)

Reads a row of libraries/entitytypes.xml by its id. Takes the same shape as GetComponentData: the key, then one property name per return value, in the order asked. A call with no property name returns nothing at all, which is what made this name look unusable for so long. entityType is the **db key string** - officer, trader, factionrepresentative, shadyguy, crowd, agent - not a component and not a person. No game object is involved, so it can be called from any menu at any time. name comes back resolved through text page 20208 and is the **male form**; the row's femalename is a separate field. For a person's own gendered title use GetComponentData(npc, "typename") instead, which is what vanilla does. **Only name and icon exist.** Every other column of the xml row - femalename, description, platformpriority, even id - is refused with Invalid argument 2, got unknown key '<name>' and a nil. icon returns the **active** variant of the icon group the row names, from libraries/icons.xml - never the group name itself, and never a predictable suffix; the sibling GetControlPostData has a group whose active variant is spelled differently again. Always use the returned string as-is. Measured on 8.00: officer -> Crewman, pilot_active; trader -> Trader, trader_active; factionrepresentative -> Faction Representative, factionrepresentative_active; shadyguy -> Black Marketeer, shadyguy_active; crowd -> Individual, pilot_active; agent -> Agent, factionrepresentative_active. **The two failure modes do not look alike, and neither is catchable.** A bad *property* complains by name and returns nil. A bad *key* - including the right key in the wrong case, "Officer" - returns **nothing at all**, silently, exactly as a call with no property name does. So a caller cannot tell an unknown key from its own mistake by the return value; validate the key before calling. Keys are case sensitive.

Kindfunction
ParametersentityType string - An id from libraries/entitytypes.xml.
Returnsany ... - One value per name, in the order asked.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - all six entity type ids answered for "name" and "icon"; every other column of the row was refused by name; a person plus each of ten property names returned nothing, so argument 1 is the key, never a component. The six ids answer identically on both versions, value for value, over nine shared rungs
GetErrorengineallallReturns an error message by ID.

function engine all (addons + core) all signature: unverified

GetError(messageID)

Returns an error message by ID. No vanilla code calls it; the UI reports its own errors through DebugError instead.

Kindfunction
ParametersmessageID any
Returnsstring
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetErrorSeverityengineallallReturns the severity of a logged error, as a number.

function engine all (addons + core) all signature: confirmed

GetErrorSeverity(messageID)

Returns the severity of a logged error, as a number. The scale runs 0 to 5 and the debug log turns it into the prefix each line gets: 0 is plain info and does not even trigger the error callback, 1 is master info, 2 is an error, 3 an optional assertion, 4 an assertion and 5 a panic. debuglog.lua:928 skips everything at 0 and raises its popup only for 2, 3 and 4.

Kindfunction
ParametersmessageID number - The ID of the error message.
Returnsseverity number - 0 info, 1 master info, 2 error, 3 optional assertion, 4 assertion, 5 panic.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/addons/ego_debuglog/debuglog.lua:809
GetErrorTimestampengineallallReturns when an error was logged.

function engine all (addons + core) all signature: confirmed

GetErrorTimestamp(messageID)

Returns when an error was logged. The debug log reads it with GetError and GetErrorSeverity to build one line - timestamp, prefix, message.

Kindfunction
ParametersmessageID number - The ID of the error message.
Returnstimestamp any - The timestamp of the error.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/addons/ego_debuglog/debuglog.lua:822
GetExtensionListengineaddonsallReturns the installed extensions as a list.

function engine addons only all signature: confirmed

GetExtensionList()

Returns the installed extensions as a list. The options menu walks it to build the extensions page and to decide whether to show a warning icon at all: an entry that is both error and enabled turns the icon red, any warning turns it yellow. index, not id, is what keys the table GetAllExtensionSettings returns; id is what SetExtensionSettings and OpenWorkshop take. Where the settings table has no entry for an extension, vanilla falls back to enabledbydefault and syncbydefault, so those two are the authority on an untouched extension rather than enabled and sync. enabledbydefault, syncbydefault and egosoftextension are not in the community reference - the last of the three is how the options menu recognises a third-party mod before warning that the save will be marked as modified.

Kindfunction
ExtensionDependencyid string - The dependency's extension id.
name string - The dependency's name.
version string - The required version.
ExtensionEntryid string - The extension id.
index integer - The extension index - the key into GetAllExtensionSettings.
name string - The extension name.
version string - The extension version.
date string - The extension date.
enabled boolean - Whether it is currently enabled.
enabledbydefault boolean - Its default enabled state, used where the settings table has no entry.
sync boolean - Whether it is synced.
syncbydefault boolean - Its default sync state.
personal boolean - Whether it is a personal extension.
isworkshop boolean - Whether it came from the Workshop.
egosoftextension boolean - Whether Egosoft published it.
error any optional - The extension's error id, if any.
errortext string optional - The extension's error text, if any.
warning any optional - A Workshop update warning, if any.
warningtext string optional - The Workshop update warning text, if any.
desc string optional - The extension description. Documented; vanilla does not read it.
author string optional - The extension author. Documented; vanilla does not read it.
location string optional - The extension location. Documented; vanilla does not read it.
dependencies ExtensionDependency[] optional - Documented; vanilla does not read it.
Parametersnone documented
Returnsextensions ExtensionEntry[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_mapeditor.lua:1012, ui/addons/ego_gameoptions/gameoptions.lua:5899
GetExtensionUpdateWarningTextengineaddonsallReturns the warning to show about extension updates, or nothing when there is none - the options menu only appends a paragraph when something comes back.

function engine addons only all signature: confirmed

GetExtensionUpdateWarningText(arg1, arg2)

Returns the warning to show about extension updates, or nothing when there is none - the options menu only appends a paragraph when something comes back. Its two arguments are always "" and false in vanilla, so what they select is not identifiable.

Kindfunction
Parametersarg1 string - A string parameter (purpose unclear from usage).
arg2 boolean - A boolean parameter (purpose unclear from usage).
Returnswarning string|nil - The warning text, or nil if no warning is present.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6313
GetFactionDataengineaddonsallRetrieves specific data about a faction.

function engine addons only all signature: confirmed

GetFactionData(faction, ...)

Retrieves specific data about a faction. This is a variadic function.

Kindfunction
Parametersfaction string - The ID of the faction.
Returnsany - ... The requested faction data. The number and types of return values depend on the keys provided.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 65 vanilla call sites, 2-6 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1198, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1224, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1567, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1902
GetFlowchartDataengineaddonsallReturns the live state of a flowchart widget - which row and column are selected and which are the first visible ones.

function engine addons only all signature: confirmed

GetFlowchartData(widgetID)

Returns the live state of a flowchart widget - which row and column are selected and which are the first visible ones. It can come back empty, and widget_fullscreen.lua checks before reading it.

Kindfunction
ParameterswidgetID any - The ID of the flowchart widget.
ReturnsflowchartData table - A table with flowchart data, including fields like selectedRow, selectedCol, firstVisibleRow, firstVisibleCol.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4182, ui/widget/lua/widget_fullscreen.lua:12810
GetFlowchartEdgeDataengineaddonsallReturns the live data of one flowchart edge.

function engine addons only all signature: confirmed

GetFlowchartEdgeData(flowchartEdgeID)

Returns the live data of one flowchart edge. It can come back empty, and widget_fullscreen.lua checks before refreshing the edge it holds.

Kindfunction
ParametersflowchartEdgeID any - The ID of the flowchart edge.
ReturnsedgeData table - The data for the specified edge.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:7215
GetFlowchartEdgeIDengineaddonsallReturns the ID of one edge of a flowchart, by index.

function engine addons only all signature: confirmed

GetFlowchartEdgeID(widgetID, edgeIdx)

Returns the ID of one edge of a flowchart, by index. Edges are addressed by index from 1 to flowchartData.numEdges, and the ID it returns is what GetFlowchartEdgeData takes.

Kindfunction
ParameterswidgetID any - The ID of the flowchart widget.
edgeIdx number - The index of the edge.
ReturnsedgeID any - The ID of the specified edge.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4205, ui/widget/lua/widget_fullscreen.lua:12969
GetFlowchartFirstVisibleCellwidgetaddonsallReturns the row and column of the first visible cell of a flowchart - its scroll position.

function widget_fullscreen addons only all signature: from source

GetFlowchartFirstVisibleCell(flowchartID)

Returns the row and column of the first visible cell of a flowchart - its scroll position. Vanilla reads it with GetFlowchartSelectedCell when a menu is torn down, so both the scroll and the selection can be restored on the way back in.

Kindfunction
ParametersflowchartID any - The ID of the flowchart.
ReturnsfirstVisibleRow number - The row of the first visible cell.
firstVisibleCol number - The column of the first visible cell.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getFlowchartFirstVisibleCell (8.00 :17864, 9.00 :18854)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetFlowchartNodeDataengineaddonsallReturns the live data of one flowchart node.

function engine addons only all signature: confirmed

GetFlowchartNodeData(flowchartNodeID)

Returns the live data of one flowchart node. Like the edge version it can come back empty, which widget_fullscreen.lua tests before using it.

Kindfunction
ParametersflowchartNodeID any - The ID of the flowchart node.
ReturnsnodeData table - The data for the specified node.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:7179
GetFlowchartNodeExpandedFrameDatawidgetaddonsallReturns where an expanded flowchart node's frame goes: the node's x and y and the frame's x and y padding.

function widget_fullscreen addons only all signature: from source

GetFlowchartNodeExpandedFrameData(flowchartNodeID)

Returns where an expanded flowchart node's frame goes: the node's x and y and the frame's x and y padding. A nil x means the node has no expanded frame, which is what helper.lua checks before building one.

Kindfunction
ParametersflowchartNodeID any - The ID of the flowchart node.
ReturnsframeData table - The data for the expanded frame.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getFlowchartNodeExpandedFrameData (8.00 :17863, 9.00 :18853)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetFlowchartNodeIDengineaddonsallRetrieves the ID of a specific node in a flowchart by its row and column.

function engine addons only all signature: confirmed

GetFlowchartNodeID(flowChartID, row, col)

Retrieves the ID of a specific node in a flowchart by its row and column.

Kindfunction
ParametersflowChartID any - The ID of the flowchart widget.
row number - The row of the node.
col number - The column of the node.
ReturnsnodeID any - The ID of the specified node.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2920, ui/widget/lua/widget_fullscreen.lua:12953
GetFlowchartSelectedCellwidgetaddonsallReturns the row and column of the selected cell of a flowchart.

function widget_fullscreen addons only all signature: from source

GetFlowchartSelectedCell(flowchartID)

Returns the row and column of the selected cell of a flowchart. Vanilla reads it together with GetFlowchartFirstVisibleCell when a menu is torn down, so the selection and the scroll position can both be put back on the way in.

Kindfunction
ParametersflowchartID any - The ID of the flowchart.
ReturnsselectedRow number - The row of the selected cell.
selectedCol number - The column of the selected cell.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getFlowchartSelectedCell (8.00 :17865, 9.00 :18855)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetFontengineaddonsallReturns the font name and size of a text widget, as two values.

function engine addons only all signature: confirmed

GetFont(fontStringID)

Returns the font name and size of a text widget, as two values. widget_fullscreen.lua reads them with GetText when it measures a text, and turns them into a height with GetFontHeight.

Kindfunction
ParametersfontStringID any - The ID of the font string.
Returnsfont string - The name of the font.
size number - The size of the font.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:17728
GetFontHeightengineallallReturns the pixel height of a font at a size.

function engine all (addons + core) all signature: confirmed

GetFontHeight(fontName, fontSize)

Returns the pixel height of a font at a size. widget_fullscreen.lua caches the answer per size, because layout asks for it constantly and the value never changes.

Kindfunction
ParametersfontName string - The name of the font.
fontSize number - The size of the font.
ReturnsfontHeight number - The height of the font.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:7352
GetFOVOptionengineaddonsallReturns the field of view as a factor around 1, not an angle: the options menu multiplies by 90 to show degrees, and SetFOVOption divides by 90 on the way back.

function engine addons only all signature: confirmed

GetFOVOption()

Returns the field of view as a factor around 1, not an angle: the options menu multiplies by 90 to show degrees, and SetFOVOption divides by 90 on the way back.

Kindfunction
Parametersnone documented
Returnsfov number - The current FOV value.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7060
GetFrameBackgroundIDengineallallGets the background ID of a frame.

function engine all (addons + core) all signature: unverified

GetFrameBackgroundID(frameID)

Gets the background ID of a frame. (No usage found in provided files)

Kindfunction
ParametersframeID any - The ID of the frame.
ReturnsbackgroundID any - The background ID of the frame.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetFrameLayerengineaddonsallReturns the layer a frame sits on.

function engine addons only all signature: confirmed

GetFrameLayer(frameID)

Returns the layer a frame sits on. Vanilla compares two frames by layer rather than by identity - widget_fullscreen.lua skips a call when a pending frame shares the layer of the one it would act on.

Kindfunction
ParametersframeID any - The ID of the frame.
Returnslayer number - The layer of the frame.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:7388, ui/widget/lua/widget_fullscreen.lua:5518
GetFrameOverlayIDengineallallGets the overlay ID of a frame.

function engine all (addons + core) all signature: unverified

GetFrameOverlayID(frameID)

Gets the overlay ID of a frame. (No usage found in provided files)

Kindfunction
ParametersframeID any - The ID of the frame.
ReturnsoverlayID any - The overlay ID of the frame.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetFramePositionengineallallReturns the x and y position of a frame.

function engine all (addons + core) all signature: confirmed

GetFramePosition(frameID)

Returns the x and y position of a frame. The chat window subtracts it from the mouse position to work out where inside the frame the player grabbed it.

Kindfunction
ParametersframeID any - The ID of the frame.
Returnsx number - The x-coordinate of the frame.
y number - The y-coordinate of the frame.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_chatwindow/chatwindow.lua:337, ui/widget/lua/widget_fullscreen.lua:16925
GetFreeCargoAfterTradeOrdersengineaddonsallCalculates the free cargo space for a specific ware on a ship after accounting for trade orders.

function engine addons only all signature: confirmed

GetFreeCargoAfterTradeOrders(shipID, ware)

Calculates the free cargo space for a specific ware on a ship after accounting for trade orders.

Kindfunction
ParametersshipID any - The ID of the ship.
ware string - The ware to check.
ReturnsfreeCargo number - The amount of free cargo space.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21793
GetFreeUnitStorageAfterTradeOrdersengineaddonsallCalculates the free unit storage on a ship after accounting for trade orders.

function engine addons only all signature: confirmed

GetFreeUnitStorageAfterTradeOrders(shipID)

Calculates the free unit storage on a ship after accounting for trade orders.

Kindfunction
ParametersshipID any - The ID of the ship.
ReturnsfreeUnitStorage number - The amount of free unit storage.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21789
GetFullscreenOptionengineaddonsallReturns two values, whether fullscreen is on and whether the window is borderless - the display mode is a pair of flags, not one setting, though SetFullscreenOption takes a single dropdown index.

function engine addons only all signature: confirmed

GetFullscreenOption()

Returns two values, whether fullscreen is on and whether the window is borderless - the display mode is a pair of flags, not one setting, though SetFullscreenOption takes a single dropdown index.

Kindfunction
Parametersnone documented
Returnsfullscreen boolean - True if fullscreen is enabled.
borderless boolean - True if borderless window is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7181
GetGamepadModeOptionengineaddonsallReturns the gamepad mode on the engine's scale, which starts at zero; the options menu adds one for its dropdown index.

function engine addons only all signature: confirmed

GetGamepadModeOption()

Returns the gamepad mode on the engine's scale, which starts at zero; the options menu adds one for its dropdown index.

Kindfunction
Parametersnone documented
ReturnsgamepadMode number - The current gamepad mode.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7537
GetGammaOptionengineaddonsallReturns the gamma setting on the engine's 0 to 1 scale.

function engine addons only all signature: confirmed

GetGammaOption()

Returns the gamma setting on the engine's 0 to 1 scale. The options menu multiplies by 100 for its slider, which hands the value back divided by 100 through SetGammaOption.

Kindfunction
Parametersnone documented
Returnsgamma number - The current gamma value.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7204
GetGatesengineaddonsallReturns the gates of a space, as a flat array of gate components.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetGates(space, showOnMap)

Returns the gates of a space, as a flat array of gate components. Argument 1 is a space - a sector or a zone - matching the family GetContainedShips, HasShipyard and HasWharf belong to; a station in that slot gives "is not of class space". showOnMap is a filter that is **off** by default. Passing true narrows the result to the gates already revealed on the player's map; omitting it, or passing false, returns every gate the sector has. false is not an inversion - it is identical to omitting the argument. Measured on 8.00 in a sector holding one unrevealed gate: 5 bare, 4 with true, 5 with false, the filtered list a subset of the full one. A genuinely unexplored sector gave 3 bare and 0 with true, so the flag filters rather than failing in unknown space. **The unfiltered call leaks undiscovered objects** - that unexplored sector handed over its gates, named, to a player who has never been there. Any mod that shows this result to the player must pass true; this is the one place where the default is the wrong choice for UI work.

Kindfunction
Parametersspace any - The sector or zone whose gates to list.
showOnMap boolean optional - True to return only gates revealed on the player's map. Defaults to off.
Returnsgates table - Array of gate components.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - both arguments and the return shape measured in-game, all three call shapes repeated over eight 9.00 clicks
GetGfxQualityOptionengineaddonsallReturns the graphics quality preset on the engine's scale, which starts at zero and where zero means Custom; the options menu adds one for its dropdown index.

function engine addons only all signature: confirmed

GetGfxQualityOption()

Returns the graphics quality preset on the engine's scale, which starts at zero and where zero means Custom; the options menu adds one for its dropdown index. Any individual graphics setter drops it back to Custom with SetGfxQualityOption(0).

Kindfunction
Parametersnone documented
Returnsquality number - The current graphics quality setting.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7349
GetGlobalSyncSettingengineaddonsallReturns the global sync setting - whether settings follow the player between installations.

function engine addons only all signature: confirmed

GetGlobalSyncSetting()

Returns the global sync setting - whether settings follow the player between installations. The options menu reads it for the privacy page.

Kindfunction
Parametersnone documented
ReturnssyncSetting any - The current global sync setting.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3368
GetGlowOptionengineaddonsallReturns the glow quality level on the engine's scale, which starts at zero; the options menu adds one to turn it into a dropdown index.

function engine addons only all signature: confirmed

GetGlowOption()

Returns the glow quality level on the engine's scale, which starts at zero; the options menu adds one to turn it into a dropdown index.

Kindfunction
Parametersnone documented
ReturnsglowOption number - The current glow option.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7229
GetHeaderengineaddonsallReturns the header widget of a table, the row that stays put while the rest scrolls.

function engine addons only all signature: confirmed

GetHeader(tableID)

Returns the header widget of a table, the row that stays put while the rest scrolls. widget_fullscreen.lua measures it to work out how much height is left for the table itself.

Kindfunction
ParameterstableID any - The ID of the table.
Returnsheader any - The header of the table.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14419
GetHeldLicencesengineaddonsallReturns the licences a faction **holds**.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetHeldLicences(faction)

Returns the licences a faction **holds**. The argument is the holder and each entry's faction field is the **issuer**; the two are never the same, measured over 238 entries on one run and corroborated on six factions - the player held 231 from 21 issuers, teladi 7 from ministry, hatikvah and scaleplate, antigone 10 mostly from argon. The player's 231 is a real subset of vanilla's 360 defined issuer/type pairs, not the whole catalogue. **The argument is not validated.** A nonexistent faction string returns an empty table with no engine complaint, and so does a component handed in by mistake - the binding ignores a wrong type rather than rejecting it. An empty result therefore cannot distinguish "holds nothing" from "no such faction" from "wrong argument entirely".

Kindfunction
LicenceEntryid string - The licence id.
type string - The licence type - 21 distinct values on the player, from shiptrade to ceremonyfriend, tradesubscription, innercore_access and hyperion_access.
name string - The licence's displayed name.
icon string - The licence icon.
price number - The licence price. Zero on all but a handful - 21 of the player's 231 - where it runs from 1 to 20,000,000.
minrelation number - The minimum relation required to hold it. Exactly four values measured: 20, 10, -10, -30.
faction string - The faction that **issued** the licence, never the holder passed in.
precursor string optional - The licence required before this one. Present on 140 of the player's 231 entries, so it is common rather than rare.
Parametersfaction string - The faction id that holds the licences, e.g. "player".
Returnslicences LicenceEntry[] - Empty when the faction holds none - and equally when the argument is wrong.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - six holders, whole-array field histograms, arity 1; on 9.00 the player's 232 licences, each an eight-field record, with an empty array for a bogus faction string and for a component alike
GetHintPositionengineaddonsallReturns the x and y of a named hint position, as percentages of the view.

function engine addons only all signature: confirmed

GetHintPosition(position)

Returns the x and y of a named hint position, as percentages of the view. The help text menu turns them into pixels against Helper.viewWidth and clamps the result so a hint cannot hang off the edge.

Kindfunction
Parametersposition any - The identifier for the hint's position.
Returnsposition_x number - The x-coordinate.
position_y number - The y-coordinate.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_helptext/helptext.lua:406
GetHoloMapColorsengineaddonsallReturns the whole holomap colour set in one call - twenty-two colours, from production and build through the alert levels to gates and highways, as defined in parameters.xml.

function engine addons only all signature: confirmed

GetHoloMapColors()

Returns the whole holomap colour set in one call - twenty-two colours, from production and build through the alert levels to gates and highways, as defined in parameters.xml. Helper.getHoloMapColors names them into a table, and that wrapper is what menu code uses. Each colour is a table of r, g and b in 0-255 with a in **0-100**, not 0-255; Helper.convertColorToText scales the alpha by * 255 / 100 before packing the four into the escape sequence, which is the arithmetic that proves the range.

Kindfunction
HoloMapColorr integer - Red, 0-255.
g integer - Green, 0-255.
b integer - Blue, 0-255.
a integer - Alpha, 0-100 - not 0-255.
Parametersnone documented
ReturnsproductionColor HoloMapColor
buildColor HoloMapColor
storageColor HoloMapColor
radarColor HoloMapColor
droneDockColor HoloMapColor
efficiencyColor HoloMapColor
defenceColor HoloMapColor
playerColor HoloMapColor
friendColor HoloMapColor
enemyColor HoloMapColor
missionColor HoloMapColor
currentPlayerShipColor HoloMapColor
visitorColor HoloMapColor
lowAlertColor HoloMapColor
mediumAlertColor HoloMapColor
highAlertColor HoloMapColor
gateColor HoloMapColor
highwayGateColor HoloMapColor
missileColor HoloMapColor
superhighwayColor HoloMapColor
highwayColor HoloMapColor
hostileColor HoloMapColor
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13070
GetIconDetailsengineallallReturns everything an icon is drawn with: the texture name and its red, green, blue and alpha.

function engine all (addons + core) all signature: confirmed

GetIconDetails(iconID)

Returns everything an icon is drawn with: the texture name and its red, green, blue and alpha. widget_fullscreen.lua reads them and applies the glow factor from C.GetIconGlowFactor on top.

Kindfunction
ParametersiconID any - The ID of the icon.
ReturnstextureName string - The name of the texture.
red number - The red color component.
green number - The green color component.
blue number - The blue color component.
alpha number - The alpha component.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:17864
GetInputActionMapengineaddonsallReturns the action bindings - the inputs that fire on a press - keyed by integer action id, each holding a list of the inputs bound to it.

function engine addons only all signature: confirmed

GetInputActionMap(default)

Returns the action bindings - the inputs that fire on a press - keyed by integer action id, each holding a list of the inputs bound to it. Called with no argument for the player's current map and with true for the default one, next to GetInputStateMap and GetInputRangeMap; the options menu keeps both sets to show what has been rebound. Each binding is a three-element array, not a record: source, code and signum in that order. gameoptions.lua reads input[1] to decide whether a binding is keyboard or mouse, and nudges input[2] by one when shifting a mouse axis. An unbound action maps to an empty table rather than being absent, which is what clearing a binding writes.

Kindfunction
InputBindingno fields
Parametersdefault boolean optional - If true, gets the default map.
Returnsactions table<integer, InputBinding[]>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:4844, ui/addons/ego_gameoptions/gameoptions.lua:4938
GetInputProfilesengineaddonsallReturns the input profiles - the shipped ones and the player's own - as one list.

function engine addons only all signature: confirmed

GetInputProfiles()

Returns the input profiles - the shipped ones and the player's own - as one list. The controls page splits them by personal: a personal profile is a user profile and is indexed by filename, while the rest are offered for loading and are split again by mouseprofile.

Kindfunction
InputProfileid any - The profile id.
name string - The profile's displayed name.
filename string - The profile's file name.
personal boolean - Whether the file sits in the personal folder - a user profile rather than a shipped one.
mouseprofile boolean - Whether it is a mouse profile; the load page groups these separately.
version any optional - The profile version. Documented; vanilla does not read it.
customname string optional - The profile's custom name. Documented; vanilla does not read it.
Parametersnone documented
ReturnsinputProfiles InputProfile[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:12558
GetInputRangeMapengineaddonsallReturns the range bindings - the axis inputs - keyed by integer range id, each holding a list of InputBinding entries in the same source, code, signum form the action map uses.

function engine addons only all signature: confirmed

GetInputRangeMap(default)

Returns the range bindings - the axis inputs - keyed by integer range id, each holding a list of InputBinding entries in the same source, code, signum form the action map uses. Called with no argument for the player's current map and with true for the default one, which the options menu keeps side by side to show what has been changed.

Kindfunction
Parametersdefault boolean optional - If true, gets the default map.
Returnsranges table<integer, InputBinding[]>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:4844, ui/addons/ego_gameoptions/gameoptions.lua:4938
GetInputStateMapengineaddonsallReturns the state bindings - the inputs that act while held - keyed by integer state id, each holding a list of InputBinding entries in the same source, code, signum form the action map uses.

function engine addons only all signature: confirmed

GetInputStateMap(default)

Returns the state bindings - the inputs that act while held - keyed by integer state id, each holding a list of InputBinding entries in the same source, code, signum form the action map uses. Called with no argument for the current map and with true for the default one, alongside GetInputActionMap and GetInputRangeMap; SaveInputSettings takes all three back together.

Kindfunction
Parametersdefault boolean optional - If true, gets the default map.
Returnsstates table<integer, InputBinding[]>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:4844, ui/addons/ego_gameoptions/gameoptions.lua:4938
GetInteractiveObjectengineallallReturns the widget inside a frame that currently has interaction, or nothing when the frame has none.

function engine all (addons + core) all signature: confirmed

GetInteractiveObject(frameID)

Returns the widget inside a frame that currently has interaction, or nothing when the frame has none. Vanilla pairs it with GetActiveFrame: a menu only reacts to a row change when its own frame is active **and** the table that changed is the interactive one.

Kindfunction
ParametersframeID any - The ID of the frame.
ReturnsinteractiveWidgetID any - The ID of the interactive widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 8 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:27238, ui/addons/ego_detailmonitorhelper/helper.lua:966, ui/widget/lua/widget_fullscreen.lua:1706
GetInventoryengineaddonsallReturns the wares an entity holds, keyed by ware id.

function engine addons only all signature: confirmed

GetInventory(entityID)

Returns the wares an entity holds, keyed by ware id. There is no array part, so vanilla walks it with pairs and tests it for emptiness with next(...) - the interact menu decides whether to offer a trade at all that way. The entity is usually an NPC rather than a ship: the map passes a pilot, the player info menu the HQ defence NPC.

Kindfunction
InventoryWarename string - The ware's displayed name.
amount number - The amount held.
price number - The ware's price.
ParametersentityID any - The entity whose inventory to read.
Returnsinventory table<string, InventoryWare>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 10 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:4112, ui/addons/ego_detailmonitor/menu_map.lua:6516, ui/addons/ego_detailmonitor/menu_playerinfo.lua:1674, ui/addons/ego_detailmonitor/menu_trader_inventory.lua:120
GetInversionSettingengineaddonsallReports whether one control range is inverted.

function engine addons only all signature: confirmed

GetInversionSetting(rangeID)

Reports whether one control range is inverted. The options menu turns it straight into the Inverted or Normal label of that row, whose callback is SetInversionSetting.

Kindfunction
ParametersrangeID any - The ID of the control range.
ReturnsisInverted boolean - True if the control is inverted.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7556
GetJoysticksOptionengineaddonsallReturns the joystick slot assignments, keyed by slot number.

function engine addons only all signature: confirmed

GetJoysticksOption()

Returns the joystick slot assignments, keyed by slot number. The controls page reads it next to GetMappedJoysticks, which lists the devices actually mapped, and writes back one slot at a time with SetJoysticksOption. Slots can be empty, so vanilla walks the table with pairs rather than ipairs and skips any entry whose guid is the empty string. gameoptions.lua:12503 reads xinput to choose between the controller and the joystick icon.

Kindfunction
JoystickSlotname string - The device name.
guid string - The device guid, empty for an unoccupied slot.
xinput boolean - Whether the device is an XInput controller rather than a plain joystick.
Parametersnone documented
Returnsjoysticks table<integer, JoystickSlot>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:4926
GetLegacyShadersOptionengineaddonsallGets the legacy shaders option.

function engine addons only all signature: unverified

GetLegacyShadersOption()

Gets the legacy shaders option. (No usage found in provided files)

Kindfunction
Parametersnone documented
ReturnslegacyShadersEnabled boolean - True if legacy shaders are enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
GetLibraryengineaddonsallReturns a whole data library as a list - factions, stationtypes and the rest of the libraries the encyclopedia is built from.

function engine addons only all signature: confirmed

GetLibrary(libraryName)
-- overload: fun(libraryName: "factions"): LibraryItemFaction[]

Returns a whole data library as a list - factions, stationtypes and the rest of the libraries the encyclopedia is built from. Each item carries only enough to list it; the detail behind an item comes from GetLibraryEntry with the same library name and the item's id. GetLibrarySize gives the entry count without reading the entries. The item shape barely varies by library: parent appears only where the library is a tree, and relation only on factions, which is why the diplomacy and player info menus bind the result to a variable named relations. Passing "factions" as a literal gets LibraryItemFaction back, which has relation.

Kindfunction
LibraryItemid string - The item id - what GetLibraryEntry takes as its second argument.
name string - The item's displayed name.
icon string - The item icon.
parent string optional - The item's parent, where the library is a tree.
LibraryItemFaction : LibraryItemrelation number - The player's relation to the faction.
ParameterslibraryName string - The name of the library to retrieve, e.g. "factions" or "stationtypes".
Returnslibrary LibraryItem[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 16 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1188, ui/addons/ego_detailmonitor/menu_docked.lua:627, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:561, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2353
GetLibraryEntryengineaddonsallReturns one entry of a data library, by library name and entry ID.

function engine addons only all signature: confirmed

GetLibraryEntry(libraryName, entryID)
-- overload: fun(libraryName: "factions"|"races", entryID: any): LibraryEntryFaction
-- overload: fun(libraryName: "licences", entryID: any): LibraryEntryLicence
-- overload: fun(libraryName: "ship_xl"|"ship_l"|"ship_m"|"ship_s"|"shiptypes_xl"|"shiptypes_l"|"shiptypes_m"|"shiptypes_s"|"shiptypes_xs", entryID: any): LibraryEntryShip
-- overload: fun(libraryName: "stationtypes"|"moduletypes_production"|"moduletypes_build"|"moduletypes_storage"|"moduletypes_habitation"|"moduletypes_welfare"|"moduletypes_defence"|"moduletypes_dock"|"moduletypes_processing"|"moduletypes_other"|"moduletypes_radar"|"moduletypes_venture", entryID: any): LibraryEntryModule
-- overload: fun(libraryName: "enginetypes"|"thrustertypes", entryID: any): LibraryEntryEngine
-- overload: fun(libraryName: "weapons_turrets"|"weapons_missileturrets", entryID: any): LibraryEntryTurret
-- overload: fun(libraryName: "weapons_lasers"|"weapons_missilelaunchers"|"bombs"|"mines"|"lasertowers", entryID: any): LibraryEntryWeapon
-- overload: fun(libraryName: "missiletypes", entryID: any): LibraryEntryMissile
-- overload: fun(libraryName: "shieldgentypes", entryID: any): LibraryEntryShield
-- overload: fun(libraryName: "wares"|"inventory_wares"|"software"|"paintmods"|"satellites"|"navbeacons"|"resourceprobes"|"countermeasures", entryID: any): LibraryEntryWare

Returns one entry of a data library, by library name and entry ID. The library name is often not a constant: the map asks GetMacroData(macro, "infolibrary") which library a macro belongs to and passes the answer straight in. **The field set depends on the library.** Only name, description and icon are common to all of them, so passing the library name as a string literal gets a narrow class back - LibraryEntryShip, LibraryEntryEngine, LibraryEntryWeapon and so on - via the overloads below. Passing a variable, which is what vanilla mostly does, falls back to LibraryEntry: the union of every field, all optional, because nothing at that point says which library it is. The split follows menu_encyclopedia.lua, which branches on menu.library before reading fields - weapons_lasers and weapons_missilelaunchers at line 3383, weapons_turrets at 3518, missiletypes at 3647, shieldgentypes at 2231, enginetypes at 2207, licences and factions at 2196. Library names come from that file's own category config at line 483. X4 returns considerably more per entry than any published list: the damage figures alone are nine separate hull-and-shield permutations rather than one dps.

Kindfunction
LibraryEntryBasename string - The entry name.
description string - The entry description.
icon string - The entry icon.
video string optional - The entry video.
image string optional - The entry image.
component any optional - The component the entry describes, where it has one.
precursor any optional - The entry this one is built from.
LibraryEntryFaction : LibraryEntryBasefactionid string optional - The faction id.
primaryfactions table optional - The factions of a race. races only.
primaryrace string optional - The faction's primary race.
influencename string optional - The faction influence name.
influencedescription string optional - The faction influence description.
canclaim boolean optional - Whether the player can claim it.
illegalwares table optional - Wares illegal to this faction.
LibraryEntryLicence : LibraryEntryBaseprice number optional - The licence price.
minrelation number optional - The minimum relation required.
issellable boolean optional - Whether the licence can be bought.
LibraryEntryShip : LibraryEntryBasehull number optional - Hull strength.
shield number optional - Shield strength.
mass number optional - Mass.
speed number optional - Top speed.
jumpdrive boolean optional - Whether the ship has a jumpdrive.
radarrange number optional - Radar range.
shiptypename string optional - The ship type name.
storagecapacity number optional - Storage capacity.
storagetags any optional - Storage tags.
storagenames any optional - Storage names.
shipstoragecapacity number optional - Ship storage capacity.
unitcapacity number optional - Unit capacity.
missilecapacity number optional - Missile capacity.
docks_m number optional - M dock count.
docks_s number optional - S dock count.
LibraryEntryModule : LibraryEntryBasehull number optional - Hull strength.
products table optional - The products of a production module.
resources table optional - The resources a production module consumes.
productions table optional - Productions.
storagecapacity number optional - Storage capacity.
workforcecapacity number optional - Workforce capacity.
maxworkforce number optional - Maximum workforce.
radarrange number optional - Radar range. moduletypes_radar only.
docks_m number optional - M dock count. Dock modules only.
docks_s number optional - S dock count. Dock modules only.
LibraryEntryEngine : LibraryEntryBasethrust_forward number optional - Forward thrust.
thrust_reverse number optional - Reverse thrust.
thrust_vertical number optional - Vertical thrust.
thrust_horizontal number optional - Horizontal thrust.
thrust_pitch number optional - Pitch thrust.
thrust_yaw number optional - Yaw thrust.
drag_yaw number optional - Yaw drag.
inertia_yaw number optional - Yaw inertia.
yawspeed number optional - Yaw speed.
pitchspeed number optional - Pitch speed.
verticalstrafespeed number optional - Vertical strafe speed.
horizontalstrafespeed number optional - Horizontal strafe speed.
boost_thrustfactor number optional - Boost thrust factor.
boost_chargetime number optional - Boost charge time.
boost_rechargetime number optional - Boost recharge time.
boost_maxduration number optional - Boost maximum duration.
boost_accfactor number optional - Boost acceleration factor.
travel_thrustfactor number optional - Travel drive thrust factor.
travel_chargetime number optional - Travel drive charge time.
travel_attacktime number optional - Travel drive attack time.
LibraryEntryWeapon : LibraryEntryBaserange number optional - Weapon range.
maxrange number optional - Maximum range.
dps number optional - Damage per second.
sustaineddps number optional - Sustained damage per second.
hullonlydps number optional - DPS against hull only.
hullshielddps number optional - DPS against hull through shields.
hullnoshielddps number optional - DPS against unshielded hull.
hullonlydpshot number optional - Damage per shot against hull only.
hullshielddpshot number optional - Damage per shot against hull through shields.
hullnoshielddpshot number optional - Damage per shot against unshielded hull.
shieldonlydpshot number optional - Damage per shot against shields only.
hullonlyareadpshot number optional - Area damage per shot against hull only.
hullshieldareadpshot number optional - Area damage per shot against hull through shields.
hullnoshieldareadpshot number optional - Area damage per shot against unshielded hull.
shieldonlyareadpshot number optional - Area damage per shot against shields only.
hullonlyareadamage number optional - Area damage against hull only.
hullshieldareadamage number optional - Area damage against hull through shields.
hullnoshieldareadamage number optional - Area damage against unshielded hull.
explosiondamage number optional - Explosion damage.
hullexplosiondamage number optional - Explosion damage to hull.
shieldexplosiondamage number optional - Explosion damage to shields.
bulletspeed number optional - Bullet speed.
reloadrate number optional - Reload rate.
chargetime number optional - Charge time.
coolingrate number optional - Cooling rate.
initialheat number optional - Heat per shot.
maxheatrate number optional - Maximum heat rate.
isbeamweapon boolean optional - Whether it is a beam weapon.
isrepairweapon boolean optional - Whether it is a repair weapon.
islongrange boolean optional - Whether it is long range.
miningmultiplier number optional - Mining damage multiplier.
surfaceelementmultiplier number optional - Surface element damage multiplier.
shielddisruption number optional - Shield disruption.
LibraryEntryTurret : LibraryEntryWeaponrotation number optional - Turret rotation speed.
maxyawangle number optional - Maximum yaw angle.
maxpitchangle number optional - Maximum pitch angle.
istracking boolean optional - Whether it tracks its target.
isfriendfoe boolean optional - Whether it uses friend-foe identification.
LibraryEntryMissile : LibraryEntryBasespeed number optional - Missile speed.
acceleration number optional - Missile acceleration.
damage number optional - Missile damage.
explosiondamage number optional - Explosion damage.
hullexplosiondamage number optional - Explosion damage to hull.
shieldexplosiondamage number optional - Explosion damage to shields.
range number optional - Missile range.
maxlockrange number optional - Maximum lock range.
locktime number optional - Missile lock time.
proximityrange number optional - Proximity fuse range.
guided boolean optional - Whether the missile is guided.
istracking boolean optional - Whether it tracks its target.
countermeasureresilience number optional - Resilience to countermeasures.
LibraryEntryShield : LibraryEntryBasehull number optional - Shield generator hull.
shield number optional - Shield strength.
recharge number optional - Shield recharge rate.
rechargedelay number optional - Shield recharge delay.
chargetime number optional - Charge time.
LibraryEntryWare : LibraryEntryBaseavgprice number optional - Ware average price.
volume number optional - Ware volume.
transporttype string optional - Ware transport type.
methods table optional - Ware production methods.
illegalto table optional - Factions the ware is illegal to.
issellable boolean optional - Whether the ware can be sold.
isscanner boolean optional - Whether it is a scanner. Satellites and probes.
scanlevel number optional - Scanner level. Satellites and probes.
resourcedetectionrange number optional - Resource detection range. Probes.
LibraryEntryname string - The entry name.
description string - The entry description.
icon string - The entry icon.
video string optional - The entry video.
image string optional - The entry image. Documented; the encyclopedia does not read it.
component any optional - The component the entry describes, where it has one.
race string optional - NPC race. Documented; the encyclopedia does not read it.
faction string optional - NPC faction. Documented; the encyclopedia does not read it.
factionid string optional - The faction id.
primaryfactions table optional - The factions of a race.
primaryrace string optional - A faction primary race. Documented; the encyclopedia does not read it.
influencename string optional - The faction influence name.
influencedescription string optional - The faction influence description.
canclaim boolean optional - Whether the player can claim it.
minrelation number optional - Minimum relation required.
hull number optional - Hull strength.
shield number optional - Shield strength.
mass number optional - Mass.
speed number optional - Top speed.
jumpdrive boolean optional - Whether the object has a jumpdrive. Documented; the encyclopedia does not read it.
storagecapacity number optional - Storage capacity.
storagetags any optional - Storage tags. Documented; the encyclopedia does not read it.
storagenames any optional - Storage names.
shipstoragecapacity number optional - Ship storage capacity.
unitcapacity number optional - Unit capacity.
missilecapacity number optional - Missile capacity.
workforcecapacity number optional - Workforce capacity.
maxworkforce number optional - Maximum workforce.
radarrange number optional - Radar range.
docks_m number optional - M dock count.
docks_s number optional - S dock count.
shiptypename string optional - The ship type name.
precursor any optional - The entry this one is built from.
products table optional - The products of a production module.
resources table optional - The resources a production module consumes.
productions table optional - Productions. Documented; the encyclopedia does not read it.
weapons table optional - Weapons. Documented; the encyclopedia does not read it.
upgrades table optional - Upgrades. Documented; the encyclopedia does not read it.
thrust_forward number optional - Forward thrust.
thrust_reverse number optional - Reverse thrust.
thrust_vertical number optional - Vertical thrust.
thrust_horizontal number optional - Horizontal thrust.
thrust_pitch number optional - Pitch thrust.
thrust_yaw number optional - Yaw thrust.
drag_yaw number optional - Yaw drag.
inertia_yaw number optional - Yaw inertia.
yawspeed number optional - Yaw speed.
pitchspeed number optional - Pitch speed.
verticalstrafespeed number optional - Vertical strafe speed.
horizontalstrafespeed number optional - Horizontal strafe speed.
boost_thrustfactor number optional - Boost thrust factor.
boost_chargetime number optional - Boost charge time.
boost_rechargetime number optional - Boost recharge time.
boost_maxduration number optional - Boost maximum duration.
boost_accfactor number optional - Boost acceleration factor.
travel_thrustfactor number optional - Travel drive thrust factor.
travel_chargetime number optional - Travel drive charge time.
travel_attacktime number optional - Travel drive attack time.
acceleration number optional - Missile acceleration. Documented; the encyclopedia does not read it.
range number optional - Weapon or turret range.
maxrange number optional - Maximum range.
maxlockrange number optional - Maximum lock range.
dps number optional - Damage per second.
sustaineddps number optional - Sustained damage per second.
hullonlydps number optional - DPS against hull only.
hullshielddps number optional - DPS against hull through shields.
hullnoshielddps number optional - DPS against unshielded hull.
hullonlydpshot number optional - Damage per shot against hull only.
hullshielddpshot number optional - Damage per shot against hull through shields.
hullnoshielddpshot number optional - Damage per shot against unshielded hull.
shieldonlydpshot number optional - Damage per shot against shields only.
hullonlyareadpshot number optional - Area damage per shot against hull only.
hullshieldareadpshot number optional - Area damage per shot against hull through shields.
hullnoshieldareadpshot number optional - Area damage per shot against unshielded hull.
shieldonlyareadpshot number optional - Area damage per shot against shields only.
hullonlyareadamage number optional - Area damage against hull only.
hullshieldareadamage number optional - Area damage against hull through shields.
hullnoshieldareadamage number optional - Area damage against unshielded hull.
damage number optional - Explosion damage. Documented; the encyclopedia reads the split values instead.
explosiondamage number optional - Explosion damage.
hullexplosiondamage number optional - Explosion damage to hull.
shieldexplosiondamage number optional - Explosion damage to shields.
bulletspeed number optional - Bullet speed.
reloadrate number optional - Reload rate.
chargetime number optional - Charge time.
coolingrate number optional - Cooling rate.
initialheat number optional - Heat per shot.
maxheatrate number optional - Maximum heat rate.
isbeamweapon boolean optional - Whether it is a beam weapon.
isrepairweapon boolean optional - Whether it is a repair weapon.
islongrange boolean optional - Whether it is long range.
isscanner boolean optional - Whether it is a scanner.
scanlevel number optional - Scanner level.
miningmultiplier number optional - Mining damage multiplier.
surfaceelementmultiplier number optional - Surface element damage multiplier.
shielddisruption number optional - Shield disruption.
rotation number optional - Turret rotation speed.
maxyawangle number optional - Maximum yaw angle.
maxpitchangle number optional - Maximum pitch angle.
istracking boolean optional - Whether it tracks its target.
isfriendfoe boolean optional - Whether it uses friend-foe identification.
guided boolean optional - Whether the missile is guided.
countermeasureresilience number optional - Resilience to countermeasures.
locktime number optional - Missile lock time.
proximityrange number optional - Proximity fuse range.
recharge number optional - Shield recharge rate.
rechargedelay number optional - Shield recharge delay.
avgprice number optional - Ware average price. Documented; the encyclopedia does not read it.
volume number optional - Ware volume. Documented; the encyclopedia does not read it.
transporttype string optional - Ware transport type. Documented; the encyclopedia does not read it.
methods table optional - Ware production methods. Documented; the encyclopedia does not read it.
illegalto table optional - Factions the ware is illegal to.
illegalwares table optional - Wares illegal to this faction.
issellable boolean optional - Whether the ware can be sold.
ParameterslibraryName string - The name of the library.
entryID any - The ID of the entry to retrieve.
Returnsentry LibraryEntry - The union of every library's fields; pass a literal library name for a narrow type.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 34 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1568, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:776, ui/addons/ego_detailmonitor/menu_map.lua:14501, ui/addons/ego_detailmonitor/menu_station_configuration.lua:3605
GetLibrarySizeengineaddonsallReturns how many entries a data library holds.

function engine addons only all signature: confirmed

GetLibrarySize(libraryName)

Returns how many entries a data library holds. The encyclopedia sums it over its subcategories to show a count per category without reading the entries themselves.

Kindfunction
ParameterslibraryName string - The name of the library.
Returnssize number - The number of entries in the library.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2574
GetLiveDataaddonaddonsallThe live-data hook of the target monitor: ui/addons/ego_targetmonitor/targetmonitor.lua defines it at file scope, so it lands in the addons Lua environment where anything can reach it.

function addon addons only all signature: from source probed: 8.00, 9.00

GetLiveData(placeholder, component, templateConnectionName)

The live-data hook of the target monitor: ui/addons/ego_targetmonitor/targetmonitor.lua defines it at file scope, so it lands in the addons Lua environment where anything can reach it. Nothing in vanilla calls it - the engine does, to fill in a target monitor placeholder - which makes it the usual place a mod hooks to put its own text on the monitor. **It is the other half of GetTargetMonitorDetails.** That call returns the display template with $token$ placeholders in its text rows; placeholder is one of those tokens without the dollars, and this resolves it against a component into the string to substitute. targetmonitor.lua:1052 dispatches on the name - "targetmonitorstate", "unitsstored", "containerheader", "unlockheader" and the rest. GetLiveData("hullpercent", ship, "") -> "100". **The return is a string**, whatever the token measures. Passing nil for placeholder returns nothing at all and logs targetmonitor.lua(1243): GetComponentData(): Invalid argument #2 (got nil, expected string) from inside the function.

Kindfunction
Parametersplaceholder string - The template token to resolve, without the $ delimiters, e.g. "hullpercent".
component any - The component to read it from.
templateConnectionName string - The name of the template connection. Must be a string; "" is accepted.
Returnsdata string - The resolved text to substitute for the token.
Originaddon
ui/addons/ego_targetmonitor/targetmonitor.lua - top-level function (8.00 :1047, 9.00 :1052)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
Probed in-game8.00, 9.00 - resolved against a ship, paired with the GetTargetMonitorDetails template that carries the token, and the nil-placeholder failure reproduced on 8.00; a string on all eight 9.00 targets
GetLiveDataBridgeengineallallRetrieves live data from a bridge, used for UI updates between different components.

function engine all (addons + core) all signature: confirmed

GetLiveDataBridge(dataName, component, connection)

Retrieves live data from a bridge, used for UI updates between different components.

Kindfunction
ParametersdataName string - The name of the data to retrieve (e.g., "targetmonitorstate").
component string - The component requesting the data.
connection any - The connection context.
Returnsdata any - The live data.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 3 arguments
Seen at ui/core/lua/monitors.lua:1742
GetLoadingInfoengineallallReturns the state of the loading screen as eight values: the loading text and percentage, how many items have loaded, whether a savegame is being loaded, how many proverbs there are, and the initial screen's identifier, text and time.

function engine all (addons + core) all signature: confirmed

GetLoadingInfo()

Returns the state of the loading screen as eight values: the loading text and percentage, how many items have loaded, whether a savegame is being loaded, how many proverbs there are, and the initial screen's identifier, text and time. The loading screen takes only the ones it needs and skips the rest with _.

Kindfunction
Parametersnone documented
Returnstext string - The current loading text.
percentage number - The loading progress percentage.
loadCount number - The number of items loaded.
isSavegame boolean - True if loading a savegame.
numProverbs number - The number of proverbs available.
initialLoadingScreen any - The initial loading screen identifier.
initialLoadingScreenText string - The initial loading screen text.
initialLoadingScreenTime number - The initial loading screen time.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/core/lua/loading.lua:269
GetLocalizedKeyNameengineallallGets the localized name for a key based on its input type and ID.

function engine all (addons + core) all signature: confirmed

GetLocalizedKeyName(inputType, inputID)

Gets the localized name for a key based on its input type and ID.

Kindfunction
ParametersinputType string - The type of input (e.g., "action").
inputID any - The ID of the input.
ReturnskeyName string - The localized name of the key.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 14 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_docked.lua:436, ui/addons/ego_detailmonitorhelper/helper.lua:8849, ui/core/lua/compass.lua:330
GetLocalizedRawKeyNameengineaddonsallReturns the name of a raw key code in the player's language - what the controls page prints for a keyboard binding, next to the icon for the device.

function engine addons only all signature: confirmed

GetLocalizedRawKeyName(code)

Returns the name of a raw key code in the player's language - what the controls page prints for a keyboard binding, next to the icon for the device.

Kindfunction
Parameterscode any - The raw key code.
ReturnskeyName string - The localized name of the key.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:4955
GetLocalMouseClickPositionengineallallReturns where the last click landed, in the local frame's coordinates - the position of the click rather than of the pointer now, which is what GetLocalMousePosition gives.

function engine all (addons + core) all signature: confirmed

GetLocalMouseClickPosition()

Returns where the last click landed, in the local frame's coordinates - the position of the click rather than of the pointer now, which is what GetLocalMousePosition gives.

Kindfunction
Parametersnone documented
Returnsx number - The x-coordinate of the mouse click.
y number - The y-coordinate of the mouse click.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:2992
GetLocalMousePositionengineallallReturns the mouse position in the local frame's coordinates.

function engine all (addons + core) all signature: confirmed

GetLocalMousePosition()

Returns the mouse position in the local frame's coordinates. Both values come back nil when there is no pointer to report - with a gamepad, or off screen - so vanilla wraps the call in table.pack and tests the first value before using it.

Kindfunction
Parametersnone documented
Returnsx number - The x-coordinate of the mouse.
y number - The y-coordinate of the mouse.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 92 vanilla call sites, 0 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:336, ui/addons/ego_detailmonitor/menu_crafting.lua:454, ui/addons/ego_detailmonitor/menu_diplomacy.lua:3867, ui/addons/ego_detailmonitor/menu_map.lua:5420
GetLODOptionengineaddonsallReturns the level of detail on the engine's 0 to 1 scale; the options menu multiplies by 100 and clamps to its slider's 1 to 100 range.

function engine addons only all signature: confirmed

GetLODOption()

Returns the level of detail on the engine's 0 to 1 scale; the options menu multiplies by 100 and clamps to its slider's 1 to 100 range.

Kindfunction
Parametersnone documented
Returnslod number - The current LOD value.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7294
GetLogbookengineaddonsallReturns a page of logbook entries: numQuery of them starting at startIndex, limited to one category.

function engine addons only all signature: confirmed

GetLogbook(startIndex, numQuery, category)

Returns a page of logbook entries: numQuery of them starting at startIndex, limited to one category. It can return nothing, so all three call sites fall back with or {}, and all three page the log rather than asking for all of it - the query limit is a config value. menu_playerinfo.lua:2946 reads title, text, time, money, bonus, entityname, factionname, highlighted, interaction, interactiontext and interactioncomponent. An entry is only jumpable when interaction is set **and** IsValidComponent accepts its interactioncomponent; vanilla checks both before drawing the button.

Kindfunction
LogbookEntrytitle string - The entry's headline, drawn in bold.
text string - The entry body; may be the empty string, which vanilla skips rather than drawing.
time number - The entry timestamp, in game time.
category any - The entry's category.
money number - Credits gained or lost, 0 where the entry is not financial.
bonus number - Bonus credits, 0 where there are none.
entityname string - The entity the entry concerns; may be the empty string.
factionname string - The faction the entry concerns; may be the empty string.
highlighted boolean - Whether the entry is drawn in the highlight colour.
interaction string optional - The interaction type, if the entry can be jumped to.
interactiontext string optional - A format string for the jump button's mouse-over text, taking the component name.
interactioncomponent any optional - The component the interaction targets; test it with IsValidComponent first.
ParametersstartIndex number - The starting index for retrieval.
numQuery number - The number of entries to query.
category any - The category of logbook entries to retrieve.
Returnslogbook LogbookEntry[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:16808, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2855
GetMacroDataengineaddonsallReads named properties off a macro, in the same variadic form as GetComponentData: every argument after the macro is a property name, and one value comes back per name, in order.

function engine addons only all signature: confirmed

GetMacroData(macro, ...)

Reads named properties off a macro, in the same variadic form as GetComponentData: every argument after the macro is a property name, and one value comes back per name, in order. Unlike GetComponentData it takes a macro name rather than a component, so it works without an instance of the thing existing anywhere in the game. infolibrary is the key worth knowing: it names the library the macro belongs to, which is what the map feeds straight into GetLibraryEntry. The 55 keys 9.00 vanilla passes, most used first: name, infolibrary, ware, makerraceid, shortname, islasertower, primarypurpose, entityfemale, makerrace, makerracename, shiptype, icon, sectors, compatibility, entityrace, image, macro, ammoicon, basemacro, compatibilityinfo, entityracename, hasinfoalias, isventuremodule, mk, size, isminingweapon, isunit, isvirtual, prestigename, sectorcomponent, shieldcapacitymodifier, shieldrechargedelaymodifier, shieldrechargeratemodifier, shiptypename, spacesuitmacro, storagetags, tier, waregroup, weaponheatmodifier, canclaimownership, defaultmaxtraveldrivestabilityvalue, haswaveprotection, isdeployable, isfixedstation, isintegrated, isshowroomdock, isshowroommodule, makericon, maxradarrange, maxtraveldrivestabilityvalue, maxworkforce, primarypurposeicon, resourcedetectionrange, waregroupicon, workforcecapacity.

Kindfunction
Parametersmacro string - The name of the macro.
Returnsany ... - One value per name, in the order asked.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 251 vanilla call sites, 2-9 arguments
Seen at ui/addons/ego_detailmonitor/menu_docked.lua:509, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:574, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:658, ui/addons/ego_detailmonitor/menu_map.lua:7515
GetMacroUnitStorageCapacityengineaddonsallReturns how many units - drones and the like - a macro can hold.

function engine addons only all signature: confirmed

GetMacroUnitStorageCapacity(macro)

Returns how many units - drones and the like - a macro can hold. It works from the macro, so the ship configuration menu can show the capacity of a ship that does not exist yet.

Kindfunction
Parametersmacro any - The macro to check.
Returnscapacity number - The unit storage capacity.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_ship_configuration.lua:10461
GetMappedJoysticksengineaddonsallReturns the joysticks that are actually mapped to a slot, next to GetJoysticksOption which returns the slot assignments themselves.

function engine addons only all signature: confirmed

GetMappedJoysticks()

Returns the joysticks that are actually mapped to a slot, next to GetJoysticksOption which returns the slot assignments themselves.

Kindfunction
Parametersnone documented
Returnsmappedjoysticks table - A table of mapped joysticks.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:4927
GetMaxTextLengthengineaddonsallHow many characters of text fit into width pixels when drawn in the named font at the named size.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetMaxTextLength(text, fontname, fontsize, width)

How many characters of text fit into width pixels when drawn in the named font at the named size. It measures a string against a box; it has nothing to do with a widget, and the element ID this was once declared to take does not exist. GetMaxTextLength("Probe text", "Zekton", 22, 200) -> 10. All four parameters are required: a bare call answers Invalid number of arguments (0, expected 4). It needs no game object and changes nothing, so it can be called from anywhere at any time.

Kindfunction
Parameterstext string - The string to measure.
fontname string - The font to measure it in, e.g. "Zekton".
fontsize number - The font size.
width number - The available width in pixels.
ReturnsmaxLength number - How many characters of text fit into width.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - one working call with synthesised arguments, arity stated by the engine in words; both rungs answered the same either side
GetMenuParametersengineaddonsallGets the parameters of the current menu.

function engine addons only all signature: unverified

GetMenuParameters()

Gets the parameters of the current menu. (No usage found in provided files)

Kindfunction
Parametersnone documented
Returnsparams table - The menu parameters.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
GetMenuParameters2engineaddonsallReturns what the menu was opened with: its name and two parameters.

function engine addons only all signature: confirmed

GetMenuParameters2()

Returns what the menu was opened with: its name and two parameters. helper.lua calls it at the top of every menu setup and compares the name against its own, so a menu can tell that the parameters on offer are not for it.

Kindfunction
Parametersnone documented
Returnsname string - The name of the menu.
param any - The first parameter.
param2 any - The second parameter.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:1345
GetMessageCutsceneParameterengineaddonsallReturns the cutscene parameter carried by a message, addressed by message ID and category - what the player information menu needs to play the cutscene a message refers to.

function engine addons only all signature: confirmed

GetMessageCutsceneParameter(messageID, category)

Returns the cutscene parameter carried by a message, addressed by message ID and category - what the player information menu needs to play the cutscene a message refers to.

Kindfunction
ParametersmessageID any - The ID of the message.
category any - The category of the message.
Returnscutsceneparameter any - The cutscene parameter.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:4491
GetMessageScreenPositionengineallallProjects a message's world position onto the screen and returns four values: the x and y in screen coordinates, whether it is on screen at all, and the distance from the camera.

function engine all (addons + core) all signature: confirmed

GetMessageScreenPosition(messageID)

Projects a message's world position onto the screen and returns four values: the x and y in screen coordinates, whether it is on screen at all, and the distance from the camera. The x comes back nil when there is no position to project, which is what the core target system tests.

Kindfunction
ParametersmessageID any - The ID of the message.
Returnsx2d number - The x-coordinate on the screen.
y2d number - The y-coordinate on the screen.
onScreen boolean - True if the position is on the screen.
cameraDistance number - The distance from the camera.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/targetsystem.lua:2166
GetMiningUnitMacrosengineaddonsallReturns the mining unit macros a ship macro can carry - the drones it launches to mine.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetMiningUnitMacros(macro)

Returns the mining unit macros a ship macro can carry - the drones it launches to mine. The argument is a **macro name string**, not a component; this row declared no parameter at all until it was measured. A bare call still returns an **empty array**, so the return value never announces the missing argument - but the engine does, in the log: Invalid number of arguments (0, expected 1). Reading returns alone is what hid this. Measured on 8.00: ship_arg_m_miner_liquid_01_a_macro -> ship_gen_s_miningdrone_liquid_01_a_macro. Every other macro measured returns an empty array, solid miners included, so the answer is whether the macro carries mining **drones** and not whether it mines at all. GetStandardUnitMacros on the same macro returns this set plus the cargo drone, so this is the mining subset of that one.

Kindfunction
Parametersmacro string - The macro name of the ship to ask about.
Returnsmacros string[] - The mining unit macros, empty when the macro carries none.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - 54 calls over nine ship macros and a station macro, one non-empty; twelve more calls on 9.00, still at most one entry
GetMissionDetailsengineaddonsallReturns everything about a mission in one call - twenty-four values, of which vanilla names about a dozen and skips the rest with _: the mission ID, name, description, difficulty, thread type, main and sub type, faction, reward and reward text, the mission time, whether it can be aborted, whether guidance is disabled, the associated component, the alert level, whether it has an objective, and the thread mission ID.

function engine addons only all signature: confirmed

GetMissionDetails(mission)

Returns everything about a mission in one call - twenty-four values, of which vanilla names about a dozen and skips the rest with _: the mission ID, name, description, difficulty, thread type, main and sub type, faction, reward and reward text, the mission time, whether it can be aborted, whether guidance is disabled, the associated component, the alert level, whether it has an objective, and the thread mission ID. Missions are addressed by index, from 1 to GetNumMissions.

Kindfunction
Parametersmission any - The mission identifier.
ReturnsmissionID any
name string
description string
difficulty any
threadType any
mainType any
subtype any
subTypeName string
faction string
reward any
rewardText string
_ any
_ any
_ any
_ any
_ any
missionTime any
_ any
abortable boolean
disableGuidance boolean
associatedComponent any
alertLevel any
hasObjective boolean
threadMissionID any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:10052, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:144, ui/addons/ego_interactmenu/menu_interactmenu.lua:6184
GetMissionObjectiveengineaddonsallReturns the current objective of a mission as five values: the objective text, its timeout, the name of its progress tracker, and the current and maximum progress.

function engine addons only all signature: confirmed

GetMissionObjective(mission)

Returns the current objective of a mission as five values: the objective text, its timeout, the name of its progress tracker, and the current and maximum progress. Everything the map needs for one objective line comes out of this single call.

Kindfunction
Parametersmission any - The mission identifier.
ReturnsobjectiveText string - The text of the objective.
timeout any - The timeout for the objective.
progressName string - The name of the progress tracker.
curProgress number - The current progress.
maxProgress number - The maximum progress.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18686
GetMissionObjectiveEncyclopediaReferenceengineaddonsallReturns where a mission objective points in the encyclopedia: the library name and up to two item references.

function engine addons only all signature: confirmed

GetMissionObjectiveEncyclopediaReference(missionID, i, j)

Returns where a mission objective points in the encyclopedia: the library name and up to two item references. The objective is addressed by index, and the third argument reaches an objective of a sub-mission - the briefing menu passes both shapes.

Kindfunction
ParametersmissionID any - The ID of the mission.
i number - The index of the objective.
j number optional - An optional sub-index.
Returnslibrary string - The name of the encyclopedia library.
item any - The primary item reference.
item2 any - The secondary item reference.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:28271, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:934, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:960
GetMissionOfferAtConnectionengineaddonsallReturns the mission offer sitting at one connection of a component - eleven values, of which the eleventh is the offer ID.

function engine addons only all signature: confirmed

GetMissionOfferAtConnection(component, templateConnectionName)

Returns the mission offer sitting at one connection of a component - eleven values, of which the eleventh is the offer ID. The interact menu skips straight to that ID with a row of _; the target monitor takes the descriptive ones as well. A connection has to be tagged mission for there to be anything to return.

Kindfunction
Parameterscomponent any - The component ID.
templateConnectionName string - The name of the template connection.
ReturnsmName string - Mission name.
mDesc string - Mission description.
mFaction string - Mission faction.
mType any - Mission type.
mLevel any - Mission level.
mReward any - Mission reward.
mRewardText string - Mission reward text.
mOppFactionName string - Opposing faction name.
mLicenceName string - Required license name.
_ any
mid any - Mission offer ID.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_interactmenu/menu_interactmenu.lua:3332, ui/addons/ego_targetmonitor/targetmonitor.lua:934
GetMissionOfferDetailsengineaddonsallReturns everything about a mission offer in one call - twenty-three values: name, description, difficulty, thread type, main and sub type, faction, reward money and text, the briefing objectives and which step is active, the briefing missions, the opposing faction, the licence, the mission time and duration, whether it can be aborted, whether guidance is disabled, the associated component, the alert level, and the offer's actor and component.

function engine addons only all signature: confirmed

GetMissionOfferDetails(missionOfferID)

Returns everything about a mission offer in one call - twenty-three values: name, description, difficulty, thread type, main and sub type, faction, reward money and text, the briefing objectives and which step is active, the briefing missions, the opposing faction, the licence, the mission time and duration, whether it can be aborted, whether guidance is disabled, the associated component, the alert level, and the offer's actor and component. GetMissionDetails is the same idea for a mission already accepted.

Kindfunction
ParametersmissionOfferID any - The ID of the mission offer.
Returnsname string
description string
difficulty any
threadType any
mainType any
subtype any
subTypeName string
faction string
rewardMoney any
rewardText string
briefingObjectives table
activeBriefingStep any
briefingMissions table
oppFaction string
licence any
missionTime any
duration any
abortable boolean
guidanceDisabled boolean
associatedComponent any
alertLevel any
offerActor any
offerComponent any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18512, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:894, ui/addons/ego_interactmenu/menu_interactmenu.lua:2556
GetModuleTypeengineaddonsallReturns the type of a station module.

function engine addons only all signature: confirmed

GetModuleType(moduleID, moduleMacro)

Returns the type of a station module. The two parameters are alternatives, not a pair: vanilla passes a module component when it has one, and nil plus a macro name when it only has the macro.

Kindfunction
ParametersmoduleID any - The ID of the module.
moduleMacro any optional - An optional macro for the module.
ReturnsmoduleType string - The type of the module.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:8867, ui/addons/ego_detailmonitor/menu_map.lua:8895
GetMouseLookToggleOptionengineaddonsallReturns whether mouse look is set to toggle rather than to hold, and pairs with SetMouseLookToggleOption.

function engine addons only all signature: confirmed

GetMouseLookToggleOption()

Returns whether mouse look is set to toggle rather than to hold, and pairs with SetMouseLookToggleOption.

Kindfunction
Parametersnone documented
ReturnsisToggleEnabled boolean - True if mouse look toggle is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2096
getMousePositionengineallallReturns the mouse pointer position in screen pixels.

function engine all (addons + core) all signature: unverified

getMousePosition()

Returns the mouse pointer position in screen pixels. Sibling of getScreenInfo. No vanilla code calls it; signature unverified.

Kindfunction
Parametersnone documented
Returnsx number
y number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetNotificationDetailsengineallallReturns everything about a notification as a table.

function engine all (addons + core) all signature: confirmed

GetNotificationDetails(notificationID)

Returns everything about a notification as a table. It can come back empty for a notification that is already gone, so the monitor code falls back with or {} and files the result under the priority it got from GetNotificationPriority.

Kindfunction
ParametersnotificationID any - The ID of the notification.
ReturnsnotificationInfos table - A table containing the details of the notification.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/core/lua/monitors.lua:2709
GetNotificationPriorityengineallallReturns the priority of a notification, or nothing when the notification is already gone - which is exactly what the monitor code tests for before showing it.

function engine all (addons + core) all signature: confirmed

GetNotificationPriority(notificationID)

Returns the priority of a notification, or nothing when the notification is already gone - which is exactly what the monitor code tests for before showing it.

Kindfunction
ParametersnotificationID any - The ID of the notification.
Returnspriority any - The priority of the notification.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:2986
GetNPCBlackboardengineaddonsallReads one value off an NPC's blackboard, where Mission Director code keeps it.

function engine addons only all signature: confirmed

GetNPCBlackboard(entity, key)

Reads one value off an NPC's blackboard, where Mission Director code keeps it. The key is the MD variable name including its $: $HiringFee, $config_attackenemies, $diplomacy_exp_negotiation. It returns nothing when the variable was never set, so callers fall back with or 0. SetNPCBlackboard writes the same values back.

Kindfunction
Parametersentity any - The ID of the NPC entity.
key string - The key for the value to retrieve (e.g., "$HiringFee").
Returnsvalue any - The value associated with the key on the blackboard.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:740, ui/addons/ego_detailmonitor/menu_map.lua:4137, ui/addons/ego_detailmonitorhelper/helper.lua:8823
GetNPCsengineaddonsallRetrieves a table of NPCs from a given container (e.g., a room or a ship).

function engine addons only all signature: confirmed

GetNPCs(containerID)

Retrieves a table of NPCs from a given container (e.g., a room or a ship).

Kindfunction
ParameterscontainerID any - The ID of the container.
Returnsnpcs table - A table of NPCs.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:15435, ui/addons/ego_detailmonitor/menu_transporter.lua:819
GetNPCsInSectorOnStationsengineaddonsallReturns the people on stations in sector that are within distance of **the player** - not of the sector being asked about.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetNPCsInSectorOnStations(sectorID, distance)

Returns the people on stations in sector that are within distance of **the player** - not of the sector being asked about. The sector argument selects the population, the radius is measured across the universe from wherever the player is, in metres, so a remote sector needs a radius on the order of 1e8 before it answers at all. distance is a literal radius and not a flag: 0 returns nothing, in every sector, every time. The count saturates at the sector's own total once the radius covers it - Ore Belt reached 31 at 500000 and stayed there through 1e9 - so a huge value is an honest radius rather than a sentinel for "no limit". The container has to be a station or a buildstorage. People on ships are not included, whatever the radius. Both arguments are 64-bit component IDs. A UniverseID cdata straight out of C.GetContextByClass is refused with Invalid argument #1 <sector> (got cdata, expected component ID) - convert it first.

Kindfunction
ParameterssectorID any - The sector whose stations are searched, as a 64-bit component ID.
distance number - The radius in metres, measured from the player. 0 returns nothing.
Returnsnpcs table - The people found, empty when none are in range.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - the reference point measured against three candidates over seven sectors and then proved by moving the player: the gradient followed them, so no sector-local point can be what the radius is measured from. The same split on 9.00 over eight sectors: the player's own sector answers 0, 7, then 34 as the radius grows while every other sector answers 0 at every radius, and the first non-empty radius lands on the nearest npc's own distance from the player to the metre
GetNumAffordableTradeItemsengineaddonsallCalculates the number of items that can be afforded with a given amount of money.

function engine addons only all signature: confirmed

GetNumAffordableTradeItems(availableMoney, itemPrice)

Calculates the number of items that can be afforded with a given amount of money.

Kindfunction
ParametersavailableMoney number - The amount of money available.
itemPrice number - The price of a single item.
ReturnsaffordableAmount number - The number of items that can be afforded.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21858
GetNumErrorsengineallallReturns how many errors the game has logged.

function engine all (addons + core) all signature: confirmed

GetNumErrors()

Returns how many errors the game has logged. The debug log reads it to decide whether it has anything to report at all, without walking the log.

Kindfunction
Parametersnone documented
ReturnsnumErrors number - The total number of errors.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:884
GetNumLogbookengineaddonsallReturns how many logbook entries a category holds.

function engine addons only all signature: confirmed

GetNumLogbook(category)

Returns how many logbook entries a category holds. The menus ask for the count first and then page through the entries with GetLogbook, which takes a start index and a length.

Kindfunction
Parameterscategory any - The category of the logbook.
ReturnsnumEntries number - The number of entries in that category.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:16803, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2829
GetNumMissionsengineaddonsallReturns how many missions are active.

function engine addons only all signature: confirmed

GetNumMissions()

Returns how many missions are active. Every vanilla caller immediately loops from 1 to that count and asks for each mission in turn, so the missions are addressed by index, not handed over as a list.

Kindfunction
Parametersnone documented
ReturnsnumMissions number - The number of missions.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:10050, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:142, ui/addons/ego_interactmenu/menu_interactmenu.lua:6182
GetOffsetengineallallReturns the x and y offset of a widget inside its parent.

function engine all (addons + core) all signature: confirmed

GetOffset(widgetID)

Returns the x and y offset of a widget inside its parent. Vanilla adds the frame's own position on top to get a screen position - the offset alone is relative, not absolute.

Kindfunction
ParameterswidgetID any - The ID of the widget.
Returnsx number - The x-offset.
y number - The y-offset.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 19 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:865, ui/widget/lua/widget_fullscreen.lua:12016
GetOrderFailureParamsengineaddonsallReturns the parameters of one order failure, so the map can explain why an order could not run.

function engine addons only all signature: confirmed

GetOrderFailureParams(object, failureID)

Returns the parameters of one order failure, so the map can explain why an order could not run. The failure is addressed by its numeric ID on the object that failed.

Kindfunction
Parametersobject any - The object associated with the order.
failureID number - The ID of the failure.
Returnsparams table - A table containing the failure parameters.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:11923
GetOrderParamsengineaddonsallReturns the parameters of one order as a list of entries, each with a value.

function engine addons only all signature: confirmed

GetOrderParams(object, orderIndex)

Returns the parameters of one order as a list of entries, each with a value. The order is addressed by its queue index, or by the strings "default" and "planneddefault" for the default order slots - the same addressing SetOrderParam takes.

Kindfunction
Parametersobject any - The object (e.g., ship) whose order is being queried.
orderIndex number - | "default" | "planneddefault" The index of the order in the queue, or a string for the default order.
Returnsparams table - A table containing the order parameters.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 20 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:8727, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:2880, ui/addons/ego_interactmenu/menu_interactmenu.lua:4625
GetOriginengineallallGets the origin of something.

function engine all (addons + core) all signature: unverified

GetOrigin()

Gets the origin of something. (No usage found in provided files)

Kindfunction
Parametersnone documented
Returnsorigin any - The origin.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetOwnLicencesengineaddonsallReturns the licences a faction offers, as a list.

function engine addons only all signature: confirmed

GetOwnLicences(factionID)

Returns the licences a faction offers, as a list. Called per faction rather than for all of them - the diplomacy and player information menus loop over the relations and ask for each one, then sort the result themselves; the trader menu asks only about the faction being traded with. precursor and parent are what make the list a tree: a licence with a precursor cannot be bought until that one is held.

Kindfunction
OwnLicenceid string - The licence id.
type string - The licence type.
name string - The licence's displayed name.
price number - The licence price.
minrelation number - The minimum relation required to buy it.
issellable boolean - Whether the licence can be bought from this faction.
icon string optional - The licence icon.
desc string optional - The licence description.
isbasic boolean optional - Whether it is a basic licence.
precursor string optional - The licence that must be held first.
parent string optional - The licence this one sits under.
ParametersfactionID string - The ID of the faction.
Returnslicences OwnLicence[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1200, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:564, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2363, ui/addons/ego_detailmonitor/menu_trader_blueprintsorlicences.lua:145
GetPeopleRoleDataengineaddonsallReturns the people aboard a controllable, broken down by role.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetPeopleRoleData(controllable, role)

Returns the people aboard a controllable, broken down by role. The result is a mixed table: an array of one entry per role actually present - { amount, name, role }, where name is the display name ("Crewman", "Marine") and role the libraries/roles.xml id - plus the hash keys capacity and stored holding the object's totals. Passing a role in argument 2 filters the array to that role alone and adds a rolestored key with its headcount; a role nobody holds gives an empty array and rolestored 0. Measured on 8.00, a crewed XL ship: 181 service + 179 marine, capacity 361, stored 361. The roles do not sum to stored. In that measurement they came to 360 against a stored of 361: a person filling a control post, such as the captain or a station manager, is counted in the total but belongs to no role. An object whose people all hold posts returns an empty array, so the array part is invisible unless role-holding crew are actually aboard. Argument 1 is a controllable, not a role: a role string in slot 1 gives "Invalid argument #1 <controllable> (got string, expected component ID)", and an npc gives "is not of class controllable". Both rejections still return a table rather than failing, so an empty result is not by itself evidence that the call was accepted.

Kindfunction
Parameterscontrollable any - The ship or station whose people to report.
role string optional - A role id from libraries/roles.xml, e.g. "marine", "service", "worker".
ReturnsroleData table - Array of { amount: integer, name: string, role: string }, plus capacity, stored and (when role is given) rolestored.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - both arguments and the return shape measured in-game; on 9.00 the bare call refused with "expected >= 1", seven role ids each answering, and a person refused as not of class controllable
GetPersonalizedCrashReportsOptionengineaddonsallReturns whether crash reports carry the player's user ID, and pairs with SetPersonalizedCrashReportsOption on the privacy page - the separate question from whether reports are sent at all.

function engine addons only all signature: confirmed

GetPersonalizedCrashReportsOption()

Returns whether crash reports carry the player's user ID, and pairs with SetPersonalizedCrashReportsOption on the privacy page - the separate question from whether reports are sent at all.

Kindfunction
Parametersnone documented
ReturnsisEnabled boolean - True if personalized crash reports are enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2895
GetPlatformsengineaddonsallReturns the **docking bays** of a container, whatever this name suggests - every one of 358 elements measured across five targets resolved to class dockingbay, with bay names like "S Standard Docking Bay" and "M Luxury Docking Bay".

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetPlatforms(container)

Returns the **docking bays** of a container, whatever this name suggests - every one of 358 elements measured across five targets resolved to class dockingbay, with bay names like "S Standard Docking Bay" and "M Luxury Docking Bay". It accepts ships as readily as stations: a player HQ gave 172, a shipyard 166, a Tokyo carrier 19, a Syn destroyer 1 and a Katana corvette 0 - the empty being the correct answer for a ship with no bay.

Kindfunction
Parameterscontainer any - The ship or station whose docking bays to list.
ReturnsdockingBays table - Array of dockingbay components; empty when the container has none.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - arity 1, every element's class resolved over the whole array, on both versions
GetPlayerActivityengineallallReturns what the player is currently doing as three values: the activity name, its colour and its background colour.

function engine all (addons + core) all signature: confirmed

GetPlayerActivity()

Returns what the player is currently doing as three values: the activity name, its colour and its background colour. The name is none when there is nothing running, and travel, seta or scan when there is; the interact menu passes it straight into C.StopPlayerActivity to stop whatever it turns out to be.

Kindfunction
Parametersnone documented
Returnsactivity string - The name of the current activity (e.g., "travel", "seta", "scan").
activityColor any - The color associated with the activity.
activityBackgroundColor any - The background color for the activity.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 13 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_docked.lua:447, ui/addons/ego_detailmonitor/menu_map.lua:5370, ui/addons/ego_interactmenu/menu_interactmenu.lua:3147, ui/core/lua/crosshair handling.lua:1053
GetPlayerContextByClassengineaddonsallReturns the object of a given class the player is currently inside - the container they are docked at, for instance.

function engine addons only all signature: confirmed

GetPlayerContextByClass(className)

Returns the object of a given class the player is currently inside - the container they are docked at, for instance. It is GetContextByClass with the player as the starting point, and the two are used together to test whether the player and something else are in the same place.

Kindfunction
ParametersclassName string - The class name of the context to retrieve (e.g., "container").
ReturnscontextID any - The ID of the context object.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_station_overview.lua:388, ui/addons/ego_detailmonitor/menu_trader_inventory.lua:84
GetPlayerInventoryengineaddonsallReturns the player's inventory, keyed by ware id, in the same shape GetInventory returns for any other entity: each value carries name, amount and price.

function engine addons only all signature: confirmed

GetPlayerInventory()

Returns the player's inventory, keyed by ware id, in the same shape GetInventory returns for any other entity: each value carries name, amount and price. Every menu that shows or spends inventory wares - crafting, the mod shop, the player information page - reads it fresh rather than caching it, because crafting and trading both change it underneath.

Kindfunction
Parametersnone documented
Returnsinventory table<string, InventoryWare>
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 11 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:227, ui/addons/ego_detailmonitor/menu_diplomacy.lua:4110, ui/addons/ego_detailmonitor/menu_playerinfo.lua:1676, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:11043
GetPlayerMoneyengineaddonsallReturns the player's money.

function engine addons only all signature: confirmed

GetPlayerMoney()

Returns the player's money. It is what every affordability check in the UI compares against, and menus clamp it with math.max(0, ...) where a negative balance would break their arithmetic.

Kindfunction
Parametersnone documented
Returnsmoney number - The player's current money.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 41 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:2572, ui/addons/ego_detailmonitor/menu_map.lua:3495, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2553, ui/addons/ego_detailmonitor/menu_research.lua:573
GetPlayerRoomengineaddonsallGets the player's current room.

function engine addons only all signature: unverified

GetPlayerRoom()

Gets the player's current room. (No usage found in provided files)

Kindfunction
Parametersnone documented
ReturnsroomID any - The ID of the player's room.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
GetPlayerShipHullShieldengineallallReturns the player ship's hull and shield percentages, plus the time since the last attack and the shield charging and charged sounds - five values, of which the crosshair takes only the shield.

function engine all (addons + core) all signature: confirmed

GetPlayerShipHullShield()

Returns the player ship's hull and shield percentages, plus the time since the last attack and the shield charging and charged sounds - five values, of which the crosshair takes only the shield.

Kindfunction
Parametersnone documented
ReturnsplayerHull number - The current hull percentage.
playerShield number - The current shield percentage.
timeSinceLastAttack any - Time since the last attack.
shieldChargingSound any - Sound for shield charging.
shieldChargedSound any - Sound for shield fully charged.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/core/lua/crosshair handling.lua:2231
GetPlayerSpeedengineallallReturns the player ship's speed as eight values: the actual speed, the targeted speed, the speed per second, whether it is boosting, whether travel mode is on, whether it is matching speed, and the target's speed both raw and normalised.

function engine all (addons + core) all signature: confirmed

GetPlayerSpeed()

Returns the player ship's speed as eight values: the actual speed, the targeted speed, the speed per second, whether it is boosting, whether travel mode is on, whether it is matching speed, and the target's speed both raw and normalised. The crosshair takes only the flag it needs and skips the rest with _.

Kindfunction
Parametersnone documented
ReturnsactualSpeed number - The current actual speed.
targetedSpeed number - The targeted speed.
actualSpeedPerSecond number - The speed in units per second.
boosting boolean - True if the ship is boosting.
travelMode boolean - True if in travel mode.
matchSpeed boolean - True if matching speed with a target.
targetSpeed number - The speed of the target.
normalTargetSpeed number - The normal speed of the target.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/core/lua/crosshair handling.lua:2938
GetPlayerSteeringStrengthengineallallReturns how hard the player is currently steering.

function engine all (addons + core) all signature: confirmed

GetPlayerSteeringStrength()

Returns how hard the player is currently steering. The core target system compares it against a configured limit to decide that the player is actively flying, and holds the softtarget lock while that is true.

Kindfunction
Parametersnone documented
Returnsstrength number - The current steering strength.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/targetsystem.lua:2399
GetPlayerTargetengineaddonsallReturns the player's current target, or nothing when there is none.

function engine addons only all signature: confirmed

GetPlayerTarget()

Returns the player's current target, or nothing when there is none. The interact menu tests it before offering an Attack My Target action.

Kindfunction
Parametersnone documented
ReturnstargetID any - The ID of the player's target.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_interactmenu/menu_interactmenu.lua:4971
GetPossibleAdaptersengineaddonsallReturns the graphics adapters that can be selected, as a list.

function engine addons only all signature: confirmed

GetPossibleAdapters()

Returns the graphics adapters that can be selected, as a list. The options menu pairs it with GetAdapterOption to build the dropdown and mark the current one; GetAdapterOption reports the adapter by **name**, so vanilla matches on name and then uses ordinal as the dropdown's value.

Kindfunction
DisplayAdaptername string - The adapter name.
ordinal integer - The adapter ordinal - the value SetAdapterOption takes.
Parametersnone documented
Returnsadapters DisplayAdapter[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6936
GetPossibleProductsengineaddonsallReturns what a production module produces - despite the plural, **one entry per module, not one per production method of the ware**.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetPossibleProducts(moduleID)

Returns what a production module produces - despite the plural, **one entry per module, not one per production method of the ware**. A hull parts module returned only the default method, 900s for graphene 40 / energycells 80 / refinedmetals 280, though hullparts defines three methods; libraries/modulegroups.xml explains it, giving prod_gen_hullparts and prod_tel_hullparts **separate module macros**. So the module's own macro decides the method, and the ware's method list is not what this reads. The module is class module, destructible, production and **not** container or object, which is the class shape a container-guard silently skips. **The station holding it is not a substitute**: a player factory answered an empty array where its own production module answered the ware in full.

Kindfunction
ProductResourceware string - The resource ware id.
name string - The resource's displayed name.
cycle number - The amount consumed per cycle.
PossibleProductware string - The product ware id.
name string - The product's displayed name.
cycletime number - The cycle duration in seconds - the time of the matching method in libraries/wares.xml.
component string - Empty string on every target measured, both player and NPC owned. Unexplained.
resources ProductResource[] - What each cycle consumes; each element's cycle is that input's amount.
ParametersmoduleID any - The production module to ask about.
Returnsproducts PossibleProduct[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - two wares, two owners, entries dumped in full, arity 1; on 9.00 a production module answered one entry in full while the station holding it answered empty
GetPossibleResolutionsengineaddonsallReturns the resolutions the display can take, as a list.

function engine addons only all signature: confirmed

GetPossibleResolutions()

Returns the resolutions the display can take, as a list. The options menu sorts them itself and marks the one GetResolutionOption reports.

Kindfunction
ScreenResolutionwidth number - Resolution width in pixels.
height number - Resolution height in pixels.
Parametersnone documented
Returnsresolutions ScreenResolution[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7386
GetPrioritizedPlatformNPCsengineaddonsallReturns the NPCs on a platform, already ordered by how interesting they are - the target monitor shows the first few without ranking them itself, and the transporter menu builds its room list from the same order.

function engine addons only all signature: confirmed

GetPrioritizedPlatformNPCs(component)

Returns the NPCs on a platform, already ordered by how interesting they are - the target monitor shows the first few without ranking them itself, and the transporter menu builds its room list from the same order.

Kindfunction
Parameterscomponent any - The platform component.
Returnsnpcs table - A table of prioritized NPCs.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_transporter.lua:814, ui/addons/ego_targetmonitor/targetmonitor.lua:776
GetProcessingModuleDataengineaddonsallReturns the live data of a processing module.

function engine addons only all signature: confirmed

GetProcessingModuleData(module)

Returns the live data of a processing module. The station overview reads it per module, and still checks the module with IsValidComponent and IsComponentConstruction before using the result.

Kindfunction
Parametersmodule any - The module identifier.
Returnsdata table - The data for the processing module.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_station_overview.lua:2680
GetProductionModuleDataengineaddonsallReturns the live production state of a module.

function engine addons only all signature: confirmed

GetProductionModuleData(module)

Returns the live production state of a module. It can come back holding nothing but state = "empty" for a module that is not producing at all, and the map menu tests for that; menu_research.lua relies on the same thing, guarding cycleprogress with or 0. cycletime, remainingcycletime and cycleprogress are 0 outside the producing state rather than absent. The three ware lists carry their wares in the array part and an efficiency percentage as a named field alongside them, so walk them with ipairs.

Kindfunction
ProductionWareware string - The ware id.
name string - The ware's displayed name.
amount number - The amount in storage.
cycle number - The amount per cycle.
component string - The component name.
ProductionWareListefficiency number - Efficiency percentage; 100 by default.
ProductionModuleDatastate string - "producing", "waitingforresources", "empty" and the other production states.
cycletime number - Cycle duration; 0 unless the state is producing.
remainingcycletime number - Time left in this cycle; 0 unless the state is producing.
cycleprogress number - Percentage through the current cycle; 0 unless the state is producing.
cycleefficiency number - Cycle efficiency percentage; 100 by default.
remainingtime number - Time until the module runs out of resources. Ignores limited storage space.
products ProductionWareList - What the module makes.
presources ProductionWareList - Primary resources, in the same shape as products.
sresources ProductionWareList - Secondary resources, in the same shape as products.
estimated boolean optional - Non-nil when the figures are filtered rather than exact.
Parametersmodule any - The production module to inspect.
Returnsdata ProductionModuleData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 21 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:17814, ui/addons/ego_detailmonitor/menu_research.lua:271, ui/addons/ego_detailmonitor/menu_station_overview.lua:925
GetProductionModulesengineaddonsallReturns the production modules of a station, as a list.

function engine addons only all signature: confirmed

GetProductionModules(objectID)

Returns the production modules of a station, as a list. Vanilla uses both the list itself and just its length - #GetProductionModules(id) > 0 is how a menu decides whether a station produces anything at all. site feeds them straight back to a Lua global such as GetComponentData; an ffi call needs ConvertIDTo64Bit first, and handed one raw it reads nothing.

Kindfunction
ParametersobjectID any - The ID of the object (e.g., station).
Returnsmodules table - A table of production modules, as Lua-side component ids. Every vanilla
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 9 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2761, ui/addons/ego_detailmonitor/menu_map.lua:14498, ui/addons/ego_detailmonitor/menu_research.lua:590, ui/addons/ego_detailmonitor/menu_station_overview.lua:904
GetRadarModuleNameengineaddons≤ 8.00Returns "" on every call, on both versions, so nothing has ever read a radar module name out of it.

function engine addons only ≤ 8.00 signature: unverified deprecated: 9.00 probed: 8.00, 9.00

GetRadarModuleName(object)

Returns "" on every call, on both versions, so nothing has ever read a radar module name out of it. 9.00 deprecates it outright: the engine answers every call with has been deprecated and has no effect and no longer checks the argument count, where 8.00 refuses a bare call with Invalid number of arguments (0, expected 1).

Kindfunction
Parametersobject any - The object to ask about. Never read; 9.00 does not check that it is there.
Returnsname string - Always "", on both versions.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsup to 8.00, deprecated in 9.00
8.00 present - addons
9.00 deprecated
Deprecated9.00 - the engine answers every call with has been deprecated and has no effect, and stops checking the argument count; 8.00 still refuses a bare call
Vanilla usageunverified - no vanilla call site
Probed in-game8.00, 9.00 - the one behaviour difference the 9.00 pass found: "" and a live arity check on 8.00, the deprecation notice and no arity check on 9.00, over two call keys in two separate runs
GetRadarOptionengineaddonsallReturns the radar quality level on the engine's scale, which starts at zero; the options menu adds one for its dropdown index.

function engine addons only all signature: confirmed

GetRadarOption()

Returns the radar quality level on the engine's scale, which starts at zero; the options menu adds one for its dropdown index.

Kindfunction
Parametersnone documented
ReturnsradarOption number - The current radar option.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7367
GetReferenceProfitengineaddonsallReturns the reference profit of a trade: the ship, the ware, the price and the amount.

function engine addons only all signature: confirmed

GetReferenceProfit(shipID, ware, price, amount)

Returns the reference profit of a trade: the ship, the ware, the price and the amount. The map menu calls it twice, once with an amount of zero and once with the real one, and shows the difference - so the amount is what the comparison turns on. It can return nothing, and both calls fall back with or 0.

Kindfunction
ParametersshipID any - The ID of the ship.
ware string - The ware being traded.
price number - The price of the ware.
amount number - The amount being traded.
Returnsprofit number - The calculated reference profit.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21721
GetRegisteredModulesengineaddonsallReturns the registered game modules - tutorials and scenarios - as a list.

function engine addons only all signature: confirmed

GetRegisteredModules(includeScenarios)

Returns the registered game modules - tutorials and scenarios - as a list. Called with no argument it leaves scenarios out; the scenario selection passes true to get them. The help menu filters on unlockhidden and unlocked and groups tutorials by group, and the scenario selection uses timelinesscenario, scenariodata.chapter, hasunlockconditions and unlocked to decide what to show. Note that stats and ladder, which also appear on these entries in menu_scenario_selection.lua, are added by the menu afterwards and do not come from here.

Kindfunction
RegisteredModuleid string - The module id.
name string - The module's displayed name.
description string optional - The gamestart description, if any.
image string optional - The gamestart image, if any.
tutorial boolean optional - Whether the module is a tutorial.
group any optional - The group the tutorial belongs to; the help menu groups by it.
unlocked boolean optional - Whether the module is unlocked.
unlockhidden boolean optional - Whether it is hidden until unlocked.
hasunlockconditions boolean optional - Whether it has unlock conditions at all.
unlockprogress number optional - Progress towards unlocking.
unlocktotal number optional - The total needed to unlock.
unmetuserdata any optional - The unmet unlock condition.
custom boolean optional - Whether it is a custom module.
timelinesscenario boolean optional - Whether it is a Timelines scenario.
scenariodata table optional - Scenario details; carries chapter.
scenariochapterfinale boolean optional - Whether it ends its chapter.
usetimelinesplayercharacter boolean optional - Whether it uses the Timelines player character.
ParametersincludeScenarios boolean optional - If true, includes scenarios in the list.
Returnsmodules RegisteredModule[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_detailmonitor/menu_help.lua:215, ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:90, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:82, ui/addons/ego_gameoptions/gameoptions.lua:6157
GetRelativeMousePositionengineallallReturns the mouse cursor position in an element's own coordinate space, as x, y and z.

function engine all (addons + core) all signature: confirmed

GetRelativeMousePosition(elementID, useElementSize)

Returns the mouse cursor position in an element's own coordinate space, as x, y and z. 0/0/0 is the element's upper left front edge. Without useElementSize, or with it false, the range is 0 to 1; with it true the range runs to the element's own boxWidth, boxHeight and boxDepth. The result is undefined if the element is not pickable at all, or was not hit by the cursor in the current frame - vanilla only ever calls it on an element it has just established the mouse is over. Two of the three call sites take x and y alone and ignore z.

Kindfunction
ParameterselementID any - The ID of the UI element.
useElementSize boolean optional - Scale to the element's own size instead of 0 to 1.
Returnsx number - The relative x-coordinate.
y number - The relative y-coordinate.
z number - The relative z-coordinate.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 2 arguments
Seen at ui/core/lua/dialogmenu.lua:892, ui/core/lua/monitors.lua:3633, ui/widget/lua/widget_fullscreen.lua:7640
GetRenderTargetMousePositionwidgetaddonsallReturns the mouse position inside a render target, in that target's own coordinates rather than the screen's.

function widget_fullscreen addons only all signature: from source

GetRenderTargetMousePosition(renderTargetID)

Returns the mouse position inside a render target, in that target's own coordinates rather than the screen's. Both values come back nil when the pointer is outside it, and every vanilla caller passes that fact on to C.SetMapRelativeMousePosition as a flag.

Kindfunction
ParametersrenderTargetID any - The ID of the render target.
Returnsx number - The x-coordinate within the render target.
y number - The y-coordinate within the render target.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getRenderTargetMousePosition (8.00 :17841, 9.00 :18830)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetRenderTargetTexturewidgetaddonsallReturns the texture filename behind a render target - what you hand to StartCutscene or to an icon so it draws what the render target holds.

function widget_fullscreen addons only all signature: from source

GetRenderTargetTexture(renderTargetID)

Returns the texture filename behind a render target - what you hand to StartCutscene or to an icon so it draws what the render target holds. It can come back empty, and every vanilla caller checks before using it.

Kindfunction
ParametersrenderTargetID any - The ID of the render target.
ReturnstextureFilename string - The filename of the render target's texture.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getRenderTargetTexture (8.00 :17840, 9.00 :18829)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetResolutionOptionengineaddonsallReturns the resolution as a table with width and height.

function engine addons only all signature: confirmed

GetResolutionOption(fromSettings)

Returns the resolution as a table with width and height. With no argument it is the resolution in force; with true it is the one stored in the settings, which is how the cancel branch of the change dialogue puts the old one back.

Kindfunction
ParametersfromSettings boolean optional - If true, gets the value from settings rather than the current state.
Returnsresolution any - The current resolution setting.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7385, ui/addons/ego_gameoptions/gameoptions.lua:8990
GetRoleTierNPCsengineaddonsallRetrieves NPCs of a specific role and skill tier from a controllable object.

function engine addons only all signature: confirmed

GetRoleTierNPCs(controllableID, role, skillLevel)

Retrieves NPCs of a specific role and skill tier from a controllable object.

Kindfunction
ParameterscontrollableID any - The ID of the controllable object (e.g., ship).
role string - The role to search for (e.g., "unassigned").
skillLevel number - The skill level tier.
Returnsnpcs table - A table of NPCs matching the criteria.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:3763
getRowengineallallReturns one row of an Anark data table.

function engine all (addons + core) all signature: unverified

getRow(table, row)

Returns one row of an Anark data table. Part of the data-port API around AKDataPort. No vanilla code calls it; unverified.

Kindfunction
Parameterstable any - The data table, as returned by getTable.
row number - Row index.
Returnsrow any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetRumbleOptionengineaddonsallReturns the controller rumble strength on the engine's 0 to 1 scale; the options menu multiplies by 100 for its slider.

function engine addons only all signature: confirmed

GetRumbleOption()

Returns the controller rumble strength on the engine's 0 to 1 scale; the options menu multiplies by 100 for its slider.

Kindfunction
Parametersnone documented
Returnsrumble number - The current rumble value.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6741
GetSaveListengineaddonsallReturns the savegames as a list.

function engine addons only all signature: confirmed

GetSaveList(filter)

Returns the savegames as a list. The argument is a filter function the engine calls per file - vanilla passes Helper.validSaveFilenames, which keeps the game's own naming scheme and drops anything else in the folder. It is performance critical: do not call it unnecessarily. The three invalid* fields are what the load menu checks before letting a save be opened, and error marks a save that could not be read at all - its name then carries the raw error message rather than a savegame name.

Kindfunction
SaveInvalidPatchid string - The patch id.
name string - The patch name.
state any - The patch state.
requiredversion any - The version the savegame requires.
installedversion any - The version currently installed.
SaveGameEntryfilename string - The save file name.
name string - The savegame name. Where error is set, this holds the non-localised error message instead.
displayedname string - The name as the menu shows it.
description string - The savegame description.
location string - The save location.
time string - The formatted save date.
rawtime number - The save date as a number.
version any - The savegame version.
rawversion any - The savegame version as a number.
empty boolean - Whether the slot is empty.
error boolean - The savegame could not be read; name then holds the error message.
modified boolean optional - Whether the save was made on a modified game.
isonline boolean optional - Whether it is an online save.
isonlinesavefilename boolean optional - Whether the file name is an online save name.
invalidgameid boolean optional - The save is from a different game.
invalidversion boolean optional - The save version is newer than the running game.
invalidpatches SaveInvalidPatch[] optional - Extensions whose versions do not match.
playtime number optional - Played time. Documented; vanilla does not read it.
playername string optional - Player name. Documented; vanilla does not read it.
money number optional - Player money. Documented; vanilla does not read it.
difficulty any optional - Save difficulty. Documented; vanilla does not read it.
mindifficulty any optional - The lowest difficulty the save was ever set to. Documented; vanilla does not read it.
Parametersfilter function optional - An optional function to filter the save game list.
Returnssavegames SaveGameEntry[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:24909, ui/addons/ego_gameoptions/gameoptions.lua:11608
getScreenInfoengineallallReturns the screen width and height in pixels.

function engine all (addons + core) all signature: confirmed

getScreenInfo()

Returns the screen width and height in pixels. This is the real screen, not the widget system's drawing area - GetWidgetSystemSize is that - and core code scales its layout against it: 1080 / height is how the crosshair works out its own factor.

Kindfunction
Parametersnone documented
Returnswidth number
height number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 16 vanilla call sites, 0 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:802, ui/addons/ego_gameoptions/gameoptions.lua:6677, ui/core/lua/compass.lua:416, ui/core/lua/crosshair handling.lua:2283
GetSectorsengineaddonsallReturns the sectors of a cluster as a list.

function engine addons only all signature: confirmed

GetSectors(cluster)

Returns the sectors of a cluster as a list. Walking the galaxy means GetClusters and then this per cluster - there is no call that returns every sector at once.

Kindfunction
Parameterscluster any - The cluster identifier.
Returnssectors table - A table of sectors in the cluster.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 9 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:528, ui/addons/ego_detailmonitor/menu_map.lua:20887, ui/addons/ego_detailmonitor/menu_playerinfo.lua:3922
GetSelectedRowswidgetaddonsallReturns a table's multi-selection: the list of selected row indexes, and the row that carries the highlight border.

function widget_fullscreen addons only all signature: from source

GetSelectedRows(tableID)

Returns a table's multi-selection: the list of selected row indexes, and the row that carries the highlight border. This is where a multiselect table's state lives - not in a click handler - so reading the selection means asking the widget.

Kindfunction
ParameterstableID any - The ID of the table.
ReturnsselectedRows table - A table containing the indices of the selected rows.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getSelectedRows (8.00 :17837, 9.00 :18826)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetSensitivitySettingengineaddonsallReturns the sensitivity of one control range on the engine's 0 to 1 scale; the options menu multiplies by 100 and clamps to its slider's range.

function engine addons only all signature: confirmed

GetSensitivitySetting(rangeID)

Returns the sensitivity of one control range on the engine's 0 to 1 scale; the options menu multiplies by 100 and clamps to its slider's range.

Kindfunction
ParametersrangeID any - The ID of the control range.
Returnssensitivity number - The current sensitivity value.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7602
GetShaderQualityOptionengineaddonsallReturns the shader quality level on the engine's scale, which starts at zero; the options menu adds one for its dropdown index.

function engine addons only all signature: confirmed

GetShaderQualityOption()

Returns the shader quality level on the engine's scale, which starts at zero; the options menu adds one for its dropdown index.

Kindfunction
Parametersnone documented
ReturnsqualityOption number - The current shader quality setting.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7412
GetShadowOptionengineaddonsallReturns the shadow quality level - 0 off, 1 low, 2 medium, 3 high.

function engine addons only all signature: confirmed

GetShadowOption()

Returns the shadow quality level - 0 off, 1 low, 2 medium, 3 high. Unlike its neighbours the options menu uses the value as the dropdown index unchanged, which is the same offset SetShadowOption expects back.

Kindfunction
Parametersnone documented
Returnsoption integer - 0 off, 1 low, 2 medium, 3 high.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7429
GetShiftStartEndRowwidgetaddonsallReturns the anchor and end row of the table's shift-click selection range.

function widget_fullscreen addons only all signature: from source

GetShiftStartEndRow(tableID)

Returns the anchor and end row of the table's shift-click selection range. On failure the first return is nil and the other two carry an error code and text.

Kindfunction
ParameterstableID any - The table widget.
Returnsrange table|nil - { shiftStart, shiftEnd }, or nil on error.
errorcode number|nil - 1 invalid table element, 2 table has no non-fixed rows.
errortext string|nil - Human-readable reason.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getShiftStartEndRow (8.00 :17862, 9.00 :18852)
maps to widgetSystem.getShiftStartEndRow
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetSizeengineallallReturns the rendered size of a widget or scene element in pixels.

function engine all (addons + core) all signature: confirmed

GetSize(elementID)

Returns the rendered size of a widget or scene element in pixels.

Kindfunction
ParameterselementID any - The widget or element to measure.
Returnswidth number
height number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 26 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:864, ui/widget/lua/widget_fullscreen.lua:6645
GetSoftShadowsOptionengineaddonsallReturns whether soft shadows are on, and pairs with SetSoftShadowsOption.

function engine addons only all signature: confirmed

GetSoftShadowsOption()

Returns whether soft shadows are on, and pairs with SetSoftShadowsOption.

Kindfunction
Parametersnone documented
Returnsenabled boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:1766
GetSoundOptionengineaddonsallReturns whether sound output is on, and pairs with SetSoundOption.

function engine addons only all signature: confirmed

GetSoundOption()

Returns whether sound output is on, and pairs with SetSoundOption.

Kindfunction
Parametersnone documented
Returnsenabled boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:1926
GetSSAOOptionengineaddonsallGets the current Screen Space Ambient Occlusion (SSAO) setting.

function engine addons only all signature: confirmed

GetSSAOOption()

Gets the current Screen Space Ambient Occlusion (SSAO) setting.

Kindfunction
Parametersnone documented
ReturnsssaoOption number - The current SSAO option.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7446
GetStandardButtonsengineallallReturns which of the standard title-bar buttons a frame shows - back, close, minimize and help, as four values.

function engine all (addons + core) all signature: confirmed

GetStandardButtons(frame)

Returns which of the standard title-bar buttons a frame shows - back, close, minimize and help, as four values. widget_fullscreen.lua collects them into a table and skips the whole title bar when none is set.

Kindfunction
Parametersframe any - The frame element.
Returnsback any
close any
minimize any
help any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14217
GetStandardUnitMacrosengineaddonsallReturns the unit macros a ship macro carries as standard.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetStandardUnitMacros(macro)

Returns the unit macros a ship macro carries as standard. The argument is a **macro name string**, not a component; this row declared no parameter until it was measured. A bare call still returns an **empty array**, so nothing in the return value says an argument is missing - the engine says it in the log instead, as Invalid number of arguments (0, expected 1). Measured on 8.00, and the set is small: every ship macro tried - bomber, corvette, destroyer, battleship, both miners - returns ship_gen_xs_cargodrone_empty_01_a_macro; ship_ter_xl_carrier_01_a_macro adds ship_gen_xs_buildingdrone_01_a_macro; and ship_arg_m_miner_liquid_01_a_macro adds ship_gen_s_miningdrone_liquid_01_a_macro, which is exactly what GetMiningUnitMacros returns on its own for that macro. A station macro returns an empty array.

Kindfunction
Parametersmacro string - The macro name of the ship to ask about.
Returnsmacros string[] - The standard unit macros, empty when the macro carries none.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - 54 calls over nine ship macros and a station macro; no target has yet returned more than two entries, twelve more 9.00 calls included
GetStatDataengineaddonsallReads named properties of one statistic and returns one value per name, in order.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetStatData(stat, ...)

Reads named properties of one statistic and returns one value per name, in order. Same shape as GetComponentData: ask for everything you need in one call. The statistic IDs come from GetAllStatIDs. **Five property names are measured**, where vanilla uses only the last three: "exists" (boolean), "value" (the raw number), "hidden" (boolean, the secret attribute of libraries/stats.xml resolved against the current value), "displayname" and "displayvalue". **"displayvalue" is formatted, not numeric** - the same statistic reads back as "480" and, once set to 4242, as "4,242" - so anything doing arithmetic wants "value". **A bad property name and a bad statistic ID fail differently.** A bad name is reported as Invalid argument N, got unknown key 'X', puts nil in that slot and still returns every good property beside it. A bad ID returns **no values at all**, silently, with nothing in the log - so nret == 0 means argument 1 was wrong, and "exists" can never answer false. Use GetAllStatIDs to test for a statistic, not this.

Kindfunction
Parametersstat string - The statistic ID, one of those GetAllStatIDs returns.
Returnsany ... - One value per requested property, in order; nothing at all if the ID is unknown.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:2527, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2531
Probed in-game8.00, 9.00 - five keys measured on one statistic, plus a bad-key and an absent-id control; the same answers on both versions, the good key still returned beside the bad one
GetSteeringNoteOptionengineaddonsallReturns whether the steering control mode messages are shown, and pairs with SetSteeringNoteOption.

function engine addons only all signature: confirmed

GetSteeringNoteOption()

Returns whether the steering control mode messages are shown, and pairs with SetSteeringNoteOption.

Kindfunction
Parametersnone documented
Returnsenabled boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2183
GetStopShipInMenuOptionengineaddonsallGets whether the player ship is stopped while a menu is open.

function engine addons only all signature: confirmed

GetStopShipInMenuOption()

Gets whether the player ship is stopped while a menu is open.

Kindfunction
Parametersnone documented
Returnsenabled boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2060
GetStorageDataengineaddonsallReturns the storage of a container as an array of storage modules, plus the totals.

function engine addons only all signature: confirmed

GetStorageData(object)

Returns the storage of a container as an array of storage modules, plus the totals. Iterate the array part for the modules and each module's own array part for its wares - all five vanilla call sites do exactly that, and menu_map.lua:14529 spells the fields out in its own comments. The totals capacity and stored sit on the returned table itself; estimated is non-nil only where the player cannot see exact figures, which is what targetmonitor.lua tests before prefixing the value with an approximation mark. For a container with no storage information the table is empty, so vanilla guards every read with next(storagearray).

Kindfunction
StorageWareware string - The ware id.
name string - The ware's displayed name.
amount number - Units currently stored.
volume number - Volume per unit.
consumption number - Consumption and production of this ware.
StorageModulename string - The cargo bay's name.
capacity number - The bay's capacity.
stored number - The amount stored in the bay.
consumption number - The bay's total consumption.
StorageDatacapacity number - Total capacity across all modules.
stored number - Total amount stored across all modules.
estimated boolean optional - Non-nil when the figures are filtered rather than exact.
modules StorageModule[] optional - Documented, but no vanilla code reads it.
Parametersobject any - The container to inspect.
ReturnsStorageData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:14043, ui/addons/ego_targetmonitor/targetmonitor.lua:878
GetSubordinatesengineaddonsallReturns the subordinates of a commander.

function engine addons only all signature: confirmed

GetSubordinates(component, unknown, checkRendered)

Returns the subordinates of a commander. The third argument limits the result to subordinates currently rendered, which the map uses when it is drawing them; the middle one is always nil in vanilla and its purpose is not identifiable from the call sites.

Kindfunction
Parameterscomponent any - The commander.
unknown any optional - Unidentified in 9.00 vanilla usage; always nil.
checkRendered boolean optional - Restrict the result to subordinates currently rendered.
Returnssubordinates table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 28 vanilla call sites, 1-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_docked.lua:939, ui/addons/ego_detailmonitor/menu_map.lua:4902, ui/addons/ego_detailmonitor/menu_map.lua:11273, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:1689
GetSubtitleOptionengineaddonsallGets the current subtitle setting.

function engine addons only all signature: confirmed

GetSubtitleOption()

Gets the current subtitle setting. One of auto, true, false - the ids the options menu offers.

Kindfunction
Parametersnone documented
Returnsoption any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6803
getTableengineallallLooks up an Anark data table by name.

function engine all (addons + core) all signature: unverified

getTable(name)

Looks up an Anark data table by name. Part of the data-port API around AKDataPort. No vanilla code calls it; unverified.

Kindfunction
Parametersname string - The table name.
Returnstable any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetTableBackgroundColumnSpanengineallallReturns how many columns a table cell's background spans.

function engine all (addons + core) all signature: confirmed

GetTableBackgroundColumnSpan(tableID, row, col)

Returns how many columns a table cell's background spans. 0 means the cell is covered by the background of an earlier column.

Kindfunction
ParameterstableID any - The table widget.
row number - 1-based row index.
col number - 1-based column index.
Returnscolspan number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:6014
GetTableCellColorengineallallReturns the background colour of a table cell as four values.

function engine all (addons + core) all signature: confirmed

GetTableCellColor(tableID, row, col)

Returns the background colour of a table cell as four values. widget_fullscreen.lua collects them into a table with { GetTableCellColor(...) } to compare a row's cells against each other.

Kindfunction
ParameterstableID any - The table widget.
row number - 1-based row index.
col number - 1-based column index.
Returnsr number
g number
b number
a number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:9446
GetTableColumnSpanengineallallReturns how many columns a table cell spans.

function engine all (addons + core) all signature: confirmed

GetTableColumnSpan(tableID, row, col)

Returns how many columns a table cell spans. 0 means the cell is covered by a span starting in an earlier column.

Kindfunction
ParameterstableID any - The table widget.
row number - 1-based row index.
col number - 1-based column index.
Returnscolspan number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 5 vanilla call sites, 3 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:5985
GetTableColumnWidthsengineallallReturns every column width of a table, one value per column.

function engine all (addons + core) all signature: confirmed

GetTableColumnWidths(tableID)

Returns every column width of a table, one value per column. Vanilla collects them with { GetTableColumnWidths(tableID) } and asks IsTableColumnWidthPercentage whether they are pixels or percentages.

Kindfunction
ParameterstableID any - The table widget.
Returnswidths table - One entry per column.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14365
GetTableDataengineabsentnone⚠ declared only - no definition, no call site, no runtime presence

function engine does not exist none signature: unverified

GetTableData(...)

⚠ declared only - no definition, no call site, no runtime presence

Declared by the generator but absent from the engine. No definition, no call site and no runtime presence in any version from 7.10 to 9.00. Kept only so the name is documented as unavailable.

Kindfunction
Parametersnone documented
Returnsany
Originengine
injected by the executable; defined in no .lua file
Availabilitydoes not exist
no vanilla call site in either version
Game versionsin none of 8.00, 9.00
8.00 absent
9.00 absent
Vanilla usageunverified - no vanilla call site
GetTableFullHeightengineallallReturns the height of all table rows together, ignoring the visible height.

function engine all (addons + core) all signature: confirmed

GetTableFullHeight(tableID)

Returns the height of all table rows together, ignoring the visible height.

Kindfunction
ParameterstableID any - The table widget.
Returnsheight number - In pixels.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14343
GetTableNumFixedRowsengineallallReturns how many leading rows of a table are fixed, i.e.

function engine all (addons + core) all signature: confirmed

GetTableNumFixedRows(tableID)

Returns how many leading rows of a table are fixed, i.e. do not scroll.

Kindfunction
ParameterstableID any - The table widget.
Returnsnumfixedrows number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14321
GetTableNumRowsengineallallReturns how many rows a table has, fixed header rows included - so it is the full extent, not the number of selectable rows.

function engine all (addons + core) all signature: confirmed

GetTableNumRows(tableID)

Returns how many rows a table has, fixed header rows included - so it is the full extent, not the number of selectable rows.

Kindfunction
ParameterstableID any - The table widget.
Returnsnumrows number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:5702
GetTableRowHeightengineallallReturns the height a table row was actually rendered at.

function engine all (addons + core) all signature: confirmed

GetTableRowHeight(tableID, row)

Returns the height a table row was actually rendered at. helper.lua compares it against the height the row asked for, which is how a menu notices that content did not fit and has to be laid out again.

Kindfunction
ParameterstableID any - The table widget.
row number - 1-based row index.
Returnsheight number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 11 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4142, ui/widget/lua/widget_fullscreen.lua:5584
GetTargetElementInfoengineallallResolves a target-element query into the target's display information.

function engine all (addons + core) all signature: confirmed

GetTargetElementInfo(targetElementQuery)

Resolves a target-element query into the target's display information. The target system uses it to build the target elements drawn around the crosshair.

Kindfunction
ParameterstargetElementQuery any - The query descriptor.
Returnsinfo any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/targetsystem.lua:5370
GetTargetMonitorDetailsaddonaddonsallBuilds the full target-monitor description for a component: the display template, with $token$ placeholders in its text rows that GetLiveData resolves one at a time.

function addon addons only all signature: from source probed: 8.00, 9.00

GetTargetMonitorDetails(component, templateConnectionName, isSofttarget)

Builds the full target-monitor description for a component: the display template, with $token$ placeholders in its text rows that GetLiveData resolves one at a time. The returned table carries duration, header (itself color{r,g,b,a,glow}, font, fontsize, text), notorietyComponent, notorietyEffect, notorietyFaction, notorietyIcon and text. **The shape varies with the target**: a sector returned those 7 keys with an empty text, a player station 8 - adding interactionID - with text a 3-element array of {left, right} rows. **templateConnectionName must be a string.** "" is accepted and produces no error at all; nil still returns a partial table but logs GetCompSlotPlayerActionTriggeredConnection(): Given connection name is nullptr plus three targetmonitor.lua: HasTag(): Invalid argument #2 <templateConnectionName> (got nil, expected string) from inside the function. Defined by an addon file, not by the engine, and explicitly not part of the public UI API - the vanilla source says so at targetmonitor.lua:1044. Returns an empty table for an invalid component.

Kindfunction
Parameterscomponent any - The component to describe.
templateConnectionName string - The connection the template is bound to. Must be a string; "" is accepted.
isSofttarget boolean - Whether the component is the current soft target.
Returnsdetails table - The display template, empty for an invalid component.
Originaddon
ui/addons/ego_targetmonitor/targetmonitor.lua - top-level function (8.00 :416, 9.00 :415)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
Probed in-game8.00, 9.00 - a sector, a player station and a player ship, keys enumerated on each, with the nil and empty-string connection names measured against one another on 8.00; eight 9.00 targets, eight keys on a ship and seven on everything else
GetTargetMonitorDetailsBridgeengineallallCore-side bridge to GetTargetMonitorDetails, taking the component as a string ID.

function engine all (addons + core) all signature: confirmed

GetTargetMonitorDetailsBridge(componentID, connectionName, isSofttarget)

Core-side bridge to GetTargetMonitorDetails, taking the component as a string ID. The target monitor runs in the core Lua environment, which cannot reach the addon function directly, so it calls this instead. See also GetNotificationDetails.

Kindfunction
ParameterscomponentID string - The component ID as a string.
connectionName string - The connection the template is bound to.
isSofttarget boolean - Whether the component is the current soft target.
Returnsdetails table
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/core/lua/monitors.lua:2129
GetTextengineaddonsallReturns the text currently displayed by a font-string element.

function engine addons only all signature: confirmed

GetText(fontStringID)

Returns the text currently displayed by a font-string element.

Kindfunction
ParametersfontStringID any - The font-string element.
Returnstext string
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:17727
GetTextLinesengineallallWord-wraps a string to a given width and returns the resulting lines.

function engine all (addons + core) all signature: confirmed

GetTextLines(text, font, fontsize, width)

Word-wraps a string to a given width and returns the resulting lines.

Kindfunction
Parameterstext string - The text to wrap.
font string - Font name.
fontsize number - Font size, already scaled.
width number - Available width in pixels.
Returnslines table - One string per line.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 74 vanilla call sites, 4 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:277, ui/addons/ego_detailmonitor/menu_diplomacy.lua:1354, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:1680, ui/addons/ego_detailmonitor/menu_map.lua:13296
GetTextNumLinesengineallallReturns how many lines a string wraps to, and the width it needs.

function engine all (addons + core) all signature: confirmed

GetTextNumLines(text, fontName, fontSize, maxWidth)

Returns how many lines a string wraps to, and the width it needs.

Kindfunction
Parameterstext string - The text to measure.
fontName string - Font name.
fontSize number - Font size, already scaled.
maxWidth number - Available width in pixels.
Returnsnumlines number
textwidth number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 4 arguments
Seen at ui/core/lua/dialogmenu.lua:953, ui/widget/lua/widget_fullscreen.lua:16769
getTimeengineallallReturns a scene element's current timeline position.

function engine all (addons + core) all signature: unverified

getTime(element)

Returns a scene element's current timeline position. The read counterpart of goToTime. No vanilla code calls it; signature unverified. For the UI clock use getElapsedTime instead.

Kindfunction
Parameterselement any - The scene element.
Returnstime number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetTopRowwidgetaddonsallReturns the first non-fixed row currently scrolled into view.

function widget_fullscreen addons only all signature: from source

GetTopRow(tableID)

Returns the first non-fixed row currently scrolled into view. On failure the first return is nil and the other two carry an error code and text.

Kindfunction
ParameterstableID any - The table widget.
Returnstoprow number|nil - 1-based row index, or nil on error.
errorcode number|nil - 1 invalid table element, 2 table has no non-fixed rows.
errortext string|nil - Human-readable reason.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getTopRow (8.00 :17834, 9.00 :18823)
maps to widgetSystem.getTopRow
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetTopTargetPriorityMessagesengineallallReturns the highest-priority target messages of a category.

function engine all (addons + core) all signature: confirmed

GetTopTargetPriorityMessages(category, maxMessages)

Returns the highest-priority target messages of a category. The target system uses it to pick which target elements to draw.

Kindfunction
Parameterscategory string - Message category, e.g. basic or fastobject.
maxMessages number - Maximum number of messages to return.
Returnsmessages table
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/core/lua/targetsystem.lua:2474
GetTotalValueengineaddonsallReturns the total value of a ship, optionally priced at a specific shipyard.

function engine addons only all signature: confirmed

GetTotalValue(ship, unknown, shipyard)

Returns the total value of a ship, optionally priced at a specific shipyard.

Kindfunction
Parametersship any - The ship to price.
unknown boolean - Unidentified in 9.00 vanilla usage; always true.
shipyard any - The shipyard whose prices apply.
Returnsvalue number
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:26284
GetTradeDataengineaddonsallReturns everything about one trade - the ware, the amounts, the price.

function engine addons only all signature: confirmed

GetTradeData(tradeID, component)

Returns everything about one trade - the ware, the amounts, the price. The second argument is the container it is being looked at from, which decides whether the trade reads as a buy or a sell; without it the trade is described from its own side. Guard it with IsValidTrade, because a trade can be gone by the time the row showing it is redrawn. The station fields and pricemodifiers are only present where the trade has a container behind it. The map reads isshady, ismissionoffer and issupply when it sorts offers into its buy, sell and mission lists. Fields like active, stale and ammotypename also appear on these tables in menu_map.lua, but the menu writes those itself - they do not come from here.

Kindfunction
TradePriceModifiername string - The modifier name.
level any - The modifier level.
amount number - The modifier amount.
expire number - When the modifier expires.
TradeDataid any - The trade id - what CanTradeWith and IsValidTrade take.
ware string - The ware traded.
name string - The ware's displayed name.
amount number - The trade amount.
desiredamount number - The desired amount.
minamount number - The minimum amount; vanilla passes this to CanTradeWith.
price number - The trade price.
marketprice number - The price before discounts and commissions.
quantityfactor number - Market price divided by average price.
totalprice number - Price times amount.
totalmarketprice number - Market price times amount.
isbuyoffer boolean - Whether the offer is a buy offer.
isselloffer boolean - Whether the offer is a sell offer.
rebundle boolean - Whether units are rebundled.
unbundle boolean - Whether units are unbundled.
expire number - When the trade expires.
isshady boolean optional - Whether the offer is a shady one; the map can filter on it.
ismissionoffer boolean optional - Whether the offer belongs to a mission.
issupply boolean optional - Whether the offer is a supply offer.
station any optional - The trade container.
stationname string optional - The trade container's name.
stationzone string optional - The trade container's zone name.
stationzoneid any optional - The trade container's zone.
stationsectorid any optional - The trade container's sector.
isplayer boolean optional - Whether the trade container is player owned.
faction string optional - The trade container's faction.
pricemodifiers TradePriceModifier[] optional - The modifiers applied to the price.
ParameterstradeID any - The trade to read.
component any optional - Container the trade is viewed from, which decides the buy/sell direction.
Returnstradedata TradeData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:1063, ui/addons/ego_detailmonitor/menu_map.lua:27498
GetTradeListengineaddonsallReturns the trade offers of a container, as seen from a given ship, each entry in the same shape GetTradeData returns for a single trade.

function engine addons only all signature: confirmed

GetTradeList(tradeOfferContainer, currentShip, unknown)

Returns the trade offers of a container, as seen from a given ship, each entry in the same shape GetTradeData returns for a single trade. The third argument selects which half of the list comes back. Vanilla calls it twice on the same container and ship - once with the argument omitted for the offers the ship can act on, and once with false for the rest, which it then marks stale and inactive after deduplicating them against the first set by trade id.

Kindfunction
ParameterstradeOfferContainer any - The station or ship offering the trades.
currentShip any optional - The ship the offers are evaluated for.
unknown boolean optional - Selects which half of the list is returned.
Returnstradeoffers TradeData[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 1-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21371, ui/addons/ego_detailmonitor/menu_map.lua:21372, ui/addons/ego_interactmenu/menu_interactmenu.lua:5924
GetTradeOrdersengineaddonsallReturns the trade orders a container currently has queued, as an array of order entries.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetTradeOrders(container)

Returns the trade orders a container currently has queued, as an array of order entries. Each entry names the ware and the station it is placed at, the agreed amount and price, and flags for what kind of order it is: amount, minamount integer units ordered, and the smallest acceptable fill name string ware name, e.g. "Advanced Composites" price number this order's price; averageprice is the ware's market average id userdata the order's own component id station, stationname the counterparty station and its name isbuyoffer, isselloffer, ispassive, isshiptoship, iswareexchange boolean The array is a flat list of whatever orders the container currently holds, one entry each, in no documented order. Measured on 8.00: a mining ship held a single buy order (6250 Ice at one station), a trade ship held two for the same ware, one marked isselloffer and one isbuyoffer at different stations. Do not read a pairing into that - the two entries are independent orders that happened to share a ware, not the legs of one run. A container with nothing queued returns an empty table, so an empty result means no orders, not a bad call.

Kindfunction
Parameterscontainer any - The ship or station whose orders to report.
Returnsorders table - Array of { amount, minamount, name, price, averageprice, id, station, stationname, isbuyoffer, isselloffer, ispassive, isshiptoship, iswareexchange }.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - signature and return shape measured in-game, on both versions
GetTradeRestrictionsengineaddonsdepReturns the trade restrictions on a container: one global faction restriction plus the per-ware overrides of it.

function engine addons only dep signature: unverified deprecated: 3.20 probed: 8.00, 9.00

GetTradeRestrictions(containerID)

Returns the trade restrictions on a container: one global faction restriction plus the per-ware overrides of it. ToggleFactionTradeRestriction and ToggleFactionTradeWareOverride are the setters for the two halves. No vanilla code calls it, so the signature is unverified: the container parameter and the shape are what the community reference describes, and the entry here previously declared no parameter at all. Note that the documentation spells the second field overrrides, with three r's; that is a typo in the documentation rather than the field name, but nothing here can confirm which spelling the engine actually returns. The engine answers every call with Obsolete since version 3.20, returns empty data! and an empty table. So the shape below is the documentation's, not a measurement: nothing this build returns can confirm it.

Kindfunction
TradeRestrictionsfaction boolean - The global restriction on trading with other factions.
overrides table<string, boolean> - Per-ware overrides of that global restriction.
ParameterscontainerID any - The container to ask about.
Returnsrestrictions TradeRestrictions
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsdeprecated in every covered version (8.00, 9.00)
8.00 deprecated
9.00 deprecated
Deprecated3.20 - the engine answers every call with Obsolete since version 3.20, returns empty data! and an empty table, on both versions
Vanilla usageunverified - no vanilla call site
Probed in-game8.00, 9.00 - empty data, with the engine's obsolescence notice beside it, on both versions
GetTradesAtConnectionengineaddonsallReturns the trades offered at one connection of a container.

function engine addons only all signature: unverified probed: 8.00, 9.00

GetTradesAtConnection(component, templateConnectionName)

Returns the trades offered at one connection of a container. Arity is 2, stated by the engine itself (Invalid number of arguments (0, expected 2)), and argument 2 is a template connection name by the shape of its only sibling, GetMissionOfferAtConnection, which vanilla calls twice and gates on HasTag(component, connection, "mission"). **The return is still unmeasured.** The connection an interact menu carries on the map is "connectionui", the generic UI connection rather than a tagged interaction point, and the sibling answered nothing on it either. A tagged connection belongs to a trade console or dock point, which can only be clicked in first person, where the interact menu does not open.

Kindfunction
Parameterscomponent any - The container the connection belongs to.
templateConnectionName string - The name of the template connection.
Returnstrades table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
Probed in-game8.00, 9.00 - arity from the engine on both versions; no tagged connection has been reached to ask on
GetTradesForWareengineaddonsallReturns a container's trade offers for one ware.

function engine addons only all signature: confirmed

GetTradesForWare(component, ware, unknown)

Returns a container's trade offers for one ware. The interact menu treats an empty result as nothing to offer; what the third argument selects is not identifiable from the single call site, which always passes true.

Kindfunction
Parameterscomponent any - The station or ship offering the trades.
ware any - The ware ID to filter by.
unknown boolean - Unidentified in 9.00 vanilla usage; always true.
Returnstradeoffers table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_interactmenu/menu_interactmenu.lua:6143
GetTradeShipDataengineaddonsallReturns the trade-related state of one ship: what it is carrying, its cargo figures and its trade queue.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetTradeShipData(shipID)

Returns the trade-related state of one ship: what it is carrying, its cargo figures and its trade queue. Note that isbuyoffer and isselloffer read from the offer's side, not the ship's - a buy offer is one the ship sells into. **The argument must be a ship.** A station is refused with Component '<name>' is not of class ship and nothing comes back. GetTradeShipList returns a list of these. cargo and queue are both plain arrays, countable with #. cargo is **one entry per ware stack** rather than a single record, which is what this row declared until a loaded miner was measured, and it is empty on a ship with an empty hold. **The cargo figures are volumes, not units.** A miner holding 5,000 silicon reports amount = 5000 and volume = 50000 - the ware's unit volume of 10 times the amount - and cargocurrent is that same 50,000 against a cargomax of 50,000 with cargofree at 0. The offer-side reading of the two flags is measured too: a trader's queued pair came back as isselloffer = true at 481 where it buys and isbuyoffer = true at 485 where it sells.

Kindfunction
TradeShipCargoware string - The ware id, as in wares.xml.
name string - The ware's displayed name.
amount number - Units of the ware carried.
volume number - Volume of THIS stack - the amount times the ware's unit volume, not the unit volume.
TradeShipQueueEntryid any - The trade partner's cargo bay: a cargobay component, not an abstract trade id.
name string - The ware's displayed name.
amount number - The trade amount.
minamount number - The trade's minimum amount.
price number - The trade price.
averageprice number - The ware's universe average price from wares.xml - a constant, not this ship's average.
isbuyoffer boolean - Whether the ship is selling.
isselloffer boolean - Whether the ship is buying.
stationname string optional - The trade partner's name.
stationsectorid any optional - The trade partner's sector.
TradeShipDatashipid any - The ship id.
name string - The ship's displayed name.
cargo TradeShipCargo[] - One entry per ware stack in the hold; empty when the hold is empty.
queue TradeShipQueueEntry[] - The ship's trade queue.
cargocurrent number - Cargo space used, in volume - not in units of ware.
cargomax number - Cargo capacity, in volume.
cargofree number - Free cargo capacity, in volume.
numtrips number - The number of planned trips. Matched the queue length in both ships measured.
ParametersshipID any - The ship to ask about.
Returnsshipdata TradeShipData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - the whole structure, on a loaded miner and a trader with two trades queued; the same eight keys on four 9.00 ships, with cargo and queue empty
GetTradeShipListengineaddonsallReturns the player ships available for trade orders, each entry in the same shape GetTradeShipData returns for a single ship.

function engine addons only all signature: confirmed

GetTradeShipList()

Returns the player ships available for trade orders, each entry in the same shape GetTradeShipData returns for a single ship. The map takes the list and filters it down itself: it drops any ship with a commander other than the player-occupied ship, anything deployable, anything with no transport unit macros, and optionally the player's own ship and ships already running an order loop. Only shipid is confirmed - it is the one field the single vanilla call site reads, and it feeds GetCommander, GetComponentData and ConvertIDTo64Bit. The rest of the entry is what the community reference describes.

Kindfunction
Parametersnone documented
Returnsships TradeShipData[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:30308
GetTrafficDensityOptionengineaddonsallReturns the current traffic density - the value SetTrafficDensityOption writes.

function engine addons only all signature: confirmed probed: 8.00, 9.00

GetTrafficDensityOption()

Returns the current traffic density - the value SetTrafficDensityOption writes. No vanilla code calls either half, and unlike the character-density pair this setting has no MD property and no script reader at all. Reads the persisted setting, not save state: it matches <trafficdensity> in config.xml and survives a reload. Returns the stored 32-bit float widened to a Lua number, so a value that is not exactly representable comes back approximate - 0.8 reads as 0.80000001192093.

Kindfunction
Parametersnone documented
Returnsdensity number - Traffic density. 0 to 1 by convention; the setter does not clamp.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - the read-back witness for SetTrafficDensityOption across four values, on both versions
GetTransportUnitMacrosengineaddonsallReturns the transport unit macros a ship macro can carry.

function engine addons only all signature: confirmed

GetTransportUnitMacros(macro)

Returns the transport unit macros a ship macro can carry. The map uses only the length - a ship with an empty list cannot transport units and is dropped from the list being offered.

Kindfunction
Parametersmacro string - The ship macro name.
Returnsmacros table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:30321
GetUIElementRectangleScreenPositionengineallallProjects a UI element position onto the screen as a **rectangle**: x, y, z, whether it is on screen, and the rectangle's width and height.

function engine all (addons + core) all signature: confirmed

GetUIElementRectangleScreenPosition(posID, minSize, maxScale)

Projects a UI element position onto the screen as a **rectangle**: x, y, z, whether it is on screen, and the rectangle's width and height. Only applicable outside worldspace mode. The minimum size and maximum scale bound how large it may be drawn, and the core target system asks for the rectangle first, because whether a target is off screen depends on the extent rather than the centre point. The width and height are always a multiple of 2. x, y and z carry the same meaning as in GetUIElementScreenPosition: x and y measured from the centre of the screen, negative towards the lower left, and z between the clipping planes from 0 to 1.

Kindfunction
ParametersposID any - The element position ID.
minSize number - Minimum rectangle size.
maxScale number optional - Maximum rectangle scale.
Returnsx number
y number
z number
onScreen boolean
width number
height number
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/core/lua/targetsystem.lua:3445
GetUIElementScreenPositionengineallallProjects a UI element position onto the screen and returns its x, y, z and whether it is on screen.

function engine all (addons + core) all signature: confirmed

GetUIElementScreenPosition(posID, sizeX, sizeY)

Projects a UI element position onto the screen and returns its x, y, z and whether it is on screen. Only applicable outside worldspace mode. The two sizes are the space to reserve around the element, which is what makes the on-screen test account for its extent rather than a bare point. GetUIElementRectangleScreenPosition is the version that returns a rectangle. x and y run from -viewWidth/2 to +viewWidth/2 and -viewHeight/2 to +viewHeight/2, with 0/0 at the centre of the screen and the negative corner at the lower left - not the top-left origin the rest of the widget system uses. z is the position between the clipping planes, from 0 to 1.

Kindfunction
ParametersposID any - The element position ID.
sizeX number - Reservation width, used for the on-screen test.
sizeY number - Reservation height, used for the on-screen test.
Returnsx number
y number
z number
onScreen boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/core/lua/targetsystem.lua:3643
GetUIRelationengineaddonsallReturns the player's numeric relation to a faction, as shown in the UI.

function engine addons only all signature: confirmed

GetUIRelation(id)

Returns the player's numeric relation to a faction, as shown in the UI. Pair it with C.GetUIRelationName for the localised name and colour of the same value.

Kindfunction
Parametersid any - The faction ID.
Returnsrelation number - Roughly -30 to +30; at or below -25 the faction is hostile.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 13 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1264, ui/addons/ego_detailmonitor/menu_docked.lua:426, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2386, ui/addons/ego_detailmonitor/menu_trader_blueprintsorlicences.lua:144
GetUISafeModeOptionengineaddonsallReturns whether UI safe mode is on - the mode that loads the UI without extensions.

function engine addons only all signature: confirmed

GetUISafeModeOption()

Returns whether UI safe mode is on - the mode that loads the UI without extensions. The options menu combines it with C.GetModifiedBasegameUIFilesExtensions() to decide whether to warn that base game UI files are being replaced.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:444
GetUnitStorageDataengineaddonsallReturns the units stored on a defensible, optionally filtered to one unit category.

function engine addons only all signature: confirmed

GetUnitStorageData(objectID, unitType, virtualammo, excluderestricted)

Returns the units stored on a defensible, optionally filtered to one unit category. The units themselves sit in the array part, with the totals as named fields alongside them, so walk it with ipairs and read capacity and stored off the table itself. virtualammo only means anything after SetVirtualCargoMode has been called. Neither it nor excluderestricted is passed by any vanilla call site, which never uses more than two arguments, so neither is confirmed.

Kindfunction
UnitStorageEntrymacro string - The unit macro name.
name string - The unit's displayed name.
amount number - How many are stored.
unavailable number - How many of those are unavailable.
UnitStorageDatacapacity number - Total unit capacity.
stored number - Total units stored.
categorystored number optional - Units stored of the requested category, where one was given.
ParametersobjectID any - The defensible to query.
unitType string optional - Unit category filter, e.g. "transport".
virtualammo boolean optional - Include virtual ammo; requires SetVirtualCargoMode first.
excluderestricted boolean optional - Leave restricted units out.
Returnsdata UnitStorageData
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 13 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:16180, ui/addons/ego_detailmonitor/menu_map.lua:22295, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:10466, ui/addons/ego_detailmonitor/menu_station_overview.lua:1352
GetUsableTableWidthwidgetaddonsallComputes the width usable by table columns after borders and scroll bar.

function widget_fullscreen addons only all signature: from source

GetUsableTableWidth(width, offsetX, numColumns, hasScrollBar)

Computes the width usable by table columns after borders and scroll bar.

Kindfunction
Parameterswidth number - Total available width.
offsetX number - Horizontal offset of the table.
numColumns integer optional - Column count, defaults to 1.
hasScrollBar boolean optional - Whether a scroll bar is reserved.
ReturnsusableWidth number
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getUsableTableWidth (8.00 :17842, 9.00 :18831)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
getValueengineallallReads a value out of an Anark data table.

function engine all (addons + core) all signature: unverified

getValue(table, row, column)

Reads a value out of an Anark data table. Part of the data-port API around AKDataPort. No vanilla code calls it; unverified.

Kindfunction
Parameterstable any - The data table, as returned by getTable.
row number - Row index.
column any - Column name or index.
Returnsvalue any
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
GetVentureOutcomesengineaddonsallReturns the venture outcomes waiting to be shown, as a table.

function engine addons only all signature: confirmed

GetVentureOutcomes()

Returns the venture outcomes waiting to be shown, as a table. The map menu treats an empty table as nothing to report, with next(outcomes) ~= nil.

Kindfunction
Parametersnone documented
Returnsoutcomes table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18326
GetVenturesengineaddonsallReturns the ventures currently known to the client.

function engine addons only all signature: unverified

GetVentures()

Returns the ventures currently known to the client. No vanilla code calls this; the parameters and return shape are unverified. The Online* family is the interface vanilla actually uses for ventures.

Kindfunction
Parametersnone documented
Returnsventures any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
GetVentureSuccessChanceengineaddonsallReturns the success chance of a venture.

function engine addons only all signature: unverified

GetVentureSuccessChance()

Returns the success chance of a venture. No vanilla code calls this; the parameters and return shape are unverified. OnlineGetVentureBaseSuccessChance is the Online* equivalent.

Kindfunction
Parametersnone documented
Returnschance any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
GetVersionStringengineaddonsallReturns the game version as a string.

function engine addons only all signature: confirmed

GetVersionString()

Returns the game version as a string. The options menu shows it followed by C.GetBuildVersionSuffix(), which carries the build number.

Kindfunction
Parametersnone documented
Returnsstring - The version string.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:1249
GetVolumeOptionengineaddonsallReturns the volume of one sound category on the engine's 0 to 1 scale; the options menu multiplies by 100 for its slider, which hands it back through SetVolumeOption.

function engine addons only all signature: confirmed

GetVolumeOption(sfxType)

Returns the volume of one sound category on the engine's 0 to 1 scale; the options menu multiplies by 100 for its slider, which hands it back through SetVolumeOption.

Kindfunction
ParameterssfxType any - The sound category, as passed to SetVolumeOption.
Returnsvolume number - In the 0-1 range.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7890
GetWareCapacityengineaddonsallRetrieves the total cargo capacity for a specific ware on a component.

function engine addons only all signature: confirmed

GetWareCapacity(componentID, wareID, arg3)

Retrieves the total cargo capacity for a specific ware on a component.

Kindfunction
ParameterscomponentID any - The ID of the component (e.g., ship, station).
wareID any - The ID of the ware.
arg3 any optional - Unidentified in 9.00 vanilla usage; a boolean.
Returnscapacity number - The total capacity for the specified ware.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 9 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:12381, ui/addons/ego_detailmonitor/menu_map.lua:20230, ui/addons/ego_detailmonitorhelper/helper.lua:11961, ui/addons/ego_interactmenu/menu_interactmenu.lua:822
GetWareDataengineaddonsallReads named properties off a ware, in the same variadic form as GetComponentData: every argument after the ware id is a property name, and one value comes back per name, in order.

function engine addons only all signature: confirmed

GetWareData(wareID, ...)

Reads named properties off a ware, in the same variadic form as GetComponentData: every argument after the ware id is a property name, and one value comes back per name, in order. Vanilla calls it more often than almost anything else in the file, usually for name alone but frequently for a handful at once. The 67 keys 9.00 vanilla passes, most used first: name, component, avgprice, islimited, transport, volume, ismissiononly, resources, ispaintmod, maxprice, ispersonalupgrade, isprimarymodpart, minprice, researchprecursors, tradelicence, volatile, buyprice, description, isunbundleammo, sortorder, allowdrop, hasblueprint, iscraftingresource, isequipment, ishiddenwithoutlicence, ismodpart, isbraneitem, video, blueprintsowners, iscrafting, isdeprecated, isoperationvolatile, isplayerblueprintallowed, isseasonvolatile, nocustomgamestart, productionresearchprecursors, products, researchtime, tradeonly, hasproductionmethod, icon, inventory, iscraftable, isprocessed, issinglecraft, isunreadinventory, isventureuploadallowed, modclass, modquality, playerillegal, productionmethod, shortname, factoryname, image, isblueprintsaleonly, iscargo, isexplorationchart, isminable, ismodule, isship, istransmutable, miningmapcolor, productionamount, productionmethods, productiontime, storagename, tags.

Kindfunction
ParameterswareID string - The ID of the ware.
Returnsany ... - One value per name, in the order asked.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 338 vanilla call sites, 2-8 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:102, ui/addons/ego_detailmonitor/menu_crafting.lua:238, ui/addons/ego_detailmonitor/menu_crafting.lua:300, ui/addons/ego_detailmonitor/menu_crafting.lua:625
GetWareExchangeTradeListengineaddonsallReturns the trades available for a ware exchange between two containers, as a list of trade offers in the same shape GetTradeData returns for a single trade.

function engine addons only all signature: confirmed

GetWareExchangeTradeList(tradingShipID, tradedContainerID, sortby)

Returns the trades available for a ware exchange between two containers, as a list of trade offers in the same shape GetTradeData returns for a single trade. It takes the **ship** and the **other container** - menu_map.lua:21362 passes exactly that pair. SetVirtualCargoMode has to have been called on both containers first, or the result comes back empty, which is the reason a correct-looking call can return nothing. No vanilla call site passes a third argument.

Kindfunction
ParameterstradingShipID any - The ship doing the exchange.
tradedContainerID any - The container it is exchanging with.
sortby any optional - Sort order. Documented; no vanilla call site passes one.
ReturnstradeList TradeData[]
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21362
GetWareProductionLimitengineaddonsallReturns the production limit set for a ware at a container - the amount the station is meant to keep rather than what it holds.

function engine addons only all signature: confirmed

GetWareProductionLimit(componentID, wareID)

Returns the production limit set for a ware at a container - the amount the station is meant to keep rather than what it holds. The map compares it against the current amount to show a shortfall.

Kindfunction
ParameterscomponentID any - The component (station or storage) to query.
wareID string - The ID of the ware.
Returnslimit number - The production limit for the ware.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 18 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:14116, ui/addons/ego_detailmonitorhelper/helper.lua:11604
GetWidgetSystemSizewidgetaddonsallReturns the width and height of the widget system - the drawing area menus lay themselves out in.

function widget_fullscreen addons only all signature: from source

GetWidgetSystemSize()

Returns the width and height of the widget system - the drawing area menus lay themselves out in. Helper.viewWidth and Helper.viewHeight are set from it, and are what menu code normally uses.

Kindfunction
Parametersnone documented
Returnswidth number - The width of the widget system.
height number - The height of the widget system.
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getWidgetSystemSize (8.00 :17860, 9.00 :18849)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetWidgetSystemSizeswidgetaddons≥ 9.00Returns the widget system dimensions and scaled border/scrollbar sizes.

function widget_fullscreen addons only ≥ 9.00 signature: from source

GetWidgetSystemSizes()

Returns the widget system dimensions and scaled border/scrollbar sizes.

Kindfunction
Parametersnone documented
Returnssizes table - width, height, table_borderSize, tableRowGroups_borderSize, scrollBar_width, scrollBar_sliderWidth, scrollBar_borderSize
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getWidgetSystemSizes (9.00 :18850)
Availabilityaddons only
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
GetWordWrapengineaddonsallReports whether a text widget wraps its text.

function engine addons only all signature: confirmed

GetWordWrap(fontStringID)

Reports whether a text widget wraps its text. widget_fullscreen.lua reads it with GetAlignment and GetSize when it measures a text for layout.

Kindfunction
ParametersfontStringID any - The ID of the font string.
ReturnsisWordWrapEnabled boolean - True if word wrap is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:13143
GetWorkForceRaceResourcesengineaddonsallReturns the workforce resource needs per race for a container - what the station has to supply to keep its people.

function engine addons only all signature: confirmed

GetWorkForceRaceResources(raceID)

Returns the workforce resource needs per race for a container - what the station has to supply to keep its people. Despite the parameter name here, every vanilla call passes a **container**, not a race ID, and guards it with IsComponentClass(container, "container").

Kindfunction
ParametersraceID string - The ID of the race.
Returnsresources table - A table of workforce resources for the race.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_ship_configuration.lua:6026, ui/addons/ego_detailmonitor/menu_station_overview.lua:895, ui/addons/ego_detailmonitorhelper/helper.lua:12338
goToBackSlideengineallallReturns a scene element to the slide it was on before the current one.

function engine all (addons + core) all signature: unverified

goToBackSlide(element)

Returns a scene element to the slide it was on before the current one. Sibling of goToSlide. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
goToNextSlideengineallallAdvances a scene element to the next slide.

function engine all (addons + core) all signature: unverified

goToNextSlide(element)

Advances a scene element to the next slide. Sibling of goToSlide. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
goToPreviousSlideengineallallMoves a scene element back to the previous slide.

function engine all (addons + core) all signature: unverified

goToPreviousSlide(element)

Moves a scene element back to the previous slide. Sibling of goToSlide. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
goToSlideengineallallSwitches an Anark element to a named slide - the core HUD's way of showing and hiding things.

function engine all (addons + core) all signature: confirmed

goToSlide(element, slide)

Switches an Anark element to a named slide - the core HUD's way of showing and hiding things. "active" and "inactive" are the two every vanilla element has, and an element goes to its inactive slide before the presentation hides.

Kindfunction
Parameterselement any - The scene element.
slide string - The slide name, e.g. "active".
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 398 vanilla call sites, 2 arguments
Seen at ui/core/lua/compass.lua:345, ui/core/lua/crosshair handling.lua:1664, ui/core/lua/debugline.lua:177, ui/core/lua/dialogmenu.lua:683
goToTimeengineallallMoves an Anark element's timeline to a given time, which is how the core HUD drives every bar and gauge: the element is authored as an animation from empty to full, and the fill is a position on it.

function engine all (addons + core) all signature: confirmed

goToTime(element, time)

Moves an Anark element's timeline to a given time, which is how the core HUD drives every bar and gauge: the element is authored as an animation from empty to full, and the fill is a position on it. Vanilla guards the call with its own remembered value, so an unchanged bar is not re-driven every frame.

Kindfunction
Parameterselement any - The scene element.
time number - The target time.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 24 vanilla call sites, 2 arguments
Seen at ui/core/lua/crosshair handling.lua:2499, ui/core/lua/loading.lua:515, ui/core/lua/monitors.lua:963, ui/core/lua/targetsystem.lua:4615
HasAllResourcesToCraftengineaddonsallChecks if all resources required to craft an item are available.

function engine addons only all signature: confirmed

HasAllResourcesToCraft(componentID, wareID, amount)

Checks if all resources required to craft an item are available.

Kindfunction
ParameterscomponentID any optional - The component crafting; vanilla always passes nil.
wareID any optional - The ID of the ware to craft.
amount number optional - The amount to craft.
ReturnshasResources boolean - True if all resources are available.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:101, ui/addons/ego_detailmonitor/menu_playerinfo.lua:730
hasAttributeengineallallReports whether a scene element has the given attribute.

function engine all (addons + core) all signature: unverified

hasAttribute(element, attribute)

Reports whether a scene element has the given attribute. Use it before getAttribute to avoid the engine's error on an unknown attribute. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
attribute string - Attribute path, e.g. position.x.
Returnshas boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
HasContainerStockLimitOverrideengineaddonsallChecks if a container has a stock limit override for a specific ware.

function engine addons only all signature: confirmed

HasContainerStockLimitOverride(containerID, wareID)

Checks if a container has a stock limit override for a specific ware.

Kindfunction
ParameterscontainerID any - The ID of the container.
wareID string - The ID of the ware.
ReturnshasOverride boolean - True if a stock limit override is set.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:11683
HasContainerWarePriceOverrideengineaddonsallChecks if a container has a price override for a specific ware.

function engine addons only all signature: confirmed

HasContainerWarePriceOverride(containerID, wareID, isBuyOverride)

Checks if a container has a price override for a specific ware.

Kindfunction
ParameterscontainerID any - The ID of the container.
wareID string - The ID of the ware.
isBuyOverride boolean - True to check for a buy price override, false for a sell price override.
ReturnshasOverride boolean - True if a price override is set.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:10999, ui/addons/ego_detailmonitorhelper/helper.lua:11985
HasFlightControlengineallallReports whether the player currently has flight control.

function engine all (addons + core) all signature: confirmed

HasFlightControl(componentID)

Reports whether the player currently has flight control. All three vanilla calls pass nothing and read it as a question about the player: crosshair handling.lua activates the crosshair when this is true and the game is not in external target mode. componentID is marked optional because no vanilla code passes one, so whether the engine accepts one, and what it would mean, is unverified.

Kindfunction
ParameterscomponentID any optional - Optional component to ask about. No vanilla code passes one.
ReturnshasFlightControl boolean - True if flight control is held.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/core/lua/crosshair handling.lua:1131
HasLicenceengineaddonsallReports whether a faction holds a licence with another faction.

function engine addons only all signature: confirmed

HasLicence(factionID, licenceID, otherFactionID)

Reports whether a faction holds a licence with another faction. Always three arguments: who holds it ("player"), which licence, and who it is with - a trade licence is a relationship between two factions, not a property of one.

Kindfunction
ParametersfactionID string - The ID of the faction.
licenceID string - The ID of the licence.
otherFactionID string optional - The faction the licence applies to.
ReturnshasLicence boolean - True if the faction holds the licence.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 9 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1780, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2103, ui/addons/ego_detailmonitor/menu_map.lua:13800, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2432
HasShipyardengineaddonsallReports whether a **space** - a cluster, sector or zone - contains a shipyard.

function engine addons only all signature: confirmed probed: 8.00, 9.00

HasShipyard(spaceID)

Reports whether a **space** - a cluster, sector or zone - contains a shipyard. No vanilla code calls it; the menus ask GetComponentData(id, "isshipyard") of an object instead, which answers several such questions at once. **It never returns false.** A space with a shipyard returns true; one without returns *nothing at all*, which reaches the caller as nil. if HasShipyard(s) then is therefore correct, while anything that counts return values or compares against false is not. A bare HasShipyard() returns true, because the missing argument resolves to the whole universe, which does contain shipyards. That is not an error and not an answer about anything the caller has in hand.

Kindfunction
ParametersspaceID any - The cluster, sector or zone to ask about.
ReturnsisShipyard boolean? - true, or no value at all when there is none.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - 51 calls, the true and the silent case each matched against the map across thirteen sectors; two 9.00 sectors, one silent with no shipyard in its seed data and one true with the player's own shipyard in it
HasTagengineaddonsallReports whether a connection of a component carries a tag.

function engine addons only all signature: confirmed

HasTag(componentID, connectionName, tag)

Reports whether a connection of a component carries a tag. The connection matters as much as the component - the target monitor asks whether the connection the player actually triggered is tagged shipconsole, which is a different question from whether the object has one somewhere.

Kindfunction
ParameterscomponentID any - The ID of the component.
connectionName string - The connection on the component to check.
tag string - The tag to check for.
ReturnshasTag boolean - True if the component has the tag.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 15 vanilla call sites, 3 arguments
Seen at ui/addons/ego_targetmonitor/targetmonitor.lua:376
HasWharfengineaddonsallReports whether a **space** - a cluster, sector or zone - contains a wharf.

function engine addons only all signature: confirmed probed: 8.00, 9.00

HasWharf(spaceID)

Reports whether a **space** - a cluster, sector or zone - contains a wharf. No vanilla code calls it; the menus ask GetComponentData(id, "iswharf") of an object instead, which answers several such questions in one call. **It never returns false**, exactly as HasShipyard does not: a wharf gives true, no wharf gives *nothing*, reaching the caller as nil. A bare HasWharf() returns true, the missing argument resolving to the whole universe. Unlike its twin, this name is absent from the community LuaLS library altogether, so the space-class argument here is the engine's own, taken from its rejection of everything else.

Kindfunction
ParametersspaceID any - The cluster, sector or zone to ask about.
ReturnshasWharf boolean? - true, or no value at all when there is none.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - 51 calls, the true and the silent case each matched against the map across thirteen sectors; two 9.00 sectors, both true, one for wharf_alliance_toa in its seed data and one for the player's own wharf
HaveExtensionSettingsChangedengineaddonsallReports whether any extension setting has been changed since the game started - what the options menu turns into the warning icon that a restart is needed.

function engine addons only all signature: confirmed

HaveExtensionSettingsChanged()

Reports whether any extension setting has been changed since the game started - what the options menu turns into the warning icon that a restart is needed.

Kindfunction
Parametersnone documented
ReturnshaveChanged boolean - True if settings have changed.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:5903
HelperaddonaddonsallThe shared UI helper library every menu is built on.

table addon addons only all declaration: from source

Helper = {}

The shared UI helper library every menu is built on. Registered with MakeGlobalAvailable("Helper"), so it reaches the whole addons Lua environment. Carries the standard fonts, sizes and colours (Helper.standardFont, Helper.scaleX, Helper.standardTextHeight), the frame and table builders, and the menu registry. Not available in the core Lua environment.

Kindtable
Originaddon
ui/addons/ego_detailmonitorhelper/helper.lua - table assignment (8.00 :486, 9.00 :514)
ui/addons/ego_detailmonitorhelper/helper.lua - MakeGlobalAvailable (8.00 :549, 9.00 :585)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
HideAllCircleswidgetaddonsallHides every circle drawn with DrawCircle.

function widget_fullscreen addons only all signature: from source probed: 8.00, 9.00

HideAllCircles()

Hides every circle drawn with DrawCircle. No vanilla code calls it - the menus clear all shape kinds at once with HideAllShapes.

Kindfunction
Parametersnone documented
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideCircles (8.00 :17851, 9.00 :18840)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
HideAllRectswidgetaddonsallHides every rectangle drawn with DrawRect.

function widget_fullscreen addons only all signature: from source probed: 8.00, 9.00

HideAllRects()

Hides every rectangle drawn with DrawRect. No vanilla code calls it - the menus clear all shape kinds at once with HideAllShapes.

Kindfunction
Parametersnone documented
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideRects (8.00 :17848, 9.00 :18837)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
HideAllShapeswidgetaddonsallHides every queued shape at once - circles, rectangles and triangles together.

function widget_fullscreen addons only all signature: from source

HideAllShapes()

Hides every queued shape at once - circles, rectangles and triangles together. This is the one the menus actually use; the per-kind and per-shape variants are all uncalled in vanilla.

Kindfunction
Parametersnone documented
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideAllShapes (8.00 :17855, 9.00 :18844)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
HideAllTriangleswidgetaddonsallHides every triangle drawn with DrawTriangle.

function widget_fullscreen addons only all signature: from source probed: 8.00, 9.00

HideAllTriangles()

Hides every triangle drawn with DrawTriangle. No vanilla code calls it - the menus clear all shape kinds at once with HideAllShapes.

Kindfunction
Parametersnone documented
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideTriangles (8.00 :17854, 9.00 :18843)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
HideCirclewidgetaddonsallHides one circle drawn with DrawCircle, by its ID.

function widget_fullscreen addons only all signature: from source

HideCircle(circleID)

Hides one circle drawn with DrawCircle, by its ID. No vanilla code calls it - HideAllCircles and HideAllShapes are what the menus use.

Kindfunction
ParameterscircleID any - The ID of the circle to hide.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideCircle (8.00 :17850, 9.00 :18839)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
HidePresentationengineallallHides the presentation.

function engine all (addons + core) all signature: confirmed

HidePresentation(clusterID)

Hides the presentation. All 11 vanilla calls pass nothing and every one of them is paired with LockPresentation - the HUD element goes to its inactive slide, hides, and locks so nothing redraws it. All of them sit in ui/core/* files, where the presentation being hidden is the current one. clusterID is marked optional because no vanilla code passes one, so whether the engine accepts one is unverified.

Kindfunction
ParametersclusterID any optional - Optional presentation cluster to hide. No vanilla code passes one.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 11 vanilla call sites, 0 arguments
Seen at ui/core/lua/compass.lua:438, ui/core/lua/debugline.lua:184, ui/core/lua/dialogmenu.lua:351, ui/core/lua/gameover.lua:71
HideRectwidgetaddonsallHides one rectangle drawn with DrawRect, by its ID.

function widget_fullscreen addons only all signature: from source

HideRect(rectID)

Hides one rectangle drawn with DrawRect, by its ID. No vanilla code calls it - the menus clear shapes with HideAllRects or HideAllShapes.

Kindfunction
ParametersrectID any - The ID of the rectangle to hide.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideRect (8.00 :17847, 9.00 :18836)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
HideTrianglewidgetaddonsallHides one triangle drawn with DrawTriangle, by its ID.

function widget_fullscreen addons only all signature: from source

HideTriangle(triangleID)

Hides one triangle drawn with DrawTriangle, by its ID. No vanilla code calls it - the menus clear shapes with HideAllTriangles or HideAllShapes.

Kindfunction
ParameterstriangleID any - The ID of the triangle to hide.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideTriangle (8.00 :17853, 9.00 :18842)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
HideViewengineallallHides the current view.

function engine all (addons + core) all signature: confirmed

HideView(viewID)

Hides the current view. Its one vanilla caller, ego_viewhelper/viewhelper.lua:84, passes nothing and clears its own frame table afterwards, so the engine hides whatever view is up. viewID is marked optional because no vanilla code passes one, so whether the engine accepts one is unverified.

Kindfunction
ParametersviewID any optional - Optional view to hide. No vanilla code passes one.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:84
IncStatValueengineaddonsallAdds to a statistic.

function engine addons only all signature: confirmed probed: 8.00, 9.00

IncStatValue(statID, addvalue)

Adds to a statistic. **addvalue is optional and defaults to 1**: measured, the two-argument call moved the statistic by exactly the value given, and the one-argument call moved it by 1 with no engine complaint. The engine reports this one as expected >= 1, unlike SetStatValue's hard expected 2. No vanilla Lua calls it - the shipped menus only read statistics, with GetAllStatIDs and GetStatData - so it is there for code that has its own counters to keep. Uncalled is not unused: the game writes statistics constantly from MD, where a statistic is a plain lvalue and the equivalent of this call is a set_value on stat.<id> with operation="add". See SetStatValue for which statistics are safe to write: some persist to the Steam/GOG account rather than to the savegame.

Kindfunction
ParametersstatID string - The ID of the statistic to increment.
addvalue number optional - The value to add. Defaults to 1.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - +7 and the bare +1 default, both read back and witnessed from MD, on both versions
initMissionBarScalecorecoreallApplies the UI scale factor to the mission bar's text and geometry.

function core core only all signature: from source

initMissionBarScale()

Applies the UI scale factor to the mission bar's text and geometry. Core Lua environment only - not reachable from the addons Lua environment.

Kindfunction
Parametersnone documented
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :2500, 9.00 :2506)
Availabilitycore only
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
InstallSteamDLCengineaddonsallInstalls a DLC through Steam, by its app ID.

function engine addons only all signature: confirmed

InstallSteamDLC(appid)

Installs a DLC through Steam, by its app ID. The extensions page offers it for an entry that is not installed, and UninstallSteamDLC for one that is.

Kindfunction
Parametersappid any - The AppID of the DLC to install.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:13537
InterruptPlayerComputerengineaddonsallInterrupts the player's computer control, likely to regain control for the UI.

function engine addons only all signature: confirmed probed: 8.00, 9.00

InterruptPlayerComputer()

Interrupts the player's computer control, likely to regain control for the UI.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
IsBorderEnabledengineallallReports whether a table draws its border.

function engine all (addons + core) all signature: confirmed

IsBorderEnabled(tableID)

Reports whether a table draws its border. widget_fullscreen.lua reads it once while building the table element and caches it.

Kindfunction
ParameterstableID any - The ID of the table.
ReturnsisBorderEnabled boolean - True if the border is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14479
IsButtonActiveengineallallReports whether a button is active, meaning it can be pressed.

function engine all (addons + core) all signature: confirmed

IsButtonActive(buttonID)

Reports whether a button is active, meaning it can be pressed. widget_fullscreen.lua checks it before handling a hotkey, so a shortcut cannot trigger a button the menu has greyed out.

Kindfunction
ParametersbuttonID any - The ID of the button.
ReturnsisActive boolean - True if the button is active.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:5313
IsCheatVersionengineaddonsallReports whether this is a cheat build of the game.

function engine addons only all signature: confirmed

IsCheatVersion()

Reports whether this is a cheat build of the game. Vanilla puts developer-only entries behind it - the map's cheat menu, the map editor's extra construction plans - so the same UI code ships in both builds.

Kindfunction
Parametersnone documented
ReturnsisCheatVersion boolean - True if it is a cheat version.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 18 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:12742, ui/addons/ego_detailmonitor/menu_mapeditor.lua:297, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:8287, ui/addons/ego_detailmonitor/menu_station_configuration.lua:2000
IsComponentClassengineaddonsallReports whether a component is of a class - sector, ship, station, zone, highway, container.

function engine addons only all signature: confirmed

IsComponentClass(componentID, className)

Reports whether a component is of a class - sector, ship, station, zone, highway, container. It is the type test the whole UI is built on, often two at once to separate a class from one that inherits it, as in zone-but-not-highway. C.IsComponentClass is the same test through the ffi interface.

Kindfunction
ParameterscomponentID any - The ID of the component.
className string - The name of the class to check against.
ReturnsisClass boolean - True if the component is of the specified class.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 92 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:912, ui/addons/ego_detailmonitor/menu_map.lua:1964, ui/addons/ego_detailmonitor/menu_platformundock.lua:140, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2952
IsComponentConstructionengineaddonsallReports whether a component is still being built.

function engine addons only all signature: confirmed

IsComponentConstruction(componentID)

Reports whether a component is still being built. It separates a finished module from a planned one throughout the station menus, and a component ID of 0 means the same thing, which is why vanilla tests both together.

Kindfunction
ParameterscomponentID any - The ID of the component.
ReturnsisConstructing boolean - True if the component is under construction.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 32 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:8999, ui/addons/ego_detailmonitor/menu_station_configuration.lua:4668, ui/addons/ego_detailmonitor/menu_station_overview.lua:708, ui/addons/ego_interactmenu/menu_interactmenu.lua:3994
IsComponentOperationalengineaddonsallReports whether a component is still working - not destroyed, not wrecked, not under construction.

function engine addons only all signature: confirmed

IsComponentOperational(componentID)

Reports whether a component is still working - not destroyed, not wrecked, not under construction. The UI guards nearly everything with it: shield and hull readouts return 0 when it is false, and actions like comm or change formation are not offered at all.

Kindfunction
ParameterscomponentID any - The ID of the component.
ReturnsisOperational boolean - True if the component is operational.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 17 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:5470, ui/addons/ego_detailmonitor/menu_platformundock.lua:160, ui/addons/ego_detailmonitorhelper/helper.lua:5883, ui/addons/ego_interactmenu/menu_interactmenu.lua:5045
IsContainerOperationalRangeSufficientengineaddonsallReports whether a container's operational range covers the given space.

function engine addons only all signature: confirmed probed: 8.00, 9.00

IsContainerOperationalRangeSufficient(containerID, spaceID)

Reports whether a container's operational range covers the given space. No vanilla code calls it. **Both arguments are required.** The one-argument call this row used to declare is answered with Invalid number of arguments (1, expected 2) - there is no default space. Argument 2 is a space of any granularity: **cluster, sector and zone are all accepted**, and on every target tried the three agree with one another. So **the answer follows the container, not the space it is asked about**. Every station measured answers false - a headquarters, a shipyard, a wharf and a factory - while four of five ships answer true and a carrier answers false, so it is not a class test either. What makes a range "sufficient" is still not measured, so the condition behind the boolean remains the name's own claim.

Kindfunction
ParameterscontainerID any - The container to ask about.
spaceID any - The space to test the range against: a cluster, sector or zone.
ReturnsisSufficient boolean - True if the range is sufficient.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - four call shapes on a player HQ: bare, and against its zone, sector and cluster; the same four on each of nine 9.00 targets, where the bare call is refused as "(1, expected 2)" and the other three always agree with one another, so the space argument does not move the answer. Those runs are also the first to see it return true: four ships true, one ship and all four stations false
IsDialogActiveengineallallReports whether a conversation dialog is running.

function engine all (addons + core) all signature: confirmed

IsDialogActive()

Reports whether a conversation dialog is running. The core dialog menu checks it while starting up, because a UI reload during a conversation has to find the dialog already in progress rather than wait for an event that has been and gone.

Kindfunction
Parametersnone documented
ReturnsisActive boolean - True if a dialog is active.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/dialogmenu.lua:1124
IsDockingPossibleengineaddonsallReports whether a ship may dock at a dock.

function engine addons only all signature: confirmed

IsDockingPossible(shipID, dockID, arg3, arg4, arg5)

Reports whether a ship may dock at a dock. Vanilla passes two, four or five arguments, so everything after the dock is optional; what those extra arguments select is not identifiable from the call sites, which pass a container, true and a boolean respectively.

Kindfunction
ParametersshipID any - The ID of the ship.
dockID any - The ID of the dock.
arg3 any optional - Unidentified in 9.00 vanilla usage; a container, or nil.
arg4 any optional - Unidentified in 9.00 vanilla usage; true or nil.
arg5 any optional - Unidentified in 9.00 vanilla usage; a boolean.
ReturnsisPossible boolean - True if docking is possible.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 11 vanilla call sites, 2-5 arguments
Seen at ui/addons/ego_detailmonitor/menu_docked.lua:1031, ui/addons/ego_detailmonitor/menu_map.lua:16355, ui/addons/ego_detailmonitor/menu_map.lua:22317, ui/addons/ego_interactmenu/menu_interactmenu.lua:2100
IsFactionKnownengineaddonsallReports whether the player knows a faction.

function engine addons only all signature: confirmed

IsFactionKnown(factionID)

Reports whether the player knows a faction. The target monitor asks before adding the faction to the known items, so what the player has already met is not re-announced.

Kindfunction
ParametersfactionID string - The ID of the faction.
ReturnsisKnown boolean - True if the faction is known.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_targetmonitor/targetmonitor.lua:259
IsFirstPersonengineallallReports whether the player is out of the pilot seat and walking.

function engine all (addons + core) all signature: confirmed

IsFirstPerson()

Reports whether the player is out of the pilot seat and walking. It changes what the UI may do: softtargeting is refused in first person unless external target mode is on, and the radar is only drawn outside it.

Kindfunction
Parametersnone documented
ReturnsisFirstPerson boolean - True if in first-person mode.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 7 vanilla call sites, 0 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1303, ui/addons/ego_detailmonitor/menu_map.lua:5566, ui/addons/ego_interactmenu/menu_interactmenu.lua:2203, ui/core/lua/monitors.lua:801
IsFullscreenWidgetSystemwidgetabsentnone⚠ registered with AddGlobalAccess, but the implementation it names does not exist, so the global is nil at runtime

function widget_fullscreen does not exist none signature: from source

IsFullscreenWidgetSystem()

⚠ registered with AddGlobalAccess, but the implementation it names does not exist, so the global is nil at runtime

Registered but **never actually created**: widget_fullscreen.lua publishes it with AddGlobalAccess("IsFullscreenWidgetSystem", widgetSystem.isFullscreenMode), and widgetSystem.isFullscreenMode is defined nowhere in that file. The registration therefore stores nil, so the name exists in neither version. A vanilla bug: calling it fails.

Kindfunction
Parametersnone documented
Returnsboolean
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.isFullscreenMode (8.00 :17856, 9.00 :18845)
Availabilitydoes not exist
no vanilla call site in either version
Game versionsin none of 8.00, 9.00
8.00 absent
9.00 absent
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
IsGamepadActiveengineaddonsallReports whether a gamepad is in use.

function engine addons only all signature: unverified

IsGamepadActive()

Reports whether a gamepad is in use. No vanilla code calls it: the menus ask GetControllerInfo() == "gamepad" instead, which distinguishes gamepad, joystick and mouse in one call.

Kindfunction
Parametersnone documented
ReturnsisGamepadActive boolean - True if a gamepad is active.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
isIconPropertyFunctionCelladdonaddonsallReports whether an icon property has to be re-evaluated every frame.

function addon addons only all signature: from source

isIconPropertyFunctionCell(cell, iconproperty)

Reports whether an icon property has to be re-evaluated every frame. True when icon, color or glowfactor is a function; nil when the icon is empty or all three are static. Internal to the helper.

Kindfunction
Parameterscell any - The cell the property belongs to.
iconproperty table - The icon property.
Returnsisfunctioncell boolean|nil
Originaddon
ui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3470, 9.00 :3654)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
IsInfoUnlockedForPlayerengineaddonsallChecks if a specific piece of information is unlocked for the player.

function engine addons only all signature: confirmed

IsInfoUnlockedForPlayer(componentid, infoString)

Checks if a specific piece of information is unlocked for the player.

Kindfunction
Parameterscomponentid any - The component the information belongs to.
infoString string - The information key, e.g. "name", "storage_amounts".
ReturnsisUnlocked boolean - True if the information is unlocked.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 21 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:5476, ui/addons/ego_detailmonitorhelper/helper.lua:13032, ui/addons/ego_interactmenu/menu_interactmenu.lua:7432, ui/addons/ego_targetmonitor/targetmonitor.lua:435
IsInteractiveengineallallReports whether a widget takes input at all.

function engine all (addons + core) all signature: confirmed

IsInteractive(elementID)

Reports whether a widget takes input at all. widget_fullscreen.lua checks the table before acting on a click inside it, so a click on a display-only table is simply dropped.

Kindfunction
ParameterselementID any - The ID of the UI element.
ReturnsisInteractive boolean - True if the element is interactive.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:3632
IsKnownItemengineaddonsallReports whether an item is known to the player, addressed by category and ID - factions, researchables, timeline, or a blueprint library type.

function engine addons only all signature: confirmed

IsKnownItem(category, itemID)

Reports whether an item is known to the player, addressed by category and ID - factions, researchables, timeline, or a blueprint library type. It is what greys out the entries the player has not discovered yet.

Kindfunction
Parameterscategory string - The category of the item.
itemID string - The ID of the item.
ReturnsisKnown boolean - True if the item is known.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 13 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:666, ui/addons/ego_detailmonitor/menu_map.lua:13796, ui/addons/ego_detailmonitor/menu_research.lua:105, ui/addons/ego_detailmonitor/menu_timeline.lua:267
IsLuaDebugInputEnabledengineaddonsallReports whether the game accepts Lua typed in at runtime, which is off unless the game was started for it.

function engine addons only all signature: confirmed

IsLuaDebugInputEnabled()

Reports whether the game accepts Lua typed in at runtime, which is off unless the game was started for it. ego_debug sets its own enabled flag from it, so the debug input is simply absent otherwise.

Kindfunction
Parametersnone documented
ReturnsisEnabled boolean - True if debug input is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_debug/debug.lua:12
IsMacroClassengineaddonsallReports whether a macro belongs to a class - ship_l, ship_xl, object.

function engine addons only all signature: confirmed

IsMacroClass(macroName, className)

Reports whether a macro belongs to a class - ship_l, ship_xl, object. It works on the macro name rather than on an existing object, which is how the encyclopedia and the ship comparison classify things that are not in the game world at all.

Kindfunction
ParametersmacroName string - The name of the macro.
className string - The class name to check against.
ReturnsisClass boolean - True if the macro belongs to the class.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 65 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:978, ui/addons/ego_detailmonitor/menu_map.lua:9375, ui/addons/ego_detailmonitor/menu_mapeditor.lua:584, ui/addons/ego_detailmonitor/menu_ship_comparison.lua:365
IsObstructedengineallallReports whether something blocks the line of sight to a target element, identified by its position id - a real ray-cast, which is why the core target system stores the answer and reuses it for the rest of the frame.

function engine all (addons + core) all signature: confirmed

IsObstructed(position, obstructedByOwnComponent, ignoreCockpitObstruction)

Reports whether something blocks the line of sight to a target element, identified by its position id - a real ray-cast, which is why the core target system stores the answer and reuses it for the rest of the frame. With obstructedByOwnComponent true, the element can also be obstructed by geometry on its own component - a target point on a capital ship blocked by that ship's own hull, say. The third argument governs the player's cockpit geometry: when it is true the cockpit never counts as an obstruction, which is the pre-4.20 behaviour and remains the default.

Kindfunction
Parametersposition any - The position id of the target element to check.
obstructedByOwnComponent boolean optional - Let the element's own component obstruct it.
ignoreCockpitObstruction boolean optional - Do not treat the player cockpit as an obstruction. Defaults to true.
ReturnsisObstructed boolean - True if the position is obstructed.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/core/lua/targetsystem.lua:3946
IsOnlineSavePossibleengineaddonsallReports whether the game can be saved as an online save right now.

function engine addons only all signature: confirmed

IsOnlineSavePossible()

Reports whether the game can be saved as an online save right now. The map menu makes the Convert Venture Save button active from it rather than hiding the button.

Kindfunction
Parametersnone documented
ReturnsisPossible boolean - True if an online save is possible.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:24896
IsPlayerFirstPersonengineaddonsallReports whether the player is in first person.

function engine addons only all signature: unverified

IsPlayerFirstPerson()

Reports whether the player is in first person. No vanilla code calls it - IsFirstPerson is what the UI uses, and the two look like the same question asked twice.

Kindfunction
Parametersnone documented
ReturnsisFirstPerson boolean - True if in first-person mode.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
IsSameComponentengineaddonsallReports whether two component references are the same object.

function engine addons only all signature: confirmed

IsSameComponent(componentA, componentB)

Reports whether two component references are the same object. Component IDs cannot be compared with == across the conversions the UI does, so every menu that looks a component up in a list it already holds goes through this.

Kindfunction
ParameterscomponentA any - The first component.
componentB any - The second component.
ReturnsareSame boolean - True if the components are the same.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 28 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:890, ui/addons/ego_detailmonitor/menu_map.lua:7343, ui/addons/ego_detailmonitor/menu_playerinfo.lua:2544, ui/addons/ego_detailmonitor/menu_station_overview.lua:4535
IsSameTradeengineaddonsallReports whether two trade IDs are the same trade.

function engine addons only all signature: confirmed

IsSameTrade(tradeA, tradeB)

Reports whether two trade IDs are the same trade. Trade IDs cannot simply be compared - the map menu walks its buy offers with this to find the one it already holds data for.

Kindfunction
ParameterstradeA any - The first trade.
tradeB any - The second trade.
ReturnsareSame boolean - True if the trades are the same.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:21765
IsSavingPossibleengineaddonsallReports whether the game can be saved right now - the menus make a save button active from it rather than hiding it, and C.GetSaveInquiryText() explains why not.

function engine addons only all signature: confirmed

IsSavingPossible(arg1)

Reports whether the game can be saved right now - the menus make a save button active from it rather than hiding it, and C.GetSaveInquiryText() explains why not. Vanilla passes true, false or nothing at all; what the argument selects is not identifiable from the call sites.

Kindfunction
Parametersarg1 boolean optional - Unidentified in 9.00 vanilla usage; true or false.
ReturnsisPossible boolean - True if saving is possible.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_detailmonitor/menu_userquestion.lua:311, ui/addons/ego_gameoptions/gameoptions.lua:6241, ui/addons/ego_gameoptions/gameoptions.lua:13416, ui/addons/ego_gameoptions/onlineupdate.lua:154
IsSelectableengineallallReports whether a widget can be selected.

function engine all (addons + core) all signature: confirmed

IsSelectable(elementID)

Reports whether a widget can be selected. widget_fullscreen.lua walks a table row cell by cell with it to find the first cell the player can actually land on.

Kindfunction
ParameterselementID any - The ID of the UI element.
ReturnsisSelectable boolean - True if the element is selectable.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:7690
IsSofttargetLockedengineallallReports whether the softtarget is currently held fixed.

function engine all (addons + core) all signature: confirmed

IsSofttargetLocked()

Reports whether the softtarget is currently held fixed. The core target system will not change the softtarget while it is true, whoever took the lock with RequestSofttargetLock.

Kindfunction
Parametersnone documented
ReturnsisLocked boolean - True if the soft target is locked.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/core/lua/targetsystem.lua:2464
IsSteamworksEnabledengineallallReports whether the game is running against Steam.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

IsSteamworksEnabled()

Reports whether the game is running against Steam. Everything that would open the Steam overlay is guarded with it, because the same UI runs on builds that have no Steam at all.

Kindfunction
Parametersnone documented
ReturnsisEnabled boolean - True if Steamworks is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 10 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13242, ui/addons/ego_gameoptions/gameoptions.lua:3437, ui/core/lua/promo.lua:285
Probed in-game8.00, 9.00 - false on the GOG build and true on the Steam build, the same rung on both stores
IsTableColumnWidthPercentageengineallallReports whether a table's column widths are percentages rather than pixels.

function engine all (addons + core) all signature: confirmed

IsTableColumnWidthPercentage(tableID)

Reports whether a table's column widths are percentages rather than pixels. widget_fullscreen.lua needs to know before it can adjust them for a scrollbar it has just deployed.

Kindfunction
ParameterstableID any - The ID of the table.
ReturnsisPercentage boolean - True if column widths are percentages.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14366
IsTableRowSelectableengineallallReports whether a table row can be selected.

function engine all (addons + core) all signature: confirmed

IsTableRowSelectable(tableID, row)

Reports whether a table row can be selected. widget_fullscreen.lua walks every row once after building a table and remembers the unselectable ones, so keyboard navigation can skip them without asking again.

Kindfunction
ParameterstableID any - The ID of the table.
row number - The row index.
ReturnsisSelectable boolean - True if the row is selectable.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site (8.00 only), 2 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:13638
IsTableWrapAroundengineallallReports whether a table's navigation wraps from the last row back to the first.

function engine all (addons + core) all signature: confirmed

IsTableWrapAround(tableID)

Reports whether a table's navigation wraps from the last row back to the first. widget_fullscreen.lua reads it once while building the table element and caches it.

Kindfunction
ParameterstableID any - The ID of the table.
ReturnsisWrapAround boolean - True if wrap-around is enabled.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/widget/lua/widget_fullscreen.lua:14485
isTextPropertyFunctionCelladdonaddonsallReports whether a text property has to be re-evaluated every frame.

function addon addons only all signature: from source

isTextPropertyFunctionCell(cell, textproperty)

Reports whether a text property has to be re-evaluated every frame. True when text, color or glowfactor is a function; nil when there is no text or all three are static. Internal to the helper.

Kindfunction
Parameterscell any - The cell the property belongs to.
textproperty table - The text property.
Returnsisfunctioncell boolean|nil
Originaddon
ui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3416, 9.00 :3599)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
IsTypeengineallallReports whether a widget is of a given kind - "table", "editbox" and the rest.

function engine all (addons + core) all signature: confirmed

IsType(componentID, typeName)

Reports whether a widget is of a given kind - "table", "editbox" and the rest. It is how vanilla walks a frame's children and decides what each one is, since the children come back as opaque IDs.

Kindfunction
ParameterscomponentID any - The ID of the component.
typeName string - The type name to check against.
ReturnsisType boolean - True if the component is of the specified type.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 79 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2347, ui/widget/lua/widget_fullscreen.lua:1701
IsValidComponentengineaddonsallReports whether a component ID still refers to something that exists.

function engine addons only all signature: confirmed

IsValidComponent(componentID)

Reports whether a component ID still refers to something that exists. Anything the UI stored earlier has to be checked with it before use - a logbook entry's component, a menu's remembered object - because the object can be gone by the time the player clicks the row.

Kindfunction
ParameterscomponentID any - The ID of the component.
ReturnsisValid boolean - True if the component is valid.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 40 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4357, ui/addons/ego_detailmonitor/menu_playerinfo.lua:853, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:9987, ui/addons/ego_detailmonitor/menu_station_overview.lua:2442
IsValidTradeengineaddonsallReports whether a trade ID still refers to a live trade.

function engine addons only all signature: confirmed

IsValidTrade(tradeID)

Reports whether a trade ID still refers to a live trade. The map menu guards GetTradeData with it, because a trade can be gone by the time the row that shows it is redrawn.

Kindfunction
ParameterstradeID any - The ID of the trade.
ReturnsisValid boolean - True if the trade is valid.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:1063
IsValidWidgetElementengineallallReports whether a widget element still exists.

function engine all (addons + core) all signature: confirmed

IsValidWidgetElement(elementID)

Reports whether a widget element still exists. Anything holding a frame or a widget across a UI reload has to check it first - the debug log guards its own frame with it, because working with a freed element is what causes the errors it is there to report.

Kindfunction
ParameterselementID any - The ID of the widget element.
ReturnsisValid boolean - True if the element is valid.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 79 vanilla call sites, 1 argument
Seen at ui/addons/ego_debuglog/debuglog.lua:1010, ui/addons/ego_detailmonitorhelper/helper.lua:1522, ui/widget/lua/widget_fullscreen.lua:1693
IsWareIllegalToengineaddonsallReports whether a ware is illegal, given who owns it and whose police laws apply.

function engine addons only all signature: confirmed

IsWareIllegalTo(wareID, factionID, policeFactionID)

Reports whether a ware is illegal, given who owns it and whose police laws apply. All three arguments matter: the same ware is legal or not depending on the police faction of the space it is in, which is why vanilla reads policefaction off the current zone first and colours inventory rows from the answer.

Kindfunction
ParameterswareID string - The ID of the ware.
factionID string - The ID of the faction owning the ware.
policeFactionID string optional - The faction whose police laws are checked.
ReturnsisIllegal boolean - True if the ware is illegal.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 9 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:560, ui/addons/ego_detailmonitor/menu_map.lua:14122, ui/addons/ego_detailmonitor/menu_playerinfo.lua:788, ui/addons/ego_detailmonitor/menu_trader_inventory.lua:351
ListenForInputengineaddonsallStarts listening for raw input, so the next thing the player presses is reported instead of acted on - which is how the controls page reads a new binding.

function engine addons only all signature: confirmed

ListenForInput(actionName)

Starts listening for raw input, so the next thing the player presses is reported instead of acted on - which is how the controls page reads a new binding. Despite the parameter name here, the only vanilla call passes true, not an action name.

Kindfunction
ParametersactionName string - The name of the input action to listen for.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:5262
LoadGameengineaddonsallLoads a savegame by file name.

function engine addons only all signature: confirmed

LoadGame(filename)

Loads a savegame by file name. The options menu does not call it inline: it queues the call as a delayed one-time update callback a tenth of a second later, so the menu that triggered it is gone before the load starts.

Kindfunction
Parametersfilename string - The name of the save file to load.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:2963
LoadInputProfileengineaddonsallLoads an input profile - a set of key bindings.

function engine addons only all signature: confirmed

LoadInputProfile(profileName, personal)

Loads an input profile - a set of key bindings. personal says whether it is one of the player's own profiles; the Defaults button loads "inputmap" with false, the shipped default map.

Kindfunction
ParametersprofileName string - The name of the input profile to load.
personal boolean optional - Whether the profile is a personal (user) profile.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8436
LockPresentationengineallallLocks the presentation so nothing redraws it.

function engine all (addons + core) all signature: confirmed

LockPresentation()

Locks the presentation so nothing redraws it. Core HUD code pairs it with HidePresentation: the element goes to its inactive slide, the presentation hides, and the lock keeps it that way until something unlocks it again.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 20 vanilla call sites, 0 arguments
Seen at ui/core/lua/compass.lua:170, ui/core/lua/debugline.lua:126, ui/core/lua/dialogmenu.lua:350, ui/core/lua/gameover.lua:70
MakeGlobalAvailablewidgetaddonsallPublishes a name already present in _G to the addons Lua environment, so other files can call it.

function widget_fullscreen addons only all signature: from source

MakeGlobalAvailable(objectname)

Publishes a name already present in _G to the addons Lua environment, so other files can call it. widget_fullscreen.lua:432 defines it as the one line __EGO_GLOBALS[objectname] = _G[objectname] - it copies the value the name currently holds into __EGO_GLOBALS, and SetEGOGlobals later replays that table into each new Lua environment. So it takes the name only, and the name has to hold its value already: AddGlobalAccess assigns _G[funcname] first and then calls this, and helper.lua registers Helper the same way.

Kindfunction
Parametersobjectname string - The name of a global already present in _G.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :348, 9.00 :432)
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
MakeRepairPriorityengineaddonsallMoves a component to the top of an entity's repair queue.

function engine addons only all signature: confirmed probed: 8.00, 9.00

MakeRepairPriority(entityID, componentID)

Moves a component to the top of an entity's repair queue. **Both arguments are components**: argument 1 is the entity holding the queue - the engine answers anything else with is not of class entity - and argument 2 is the component to promote. There is no priority number. This row declared one, and nothing had ever passed one: the call MakeRepairPriority(entity, 5) is answered with Component 5 does not exist any more, the engine reading 5 as a component ID. So the name sets a position in a queue by naming a component, not a rank. The effect has never been witnessed. The call returns nothing, raises nothing on a valid pair, and Lua has no reader for a repair queue, so whether it did anything is not something a mod can check from here.

Kindfunction
ParametersentityID any - The entity whose repair queue is reordered.
componentID any - The component to move to the top of that queue.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - argument 2 typed by the engine's own rejection of a number, repeated on 9.00 against a station's defence computer and a ship's pilot
MatrixengineallallAnark 4x4 transform matrix class.

table engine all (addons + core) all usage: confirmed

Matrix = {}

Anark 4x4 transform matrix class. Instantiate with Matrix:new(). The translation sits in _41, _42 and _43; methods invert() and multiply(m). calculateGlobalTransform(element, matrix) fills one in.

Kindtable
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla reference
Seen at ui/core/lua/billboard.lua:51
memoryReportengineallallWrites an Anark runtime memory report to the debug log.

function engine all (addons + core) all signature: unverified

memoryReport()

Writes an Anark runtime memory report to the debug log. A development aid. No vanilla code calls it; signature unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
MenusaddonaddonsallThe list of registered menus.

table addon addons only all declaration: from source

Menus = {}

The list of registered menus. Created as "Menus = Menus or {}" and registered with MakeGlobalAvailable("Menus"). Every menu file inserts its own menu table here in its init; Helper then calls Helper.registerMenu on each. A menu created after Helper must call registerMenu itself.

Kindtable
Originaddon
ui/addons/ego_chatwindow/chatwindow.lua - table assignment (8.00 :41, 9.00 :43)
ui/addons/ego_detailmonitor/menu_crafting.lua - table assignment (8.00 :64, 9.00 :64)
ui/addons/ego_detailmonitor/menu_diplomacy.lua - table assignment (8.00 :263, 9.00 :263)
ui/addons/ego_detailmonitor/menu_docked.lua - table assignment (8.00 :194, 9.00 :193)
ui/addons/ego_detailmonitor/menu_encyclopedia.lua - table assignment (8.00 :265, 9.00 :266)
ui/addons/ego_detailmonitor/menu_followcamera.lua - table assignment (8.00 :43, 9.00 :37)
ui/addons/ego_detailmonitor/menu_help.lua - table assignment (8.00 :66, 9.00 :66)
ui/addons/ego_detailmonitor/menu_map.lua - table assignment (8.00 :1772, 9.00 :1902)
ui/addons/ego_detailmonitor/menu_mapeditor.lua - table assignment (8.00 :178, 9.00 :171)
ui/addons/ego_detailmonitor/menu_missionbriefing.lua - table assignment (8.00 :98, 9.00 :98)
ui/addons/ego_detailmonitor/menu_platformundock.lua - table assignment (8.00 :49, 9.00 :48)
ui/addons/ego_detailmonitor/menu_playerinfo.lua - table assignment (8.00 :454, 9.00 :454)
ui/addons/ego_detailmonitor/menu_research.lua - table assignment (8.00 :38, 9.00 :38)
ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua - table assignment (8.00 :44, 9.00 :44)
ui/addons/ego_detailmonitor/menu_scenario_selection.lua - table assignment (8.00 :41, 9.00 :41)
ui/addons/ego_detailmonitor/menu_ship_comparison.lua - table assignment (8.00 :163, 9.00 :163)
ui/addons/ego_detailmonitor/menu_ship_configuration.lua - table assignment (8.00 :853, 9.00 :901)
ui/addons/ego_detailmonitor/menu_station_configuration.lua - table assignment (8.00 :387, 9.00 :512)
ui/addons/ego_detailmonitor/menu_station_overview.lua - table assignment (8.00 :292, 9.00 :291)
ui/addons/ego_detailmonitor/menu_terraforming.lua - table assignment (8.00 :135, 9.00 :135)
ui/addons/ego_detailmonitor/menu_timeline.lua - table assignment (8.00 :50, 9.00 :50)
ui/addons/ego_detailmonitor/menu_toplevel.lua - table assignment (8.00 :22, 9.00 :22)
ui/addons/ego_detailmonitor/menu_trader_blueprintsorlicences.lua - table assignment (8.00 :86, 9.00 :86)
ui/addons/ego_detailmonitor/menu_trader_inventory.lua - table assignment (8.00 :30, 9.00 :30)
ui/addons/ego_detailmonitor/menu_transactionlog.lua - table assignment (8.00 :24, 9.00 :24)
ui/addons/ego_detailmonitor/menu_transporter.lua - table assignment (8.00 :63, 9.00 :63)
ui/addons/ego_detailmonitor/menu_userquestion.lua - table assignment (8.00 :54, 9.00 :54)
ui/addons/ego_detailmonitorhelper/helper.lua - table assignment (8.00 :649, 9.00 :723)
ui/addons/ego_detailmonitorhelper/helper.lua - MakeGlobalAvailable (8.00 :650, 9.00 :724)
ui/addons/ego_gameoptions/customgame.lua - table assignment (8.00 :370, 9.00 :370)
ui/addons/ego_gameoptions/gamemodified.lua - table assignment (8.00 :26, 9.00 :26)
ui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :423, 9.00 :425)
ui/addons/ego_gameoptions/onlineupdate.lua - table assignment (8.00 :25, 9.00 :25)
ui/addons/ego_interactmenu/menu_interactmenu.lua - table assignment (8.00 :452, 9.00 :469)
ui/addons/ego_movie/movie.lua - table assignment (8.00 :22, 9.00 :22)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
MinimizeFrameengineallallMinimises a frame to a bar, optionally with a label.

function engine all (addons + core) all signature: confirmed

MinimizeFrame(frame, text, hasPlayerControls)

Minimises a frame to a bar, optionally with a label. RestoreFrame brings it back, and the view helper passes View.hasPlayerControls() to both so the restored state matches.

Kindfunction
Parametersframe any - The frame to minimize.
text string optional - Optional text to display on the minimized frame.
hasPlayerControls boolean optional - Whether the frame has player controls.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:261
NewGameengineaddonsallStarts a new game from a game start module - NewGame("x4ep1_gamestart_hub").

function engine addons only all signature: confirmed

NewGame(moduleName, params, numParams)
-- overload: fun(moduleName:string)

Starts a new game from a game start module - NewGame("x4ep1_gamestart_hub"). Every vanilla call passes only the module name, so the parameter table and its count are optional; the tutorial and scenario menus store their own context in user data first, because the UI is torn down as the new game starts.

Kindfunction
ParametersmoduleName string - The name of the game start module (e.g., "startmenu", "x4ep1_gamestart_hub").
params table optional - A table of NewGameParameter objects.
numParams integer optional - The number of parameters.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 13 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_help.lua:446, ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:617, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:793, ui/addons/ego_detailmonitor/menu_userquestion.lua:108
NotifyOnActiveWeaponGroupChangedengineallallRegisters a notification for when the active weapon group changes.

function engine all (addons + core) all signature: confirmed

NotifyOnActiveWeaponGroupChanged(contract)

Registers a notification for when the active weapon group changes.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1108
NotifyOnChangedEnvironmentObjectengineallallRegisters a notification for when an environment object changes.

function engine all (addons + core) all signature: confirmed

NotifyOnChangedEnvironmentObject(contract)

Registers a notification for when an environment object changes.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:2281
NotifyOnConversationFinishedengineallallAsks to be notified on a contract when a conversation ends.

function engine all (addons + core) all signature: confirmed

NotifyOnConversationFinished(contract)

Asks to be notified on a contract when a conversation ends. Two core files register it: the first person crosshair, with NotifyOnConversationStarted, and the sub-channel bar, which shows what is being said.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/firstperson_crosshair.lua:150, ui/core/lua/subchannelbar.lua:126
NotifyOnConversationStartedengineallallAsks to be notified on a contract when a conversation starts, registered with NotifyOnConversationFinished so both ends are covered.

function engine all (addons + core) all signature: confirmed

NotifyOnConversationStarted(contract)

Asks to be notified on a contract when a conversation starts, registered with NotifyOnConversationFinished so both ends are covered.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/firstperson_crosshair.lua:149
NotifyOnCutsceneReadyengineallallAsks to be notified on a contract when a cutscene is ready to play, registered with NotifyOnCutsceneStopped so both ends are covered.

function engine all (addons + core) all signature: confirmed

NotifyOnCutsceneReady(contract)

Asks to be notified on a contract when a cutscene is ready to play, registered with NotifyOnCutsceneStopped so both ends are covered. Core code passes its own contract; an addon menu passes getElement("Scene.UIContract").

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/customgame.lua:5134, ui/core/lua/monitors.lua:784
NotifyOnCutsceneStoppedengineallallAsks to be notified when a cutscene stops, on the element passed in - here always getElement("Scene.UIContract"), because addon menus have no contract of their own.

function engine all (addons + core) all signature: confirmed

NotifyOnCutsceneStopped(contract)

Asks to be notified when a cutscene stops, on the element passed in - here always getElement("Scene.UIContract"), because addon menus have no contract of their own. Every caller sets its own flag alongside, so it registers only once.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 11 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:3352, ui/addons/ego_detailmonitor/menu_timeline.lua:430, ui/addons/ego_gameoptions/customgame.lua:5135, ui/addons/ego_gameoptions/gamemodified.lua:92
NotifyOnIncomingMailengineallallAsks to be notified on a UI contract when mail arrives.

function engine all (addons + core) all signature: confirmed

NotifyOnIncomingMail(contract)

Asks to be notified on a UI contract when mail arrives. The monitor code registers it in a block with the rest of the NotifyOn* family on one contract, which is how the HUD subscribes to everything it reacts to.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:786
NotifyOnIncomingMissileengineallallAsks to be notified on a UI contract when a missile is incoming, one of the NotifyOn* family the monitor code registers together on a single contract.

function engine all (addons + core) all signature: confirmed

NotifyOnIncomingMissile(contract)

Asks to be notified on a UI contract when a missile is incoming, one of the NotifyOn* family the monitor code registers together on a single contract.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1109
NotifyOnInventoryWaresAddedengineallallRegisters a notification for when wares are added to the inventory.

function engine all (addons + core) all signature: confirmed

NotifyOnInventoryWaresAdded(contract)

Registers a notification for when wares are added to the inventory.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1103
NotifyOnMailReadengineallallAsks to be notified on a UI contract when mail is read, registered in the same block as NotifyOnIncomingMail.

function engine all (addons + core) all signature: confirmed

NotifyOnMailRead(contract)

Asks to be notified on a UI contract when mail is read, registered in the same block as NotifyOnIncomingMail.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:787
NotifyOnMissileLockInitiatedengineallallAsks to be notified on a contract when a missile lock begins, registered with NotifyOnMissileLockLost so the crosshair can follow the lock to either end.

function engine all (addons + core) all signature: confirmed

NotifyOnMissileLockInitiated(contract)

Asks to be notified on a contract when a missile lock begins, registered with NotifyOnMissileLockLost so the crosshair can follow the lock to either end.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1110
NotifyOnMissileLockLostengineallallAsks to be notified on a contract when a missile lock is lost, registered with NotifyOnMissileLockInitiated so the crosshair can follow the lock both ways.

function engine all (addons + core) all signature: confirmed

NotifyOnMissileLockLost(contract)

Asks to be notified on a contract when a missile lock is lost, registered with NotifyOnMissileLockInitiated so the crosshair can follow the lock both ways.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1111
NotifyOnMissionInfoUpdateengineallallAsks to be notified on a UI contract when mission information changes, one of the NotifyOn* family the monitor code registers together on one contract.

function engine all (addons + core) all signature: confirmed

NotifyOnMissionInfoUpdate(contract)

Asks to be notified on a UI contract when mission information changes, one of the NotifyOn* family the monitor code registers together on one contract.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:788
NotifyOnMissionObjectiveBarUpdateengineallallAsks to be notified on a contract when the mission objective bar changes, one of the NotifyOn* family the monitor code registers together on one contract.

function engine all (addons + core) all signature: confirmed

NotifyOnMissionObjectiveBarUpdate(contract)

Asks to be notified on a contract when the mission objective bar changes, one of the NotifyOn* family the monitor code registers together on one contract.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:789
NotifyOnNotificationFreedengineallallAsks to be notified on a contract when a notification is released, one of the NotifyOn* family the monitor code registers together on one contract.

function engine all (addons + core) all signature: confirmed

NotifyOnNotificationFreed(contract)

Asks to be notified on a contract when a notification is released, one of the NotifyOn* family the monitor code registers together on one contract.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:790
NotifyOnOnlineOperationUpdatedengineallallRegisters a notification for when an online operation is updated.

function engine all (addons + core) all signature: unverified

NotifyOnOnlineOperationUpdated(contract)

Registers a notification for when an online operation is updated.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
NotifyOnPlayerActivityChangedengineallallRegisters a notification for when the player activity changes.

function engine all (addons + core) all signature: confirmed

NotifyOnPlayerActivityChanged(contract)

Registers a notification for when the player activity changes.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_docked.lua:274, ui/core/lua/crosshair handling.lua:1112, ui/core/lua/monitors.lua:791
NotifyOnPlayerFlightControlStartedengineallallRegisters a notification for when the player starts controlling a flight object.

function engine all (addons + core) all signature: confirmed

NotifyOnPlayerFlightControlStarted(contract)

Registers a notification for when the player starts controlling a flight object.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1113
NotifyOnPlayerFlightControlStoppedengineallallRegisters a notification for when the player stops controlling a flight object.

function engine all (addons + core) all signature: confirmed

NotifyOnPlayerFlightControlStopped(contract)

Registers a notification for when the player stops controlling a flight object.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1114
NotifyOnScanAbortedengineallallAsks to be notified on a contract when a scan is aborted.

function engine all (addons + core) all signature: confirmed

NotifyOnScanAborted(contract)

Asks to be notified on a contract when a scan is aborted. The crosshair registers it with NotifyOnScanStarted and NotifyOnScanFinished on its own contract, so it can follow a scan from start to either end.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1115
NotifyOnScanFinishedengineallallAsks to be notified on a contract when a scan completes, the counterpart of NotifyOnScanAborted.

function engine all (addons + core) all signature: confirmed

NotifyOnScanFinished(contract)

Asks to be notified on a contract when a scan completes, the counterpart of NotifyOnScanAborted.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1116
NotifyOnScanStartedengineallallAsks to be notified on a contract when a scan begins - registered with the aborted and finished notifications, which are the two ways it can end.

function engine all (addons + core) all signature: confirmed

NotifyOnScanStarted(contract)

Asks to be notified on a contract when a scan begins - registered with the aborted and finished notifications, which are the two ways it can end.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1117
NotifyOnSetKnownToPlayerengineall≥ 9.00Requests notification when an object becomes known to the player.

function engine all (addons + core) ≥ 9.00 signature: confirmed

NotifyOnSetKnownToPlayer(element)

Requests notification when an object becomes known to the player.

Kindfunction
Parameterselement any - The contract element, commonly getElement("Scene.UIContract").
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6105
NotifyOnStartDialogengineallallAsks to be notified on a UI contract when a dialog starts.

function engine all (addons + core) all signature: confirmed

NotifyOnStartDialog(contract)

Asks to be notified on a UI contract when a dialog starts. It is registered from two places - the dialog menu, with NotifyOnStopDialog, and the sub-channel bar, which wants the same event for the speech it shows.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/dialogmenu.lua:323, ui/core/lua/subchannelbar.lua:127
NotifyOnStopDialogengineallallAsks to be notified on a UI contract when a dialog ends.

function engine all (addons + core) all signature: confirmed

NotifyOnStopDialog(contract)

Asks to be notified on a UI contract when a dialog ends. The core dialog menu registers it together with NotifyOnStartDialog, so it hears both ends of a conversation.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/dialogmenu.lua:324
NotifyOnTeleportSucceededengineallallAsks to be notified on a contract when a teleport completes - registered by the crosshair and the monitors, both of which have to redraw for the new location.

function engine all (addons + core) all signature: confirmed

NotifyOnTeleportSucceeded(contract)

Asks to be notified on a contract when a teleport completes - registered by the crosshair and the monitors, both of which have to redraw for the new location.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1118, ui/core/lua/monitors.lua:792
NotifyOnWeaponGroupChangedengineallallAsks to be notified on a contract when the player switches weapon group - the crosshair registers it, since that is what it draws.

function engine all (addons + core) all signature: confirmed

NotifyOnWeaponGroupChanged(contract)

Asks to be notified on a contract when the player switches weapon group - the crosshair registers it, since that is what it draws.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/crosshair handling.lua:1119
NotifyTargetElementHiddenengineallallTells the game that a target element has gone off screen - the counterpart of NotifyTargetElementShown, which the core target system does send.

function engine all (addons + core) all signature: unverified

NotifyTargetElementHidden(elementID)

Tells the game that a target element has gone off screen - the counterpart of NotifyTargetElementShown, which the core target system does send. No vanilla code calls this half.

Kindfunction
ParameterselementID any - The ID of the element that was hidden.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
NotifyTargetElementShownengineallallTells the game that a target element is now on screen, addressed by its message ID.

function engine all (addons + core) all signature: confirmed

NotifyTargetElementShown(elementID)

Tells the game that a target element is now on screen, addressed by its message ID. The core target system sends it once per element and keeps its own flag so it cannot be sent twice.

Kindfunction
ParameterselementID any - The ID of the element that was shown.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/targetsystem.lua:5172
NotifyVoiceOutputengineallallAsks to be notified about voice output on a UI contract.

function engine all (addons + core) all signature: confirmed

NotifyVoiceOutput(contract)

Asks to be notified about voice output on a UI contract. The core sub-channel bar registers it next to NotifyOnConversationFinished on the same contract, so it hears both the speech and the end of the conversation.

Kindfunction
Parameterscontract any - The UI contract to notify.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/subchannelbar.lua:125
onGamePausedcorecoreallMonitor handler for the game being paused.

function core core only all signature: from source

onGamePaused()

Monitor handler for the game being paused. Core Lua environment only - not reachable from the addons Lua environment. Suspends the auto-close timer and stops monitor rendering while in ticker-only mode.

Kindfunction
Parametersnone documented
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :1034, 9.00 :1034)
Availabilitycore only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
onGameUnpausedcorecoreallMonitor handler for the game being unpaused.

function core core only all signature: from source

onGameUnpaused()

Monitor handler for the game being unpaused. Core Lua environment only - not reachable from the addons Lua environment. Restores the auto-close timer, shifts message start times by the paused duration and re-enables rendering.

Kindfunction
Parametersnone documented
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :1048, 9.00 :1048)
Availabilitycore only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
OnlineAbortVentureengineaddonsallAborts the running venture.

function engine addons only all signature: unverified

OnlineAbortVenture()

Aborts the running venture. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineAcceptTeamInviteengineaddonsallAccepts a pending online team invite.

function engine addons only all signature: unverified

OnlineAcceptTeamInvite()

Accepts a pending online team invite. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineActivateUserItemengineaddonsallActivates an online user item.

function engine addons only all signature: unverified

OnlineActivateUserItem()

Activates an online user item. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineAddContactengineaddonsallAdds a user to the contact list, or to the blocked list when the second argument is true.

function engine addons only all signature: confirmed

OnlineAddContact(userID, block)

Adds a user to the contact list, or to the blocked list when the second argument is true. The same call serves both, which is why the contact UI passes its own block flag straight through.

Kindfunction
ParametersuserID any - The ID of the user.
block boolean - true to block the user, false to add as a contact.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13397
OnlineCanChangeTeamNameengineaddonsallReports whether the team name may be changed.

function engine addons only all signature: unverified

OnlineCanChangeTeamName()

Reports whether the team name may be changed. No vanilla code calls it, and neither is OnlineChangeTeamName.

Kindfunction
Parametersnone documented
Returnsboolean - true if the team name can be changed, otherwise false.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineCanInviteUserengineaddonsallReports whether the player is in a position to invite someone online.

function engine addons only all signature: unverified

OnlineCanInviteUser()

Reports whether the player is in a position to invite someone online. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnsboolean - true if a user can be invited, otherwise false.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineCanUnlockVentureAssetAccessengineaddonsallReports whether venture asset access can be unlocked.

function engine addons only all signature: unverified

OnlineCanUnlockVentureAssetAccess()

Reports whether venture asset access can be unlocked. No vanilla code calls it, though OnlineIsVentureAssetAccessUnlocked reads the same state.

Kindfunction
Parametersnone documented
Returnsboolean - true if access can be unlocked, otherwise false.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineChangeTeamNameengineaddonsallRenames the player's online team.

function engine addons only all signature: unverified

OnlineChangeTeamName(newName)

Renames the player's online team. No vanilla code calls it, and neither is OnlineCanChangeTeamName, which would say whether it is allowed.

Kindfunction
ParametersnewName string - The new name for the team.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineCheckUsernameengineaddonsallStarts checking whether an online username is free and valid.

function engine addons only all signature: confirmed

OnlineCheckUsername(username)

Starts checking whether an online username is free and valid. It returns nothing - helper.lua stores its own request instance and waits for the answer to arrive.

Kindfunction
Parametersusername string - The username to check.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13390
OnlineClearLogbookengineaddonsallClears the online logbook.

function engine addons only all signature: unverified

OnlineClearLogbook()

Clears the online logbook. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineClearLogbookRewardsengineaddonsallClears the rewards out of the online logbook, once the player has seen them - the map menu calls it as the reward context frame closes.

function engine addons only all signature: confirmed

OnlineClearLogbookRewards()

Clears the rewards out of the online logbook, once the player has seen them - the map menu calls it as the reward context frame closes.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:29663
OnlineConvertBraneEnergyengineaddonsallConverts Brane energy, in the Ventures economy.

function engine addons only all signature: unverified

OnlineConvertBraneEnergy()

Converts Brane energy, in the Ventures economy. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineCreateTeamengineaddonsallCreates an online team with the given name.

function engine addons only all signature: unverified

OnlineCreateTeam(teamName)

Creates an online team with the given name. No vanilla code calls it, though the menus do call the rest of the team family - OnlineJoinTeam, OnlineLeaveTeam.

Kindfunction
ParametersteamName string - The name of the team to create.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineDeclineTeamInviteengineaddonsallDeclines a pending online team invite.

function engine addons only all signature: unverified

OnlineDeclineTeamInvite()

Declines a pending online team invite. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineFindContactengineaddonsallLooks a contact up by user ID and returns it, or nothing when the player has no such contact - helper.lua tests for nil to tell a new contact from a known one.

function engine addons only all signature: confirmed

OnlineFindContact(userID)

Looks a contact up by user ID and returns it, or nothing when the player has no such contact - helper.lua tests for nil to tell a new contact from a known one.

Kindfunction
ParametersuserID any - The ID of the user to find.
Returnsany - The contact object if found, otherwise nil.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13418
OnlineGetBraneEnergyConversionRateengineaddonsallReturns the Brane energy conversion rate.

function engine addons only all signature: unverified

OnlineGetBraneEnergyConversionRate()

Returns the Brane energy conversion rate. No vanilla code calls it, and neither is OnlineConvertBraneEnergy.

Kindfunction
Parametersnone documented
Returnsnumber - The conversion rate.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetChatGroupUsersengineaddonsallReturns the users of a chat group.

function engine addons only all signature: confirmed

OnlineGetChatGroupUsers(groupID)

Returns the users of a chat group. The chat window caches the result per group and treats an empty table as a group it could not read.

Kindfunction
ParametersgroupID string - The ID of the chat group.
Returnstable - A list of user objects in the group.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_chatwindow/chatwindow.lua:220
OnlineGetChatMessagesengineaddonsallReturns the chat messages as a list.

function engine addons only all signature: confirmed

OnlineGetChatMessages()

Returns the chat messages as a list. The chat window rebuilds its whole message list from it whenever its own outdated flag is set, rather than being handed new messages one by one.

Kindfunction
Parametersnone documented
Returnstable - A list of chat message objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:263
OnlineGetCoalitionsengineaddonsallReturns the online coalitions as a table.

function engine addons only all signature: unverified

OnlineGetCoalitions()

Returns the online coalitions as a table. No vanilla code calls it, though OnlineGetCurrentCoalition and OnlineJoinCoalition are both there.

Kindfunction
Parametersnone documented
Returnstable - A table of coalition objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetContactsengineaddonsallReturns the online contact list, or the blocked list when the third argument is true.

function engine addons only all signature: confirmed

OnlineGetContacts(pageSize, startIndex, blocked)

Returns the online contact list, or the blocked list when the third argument is true. pageSize and startIndex page the result; vanilla passes zero for both, which asks for all of them.

Kindfunction
ParameterspageSize integer - The number of contacts per page.
startIndex integer - The starting index for pagination.
blocked boolean - true to retrieve the blocked list, false for the contacts list.
Returnstable - A table of contact objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13138
OnlineGetCurrentCoalitionengineaddonsallReturns the player's current online coalition as a table with an isvalid field, which callers test before reading the rest.

function engine addons only all signature: confirmed

OnlineGetCurrentCoalition()

Returns the player's current online coalition as a table with an isvalid field, which callers test before reading the rest.

Kindfunction
Parametersnone documented
Returnstable - The current coalition object.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites (8.00 only), 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18312
OnlineGetCurrentOperationengineaddonsallReturns the running venture operation as a table with an isvalid field.

function engine addons only all signature: confirmed

OnlineGetCurrentOperation()

Returns the running venture operation as a table with an isvalid field. helper.lua reads it to build the time-left string shown on the map.

Kindfunction
Parametersnone documented
Returnstable - The current operation object.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6428, ui/addons/ego_detailmonitorhelper/helper.lua:11349
OnlineGetCurrentSeasonengineaddonsallReturns the current Ventures season as a table.

function engine addons only all signature: confirmed

OnlineGetCurrentSeason()

Returns the current Ventures season as a table. Vanilla reads it next to C.GetCurrentUTCDataTime() to work out how much of the season is left.

Kindfunction
Parametersnone documented
Returnstable - The current season object.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:18999, ui/addons/ego_detailmonitorhelper/helper.lua:11360
OnlineGetCurrentTeamengineaddonsallReturns the player's current online team.

function engine addons only all signature: confirmed

OnlineGetCurrentTeam()

Returns the player's current online team. The result always comes back as a table with an isvalid field, which every caller tests before touching the rest - there is no nil to check for.

Kindfunction
Parametersnone documented
Returnstable - The current team object.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6429, ui/addons/ego_detailmonitorhelper/helper.lua:13494
OnlineGetCurrentUserLanguageengineaddonsallReturns the language selected for online features, as a code.

function engine addons only all signature: confirmed

OnlineGetCurrentUserLanguage()

Returns the language selected for online features, as a code. The options menu uses it to preselect the dropdown that writes back through OnlineSetUserLanguage.

Kindfunction
Parametersnone documented
Returnsstring - The language code (e.g., "en").
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7790
OnlineGetLogbookRewardsengineaddonsallReturns the rewards waiting in the online logbook, as a table.

function engine addons only all signature: confirmed

OnlineGetLogbookRewards()

Returns the rewards waiting in the online logbook, as a table. The map menu shows them in a context frame of their own.

Kindfunction
Parametersnone documented
Returnstable - A table of reward objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3405
OnlineGetMissionUIOrderengineaddonsallGets the UI order for online missions.

function engine addons only all signature: unverified

OnlineGetMissionUIOrder()

Gets the UI order for online missions. No usage found in the workspace.

Kindfunction
Parametersnone documented
Returnstable - A table representing the mission order.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetMultiversePatronInfoengineaddonsallReturns the patron information of a multiverse object - the team behind a ship that belongs to another player's universe.

function engine addons only all signature: confirmed

OnlineGetMultiversePatronInfo(component)

Returns the patron information of a multiverse object - the team behind a ship that belongs to another player's universe. The target monitor shows it once it knows the object is an online one.

Kindfunction
Parameterscomponent userdata - The component to get information for.
Returnstable|nil - A table with patron information, or nil if not found.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_targetmonitor/targetmonitor.lua:855
OnlineGetNumContactsengineaddonsallReturns how many contacts the player has, or how many blocked users when the argument is true.

function engine addons only all signature: confirmed

OnlineGetNumContacts(blocked)

Returns how many contacts the player has, or how many blocked users when the argument is true. helper.lua asks for the count first and pages the list itself with OnlineGetContacts.

Kindfunction
Parametersblocked boolean - true to count blocked users, false to count contacts.
Returnsinteger - The number of contacts or blocked users.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13135
OnlineGetNumUnreadChatMessagesengineallallReturns how many chat messages are unread.

function engine all (addons + core) all signature: confirmed

OnlineGetNumUnreadChatMessages()

Returns how many chat messages are unread. The message ticker reads it for its chat notification and caps its own display at 100.

Kindfunction
Parametersnone documented
Returnsinteger - The number of unread messages.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/monitors.lua:3238
OnlineGetOnlineMissionsengineaddons≥ 9.00Returns the online missions currently offered.

function engine addons only ≥ 9.00 signature: unverified

OnlineGetOnlineMissions()

Returns the online missions currently offered. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnsmissions any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Vanilla usageunverified - no vanilla call site
OnlineGetPlatformFriendListengineaddonsallReturns the friend list of the platform the game is running on - Steam, GOG - as a table.

function engine addons only all signature: confirmed

OnlineGetPlatformFriendList()

Returns the friend list of the platform the game is running on - Steam, GOG - as a table. helper.lua uses it to offer platform friends as online contacts.

Kindfunction
Parametersnone documented
Returnstable - A table of friend objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13438
OnlineGetPublicTeamInfoengineaddons≥ 9.00Returns the public profile of a team.

function engine addons only ≥ 9.00 signature: unverified

OnlineGetPublicTeamInfo()

Returns the public profile of a team. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnsteaminfo any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Vanilla usageunverified - no vanilla call site
OnlineGetScenarioRankingsengineaddonsallReturns the ladder rankings of a scenario.

function engine addons only all signature: confirmed

OnlineGetScenarioRankings(scenarioID)

Returns the ladder rankings of a scenario. It reads what is already there: OnlineRequestScenarioRankings starts the fetch, and this is called once that has reported success.

Kindfunction
ParametersscenarioID any - The ID of the scenario.
Returnstable - A table of ranking data.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:67, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:56
OnlineGetSuccessImpactengineaddonsallReturns the success impact of an online operation.

function engine addons only all signature: unverified

OnlineGetSuccessImpact()

Returns the success impact of an online operation. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnsany - The success impact data.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetTeamInventoryengineaddonsallReturns the online team's inventory.

function engine addons only all signature: unverified

OnlineGetTeamInventory()

Returns the online team's inventory. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnstable - A table representing the team's inventory.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetTeamInvitationsengineaddonsallReturns the pending team invitations.

function engine addons only all signature: unverified

OnlineGetTeamInvitations()

Returns the pending team invitations. No vanilla code calls it, and neither is OnlineRequestTeamInvitations - the request-then-read pair are both unused.

Kindfunction
Parametersnone documented
Returnstable - A table of team invitation objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetTeamOpenInvitationsengineaddonsallReturns the invitations the team has sent out.

function engine addons only all signature: unverified

OnlineGetTeamOpenInvitations()

Returns the invitations the team has sent out. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnstable - A table of open invitation objects.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetTeamVentureInfoengineaddonsallReturns information about the team's ventures.

function engine addons only all signature: unverified

OnlineGetTeamVentureInfo()

Returns information about the team's ventures. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnstable - A table of venture information.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetUserInboxengineaddonsallReturns the online inbox messages.

function engine addons only all signature: unverified

OnlineGetUserInbox()

Returns the online inbox messages. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnstable - A table of inbox messages.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetUserItemAmountengineaddonsallReturns how many of one ware the online user owns.

function engine addons only all signature: confirmed

OnlineGetUserItemAmount(ware)

Returns how many of one ware the online user owns. The station configuration menu subtracts what is already placed to decide whether another limited module may still be added.

Kindfunction
Parametersware string - The ware ID.
Returnsamount integer
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_station_configuration.lua:2072
OnlineGetUserItemsengineaddonsallReturns the online items the user owns, keyed by ware.

function engine addons only all signature: confirmed

OnlineGetUserItems()

Returns the online items the user owns, keyed by ware. Vanilla merges them with the normal inventory, so venture items show up alongside what the player is carrying. It is one of the few globals a mod is known to override - both UIX and sn_mod_support_apis wrap it.

Kindfunction
Parametersnone documented
Returnsitems table
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 12 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6517, ui/addons/ego_detailmonitor/menu_playerinfo.lua:1623, ui/addons/ego_gameoptions/customgame.lua:2895, ui/addons/ego_gameoptions/gameoptions.lua:8024
OnlineGetUserNameengineaddonsallReturns the logged-in online user as two values, the display name and the user ID.

function engine addons only all signature: confirmed

OnlineGetUserName()

Returns the logged-in online user as two values, the display name and the user ID. Most callers only want the second: comparing the user ID against a ladder ranking or a contact entry is how the UI finds the player's own row.

Kindfunction
Parametersnone documented
Returnsname string
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 11 vanilla call sites, 0 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:255, ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:408, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:468, ui/addons/ego_detailmonitorhelper/helper.lua:13461
OnlineGetVentureBaseSuccessChanceengineaddonsallReturns a venture's success chance before bonuses are applied.

function engine addons only all signature: unverified

OnlineGetVentureBaseSuccessChance()

Returns a venture's success chance before bonuses are applied. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnschance any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureBonusValuesengineaddonsallReturns the bonuses that modify a venture's outcome.

function engine addons only all signature: unverified

OnlineGetVentureBonusValues()

Returns the bonuses that modify a venture's outcome. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnsbonuses any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureConfigengineaddonsallReturns one value of the venture configuration the service publishes, by key - allow_validation, disable_popup, allow_update.

function engine addons only all signature: confirmed

OnlineGetVentureConfig(key)

Returns one value of the venture configuration the service publishes, by key - allow_validation, disable_popup, allow_update. The options menu branches on several of them to decide which venture context menu to show.

Kindfunction
Parameterskey string - The configuration key, e.g. "allow_update".
Returnsvalue any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 13 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:450
OnlineGetVentureDurationengineaddonsallReturns how long a venture takes.

function engine addons only all signature: unverified

OnlineGetVentureDuration()

Returns how long a venture takes. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnsduration any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureLogbookengineaddonsallReturns the venture logbook entries.

function engine addons only all signature: unverified

OnlineGetVentureLogbook()

Returns the venture logbook entries. No vanilla code calls it; the parameters and return shape are unverified. OnlineClearLogbook and OnlineHasVentureLogbookReward act on the same data.

Kindfunction
Parametersnone documented
Returnslogbook any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureRewardAmountengineaddonsallReturns the reward a venture pays out.

function engine addons only all signature: unverified

OnlineGetVentureRewardAmount()

Returns the reward a venture pays out. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnsamount any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureRiskengineaddonsallReturns a venture's risk rating.

function engine addons only all signature: unverified

OnlineGetVentureRisk()

Returns a venture's risk rating. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnsrisk any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureUIOrderengineaddonsallReturns the display order of the ventures.

function engine addons only all signature: unverified

OnlineGetVentureUIOrder()

Returns the display order of the ventures. No vanilla code calls it; the parameters and return shape are unverified. OnlineGetMissionUIOrder is the equivalent for online missions.

Kindfunction
Parametersnone documented
Returnsorder any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVentureWareInfoengineaddonsallReturns the ware information attached to a venture.

function engine addons only all signature: unverified

OnlineGetVentureWareInfo()

Returns the ware information attached to a venture. No vanilla code calls it; the parameters and return shape are unverified.

Kindfunction
Parametersnone documented
Returnswareinfo any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineGetVersionIncompatibilityStateengineaddonsallReturns whether the online service considers this game version incompatible, and how.

function engine addons only all signature: confirmed

OnlineGetVersionIncompatibilityState()

Returns whether the online service considers this game version incompatible, and how. The options menu branches on it before offering anything that would need the service.

Kindfunction
Parametersnone documented
Returnsstate any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 6 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:6041, ui/addons/ego_gameoptions/onlineupdate.lua:145
OnlineHasPreviousSessionTokenengineaddonsallReports whether a session token from an earlier run is still stored - what the login page uses to tick its Remember Me box for the player.

function engine addons only all signature: confirmed

OnlineHasPreviousSessionToken()

Reports whether a session token from an earlier run is still stored - what the login page uses to tick its Remember Me box for the player.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:11975
OnlineHasSessionengineaddonsallReports whether an online session is established.

function engine addons only all signature: confirmed

OnlineHasSession()

Reports whether an online session is established. It is the gate in front of everything online: menu entries appear behind it, ladder requests are only made with it, and the venture pages are hidden without it.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 25 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:24874, ui/addons/ego_detailmonitor/menu_playerinfo.lua:370, ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:136, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:216
OnlineHasVentureLogbookRewardengineaddonsallReports whether a venture logbook reward is waiting to be claimed.

function engine addons only all signature: confirmed

OnlineHasVentureLogbookReward()

Reports whether a venture logbook reward is waiting to be claimed. Helper.hasVentureRewards is a one-line wrapper around it, and that is what menu code uses.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:11209
OnlineImportPlatformFriendsengineaddonsallImports a platform friend list as online contacts.

function engine addons only all signature: confirmed

OnlineImportPlatformFriends(friends)

Imports a platform friend list as online contacts. It takes the list itself, which the caller has already fetched with OnlineGetPlatformFriendList.

Kindfunction
Parametersfriends table - The platform friend list.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13661
OnlineInviteUserengineaddonsallInvites a user to the player's team.

function engine addons only all signature: unverified

OnlineInviteUser()

Invites a user to the player's team. No vanilla code calls it; the parameters are unverified. OnlineCanInviteUser reports whether inviting is currently allowed.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineIsCurrentTeamValidengineallallReports whether the player is in a valid venture team.

function engine all (addons + core) all signature: confirmed

OnlineIsCurrentTeamValid()

Reports whether the player is in a valid venture team. It gates the whole team-facing part of the UI - the connection status on the map, and the chat notification element in the ticker.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:10172, ui/core/lua/monitors.lua:1695
OnlineIsGameRegisteredengineaddonsallReports whether this game is registered for online play.

function engine addons only all signature: confirmed

OnlineIsGameRegistered()

Reports whether this game is registered for online play. Only asked once there is a session - OnlineHasSession is the question that comes first.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:11968
OnlineIsOnlineModeActiveengineaddonsallReports whether the game is running as an online game.

function engine addons only all signature: confirmed

OnlineIsOnlineModeActive()

Reports whether the game is running as an online game. Helper.isOnlineGame is nothing but a wrapper around it, and that is what menu code uses.

Kindfunction
Parametersnone documented
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:11197
OnlineIsVentureAssetAccessUnlockedengineaddonsallReports whether venture asset access has been unlocked.

function engine addons only all signature: unverified

OnlineIsVentureAssetAccessUnlocked()

Reports whether venture asset access has been unlocked. No vanilla code calls it; the parameters and return shape are unverified. OnlineCanUnlockVentureAssetAccess and OnlineUnlockVentureAssetAccess are the pair.

Kindfunction
Parametersnone documented
Returnsunlocked any
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineJoinCoalitionengineaddonsallJoins a coalition.

function engine addons only all signature: unverified

OnlineJoinCoalition()

Joins a coalition. No vanilla code calls it; the parameters are unverified. OnlineGetCoalitions and OnlineGetCurrentCoalition read the same data.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineJoinRandomTeamengineaddonsallJoins an arbitrary open team.

function engine addons only all signature: unverified

OnlineJoinRandomTeam()

Joins an arbitrary open team. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineJoinTeamengineaddons≥ 9.00Joins a specific team.

function engine addons only ≥ 9.00 signature: unverified

OnlineJoinTeam()

Joins a specific team. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Vanilla usageunverified - no vanilla call site
OnlineLeaveTeamengineaddonsallLeaves the player's current team.

function engine addons only all signature: unverified

OnlineLeaveTeam()

Leaves the player's current team. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineLogInengineaddonsallLogs in to the online service and returns whether the attempt started.

function engine addons only all signature: confirmed

OnlineLogIn(username, remember)

Logs in to the online service and returns whether the attempt started. remember stores the session token for the next start; the options menu clears its own attempt flag when the call returns false.

Kindfunction
Parametersusername string - The user name.
remember boolean - Whether to store the session token.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3296
OnlineLogOutengineaddonsallLogs out of the online service.

function engine addons only all signature: confirmed

OnlineLogOut()

Logs out of the online service. The options menu clears the privacy policy flag and its own registration state around the call.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3342
OnlineMuteContactengineaddonsallMutes or unmutes an online contact, by user ID.

function engine addons only all signature: confirmed

OnlineMuteContact(userID, mute)

Mutes or unmutes an online contact, by user ID. The context menu of the contact list calls it and closes itself afterwards.

Kindfunction
ParametersuserID any - The contact user ID.
mute boolean - Whether to mute.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13627
OnlineRemoveContactengineaddonsallRemoves a contact from the player's online contact list, by user ID.

function engine addons only all signature: confirmed

OnlineRemoveContact(userID)

Removes a contact from the player's online contact list, by user ID. The interact menu's Remove Contact entry calls it and then closes the context menu.

Kindfunction
ParametersuserID any - The contact user ID.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13632
OnlineReportChatengineaddonsallReports a chat message for moderation.

function engine addons only all signature: unverified

OnlineReportChat()

Reports a chat message for moderation. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineReportShipengineaddonsallReports a shared ship design for moderation.

function engine addons only all signature: unverified

OnlineReportShip()

Reports a shared ship design for moderation. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineReportUserengineaddonsallReports a user for moderation.

function engine addons only all signature: unverified

OnlineReportUser()

Reports a user for moderation. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineRequestContactListengineaddons≥ 9.00Starts refreshing the contact list from the service.

function engine addons only ≥ 9.00 signature: confirmed

OnlineRequestContactList()

Starts refreshing the contact list from the service. New in 9.00. The map menu calls it as the venture contact list opens, so the team IDs shown are current rather than whatever was last fetched.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:2557
OnlineRequestPlatformFriendListengineaddonsallStarts fetching the platform friend list.

function engine addons only all signature: confirmed

OnlineRequestPlatformFriendList()

Starts fetching the platform friend list. It returns nothing: the result is read afterwards with OnlineGetPlatformFriendList, the same request-then-read shape the rest of the online API uses.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:13402
OnlineRequestScenarioRankingsengineaddonsallStarts fetching the ladder rankings of a scenario in the chosen display mode.

function engine addons only all signature: confirmed

OnlineRequestScenarioRankings(scenarioID, displayMode)

Starts fetching the ladder rankings of a scenario in the chosen display mode. It returns nothing - the menu sets its own requested flag, waits, and then reads the result with OnlineGetScenarioRankings; the scenario list re-requests on a ten second timer.

Kindfunction
ParametersscenarioID any - The ID of the scenario.
displayMode any optional - The ladder display mode to request.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:58, ui/addons/ego_detailmonitor/menu_scenario_selection.lua:218
OnlineRequestTeamInvitationsengineaddonsallStarts fetching the pending team invitations, to be read afterwards with OnlineGetTeamInvitations.

function engine addons only all signature: unverified

OnlineRequestTeamInvitations()

Starts fetching the pending team invitations, to be read afterwards with OnlineGetTeamInvitations. No vanilla code calls either half.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineSendChatMessageengineaddonsallSends a chat message.

function engine addons only all signature: confirmed

OnlineSendChatMessage(text, userID)

Sends a chat message. With a user ID it goes to that user, with nil to the current group - the chat window passes whichever its command parsing produced.

Kindfunction
Parameterstext string - The message text.
userID string|nil - The ID of the recipient user or nil for the current group.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:443
OnlineSetTeamPublicengineaddonsallSets whether the player's online team is public.

function engine addons only all signature: unverified

OnlineSetTeamPublic(isPublic)

Sets whether the player's online team is public. No vanilla code calls it.

Kindfunction
ParametersisPublic boolean - Whether the team should be public.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineSetUGCSubmissionTextengineaddons≥ 9.00Sets the description text attached to a user-generated-content submission.

function engine addons only ≥ 9.00 signature: unverified

OnlineSetUGCSubmissionText()

Sets the description text attached to a user-generated-content submission. No vanilla code calls it; the parameters are unverified.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Vanilla usageunverified - no vanilla call site
OnlineSetUserLanguageengineaddonsallSets the language for online features, by language ID.

function engine addons only all signature: confirmed

OnlineSetUserLanguage(languageID)

Sets the language for online features, by language ID. The options menu passes the dropdown value unchanged.

Kindfunction
ParameterslanguageID number - The ID of the language to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9249
OnlineSetVentureConfigengineaddonsallWrites one venture configuration value by name - the counterpart of OnlineGetVentureConfig, which reads the same keys.

function engine addons only all signature: confirmed

OnlineSetVentureConfig(configName, value)

Writes one venture configuration value by name - the counterpart of OnlineGetVentureConfig, which reads the same keys. The options menu sets allow_update_once from a checkbox.

Kindfunction
ParametersconfigName string - The name of the configuration value (e.g., "allow_validation", "disable_popup").
value any optional - The value to set.
Returnsany - The value of the configuration setting.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 15 vanilla call sites, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3399
OnlineStartVentureengineaddonsallStarts a venture, by venture ID.

function engine addons only all signature: unverified

OnlineStartVenture(ventureID)

Starts a venture, by venture ID. No vanilla code calls it - like most of the Online* family it is engine plumbing the shipped menus never reach.

Kindfunction
ParametersventureID string - The ID of the venture to start.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineTeamRequestOpenInvitationsengineaddonsallStarts fetching the team's open invitations, to be read with OnlineGetTeamOpenInvitations.

function engine addons only all signature: unverified

OnlineTeamRequestOpenInvitations()

Starts fetching the team's open invitations, to be read with OnlineGetTeamOpenInvitations. No vanilla code calls either half.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineUnlockVentureAssetAccessengineaddonsallUnlocks access to venture assets.

function engine addons only all signature: unverified

OnlineUnlockVentureAssetAccess()

Unlocks access to venture assets. No vanilla code calls it, though OnlineIsVentureAssetAccessUnlocked reads the same state.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineUploadPlayerInventoryItemsengineaddonsallUploads the player's inventory items to the online service.

function engine addons only all signature: unverified

OnlineUploadPlayerInventoryItems()

Uploads the player's inventory items to the online service. No vanilla code calls it.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
OnlineUploadScenarioStatsengineaddonsallUploads the statistics of a finished scenario and returns a **string** result, not a boolean: vanilla treats anything other than "success" or "modified" as a failure.

function engine addons only all signature: confirmed

OnlineUploadScenarioStats(scenarioID)

Uploads the statistics of a finished scenario and returns a **string** result, not a boolean: vanilla treats anything other than "success" or "modified" as a failure. It is only called with an online session in hand.

Kindfunction
ParametersscenarioID string - The ID of the scenario.
Returnsboolean - True if the upload was successful.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:137
OnlineUserAllowForumAttributionengineaddons≥ 9.00Sets whether the player's forum name may be shown against their online activity.

function engine addons only ≥ 9.00 signature: confirmed

OnlineUserAllowForumAttribution(allow)

Sets whether the player's forum name may be shown against their online activity. The options menu passes the result of a comparison, option == "forumname", so the dropdown's other entry means anonymous.

Kindfunction
Parametersallow boolean - Whether attribution is allowed.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9268
OnlineUserAllowInvitesengineaddonsallSets whether the player accepts online invitations.

function engine addons only all signature: confirmed

OnlineUserAllowInvites(allow)

Sets whether the player accepts online invitations. The current value comes back as the **third** return of OnlineGetUserName, which the options menu negates and passes straight in.

Kindfunction
Parametersallow boolean - True to allow invitations, false to disallow.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9233
OnlineUserAllowPrivateMessagesengineaddonsallSets whether the player accepts private messages.

function engine addons only all signature: confirmed

OnlineUserAllowPrivateMessages(allow)

Sets whether the player accepts private messages. The options menu passes not OnlineUserArePrivateMessagesAllowed(), so the pair reads and flips one setting between them.

Kindfunction
Parametersallow boolean - True to allow private messages, false to disallow.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9237
OnlineUserArePrivateMessagesAllowedengineaddonsallReports whether the player accepts private messages, shown as a yes or no on the online options page.

function engine addons only all signature: confirmed

OnlineUserArePrivateMessagesAllowed()

Reports whether the player accepts private messages, shown as a yes or no on the online options page.

Kindfunction
Parametersnone documented
Returnsboolean - True if private messages are allowed, false otherwise.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:7770
onNotificationFreedcorecoreallMonitor handler for a notification being released by the engine.

function core core only all signature: from source

onNotificationFreed(_, notificationID)

Monitor handler for a notification being released by the engine. Core Lua environment only - not reachable from the addons Lua environment. Closes the current state when the freed notification is the one on display.

Kindfunction
Parameters_ any - Unused event sender.
notificationID any - The notification that was freed.
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :1008, 9.00 :1008)
Availabilitycore only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
onRefreshTargetMonitorcorecoreallMonitor handler asking the target monitor to refresh.

function core core only all signature: from source

onRefreshTargetMonitor(_, componentID, connectionname)

Monitor handler asking the target monitor to refresh. Core Lua environment only - not reachable from the addons Lua environment. Refreshes only when the component and connection match what is displayed; componentID 0 refreshes a notification.

Kindfunction
Parameters_ any - Unused event sender.
componentID any - The component to refresh, or 0 for the current notification.
connectionname string - The connection name, or an empty string for none.
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :1280, 9.00 :1282)
Availabilitycore only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
onTickerOnlyModecorecoreallMonitor handler switching the HUD into or out of ticker-only mode.

function core core only all signature: from source

onTickerOnlyMode(_, enabled, showpermanently)

Monitor handler switching the HUD into or out of ticker-only mode. Core Lua environment only - not reachable from the addons Lua environment.

Kindfunction
Parameters_ any - Unused event sender.
enabled boolean - Whether ticker-only mode is on.
showpermanently boolean - Whether the ticker stays visible rather than fading.
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :1310, 9.00 :1312)
Availabilitycore only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
onUpdateaddonaddonsallThe per-frame update callback registered with SetScript("onUpdate", ...).

function addon addons only all signature: from source probed: 8.00, 9.00

onUpdate()

The per-frame update callback registered with SetScript("onUpdate", ...). Not one function: every file that registers an onUpdate declares its own at file scope, so whichever loaded last owns the global. Declare yours as a local and pass it to SetScript instead of relying on the name.

Kindfunction
Parametersnone documented
Returnsnone documented
Originaddon
ui/addons/ego_debug/debug.lua - top-level function (8.00 :49, 9.00 :49)
ui/addons/ego_debuglog/debuglog.lua - top-level function (8.00 :1295, 9.00 :1287)
ui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :842, 9.00 :922)
ui/addons/ego_viewhelper/viewhelper.lua - top-level function (8.00 :31, 9.00 :31)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
OpenMenuengineaddonsallOpens a menu by name, with up to two parameters - "TopLevelMenu", "DockedMenu", "MapMenu".

function engine addons only all signature: confirmed

OpenMenu(menuName, param1, param2, force)

Opens a menu by name, with up to two parameters - "TopLevelMenu", "DockedMenu", "MapMenu". The second parameter is the menu's own argument list, whose shape each menu defines: the map takes { x, y, ... } and can be handed a whole submenu request in it. This is the call that opens a vanilla menu from anywhere, including from a mod.

Kindfunction
ParametersmenuName string - The name of the menu to open (e.g., "TopLevelMenu", "DockedMenu", "MapMenu").
param1 any optional - An optional parameter for the menu.
param2 any optional - An optional second parameter for the menu.
force boolean optional - If true, forces the menu to open.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 18 vanilla call sites, 3-4 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:344, ui/addons/ego_detailmonitor/menu_docked.lua:213, ui/addons/ego_detailmonitor/menu_toplevel.lua:38, ui/addons/ego_detailmonitorhelper/helper.lua:1756
OpenSteamOverlayStorePageengineallallOpens a Steam store page in the overlay.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

OpenSteamOverlayStorePage(appID)

Opens a Steam store page in the overlay. With an app ID it opens that page, with no argument the game's own; every caller checks IsSteamworksEnabled first, and the GOG build takes a different path entirely.

Kindfunction
ParametersappID number optional - The Steam AppID of the page to open.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 6 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3438, ui/addons/ego_gameoptions/gameoptions.lua:10557, ui/core/lua/promo.lua:286
Probed in-game8.00, 9.00 - bare on both stores: the game's own store page in the overlay on Steam, nothing at all on GOG
OpenSteamOverlayWebPageengineaddonsallOpens a web page in the Steam overlay.

function engine addons only all signature: confirmed probed: 8.00, 9.00

OpenSteamOverlayWebPage(url)

Opens a web page in the Steam overlay. No vanilla code calls it; OpenSteamOverlayStorePage is the one the UI uses, and both are only safe behind IsSteamworksEnabled. **It works, and only on a Steam build.** The same eleven rungs ran on the GOG 8.00 build and the Steam 9.00 one. On Steam (IsSteamworksEnabled() true, C.IsGOGVersion() false) the real call opened the overlay browser on the URL over the running game; on GOG (IsSteamworksEnabled() false, C.IsGOGVersion() true) the identical call did nothing, silently, and returned normally - and C.CanOpenWebBrowser() was true there, so the GOG fallback is vanilla's own C.OpenWebBrowser branch and not something this name falls back to. Nothing distinguishes the two runs in the log: the guard is the caller's job. **Argument checking runs before the Steam gate**, word for word the same on both builds. Arity is exactly 1 - Invalid number of arguments (0, expected 1) bare and (2, expected 1) with a second argument - and slot 1 is strictly a string: a table and a boolean are refused with Invalid argument #1 <url> (got table, expected string), the engine's own parameter name, while a number is taken by the usual Lua coercion with no complaint. No return, on every rung. **The URL itself is never validated.** "" and "not a url at all" passed the argument check in silence on both builds and opened no page on Steam, so a bad string is indistinguishable from a refused one except by what appears on screen. The overlay is one window: the control OpenSteamOverlayStorePage() and this call, fired seconds apart, landed as two tabs in call order rather than two windows.

Kindfunction
Parametersurl string - The URL to open. Not validated: a number is coerced, an empty or non-URL string is accepted and opens nothing.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - eleven rungs on each store, three environment readings first and the real URL last, with OpenSteamOverlayStorePage as the control
OpenWorkshopengineaddonsallOpens the Steam Workshop page of an extension.

function engine addons only all signature: confirmed

OpenWorkshop(id, personal)

Opens the Steam Workshop page of an extension. personal marks one of the player's own items; the options menu passes both straight from the selected extension.

Kindfunction
Parametersid string optional - The ID of the workshop item.
personal boolean optional - Whether the item is personal.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8193
PauseengineaddonsallPauses the game.

function engine addons only all signature: confirmed

Pause(unpause, force)

Pauses the game. Both parameters are optional: vanilla pauses with no arguments at all, and passes nil, true to force a pause that the player cannot lift while a scenario is finished. Unpausing has its own global, Unpause.

Kindfunction
Parametersunpause boolean optional - If true, unpauses the game.
force boolean optional - If true, forces the pause/unpause action.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7 vanilla call sites, 0-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:85, ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:119, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:2747, ui/addons/ego_gameoptions/customgame.lua:2565
pauseengineallallPauses a scene element's timeline animation.

function engine all (addons + core) all signature: unverified

pause(element)

Pauses a scene element's timeline animation. The counterpart of play. No vanilla code calls it; signature unverified.

Kindfunction
Parameterselement any - The scene element.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
PerformActionengineallallRuns one of the actions offered for a message.

function engine all (addons + core) all signature: confirmed

PerformAction(messageID, actionType)

Runs one of the actions offered for a message. The core target system checks hasPossibleActions first and then performs action type 1 - the default action of that target.

Kindfunction
ParametersmessageID any - The ID of the message associated with the action.
actionType integer - The type of action to perform (e.g., 1).
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/core/lua/targetsystem.lua:4368
playengineallallStarts or resumes a scene element's timeline animation.

function engine all (addons + core) all signature: confirmed

play(element)

Starts or resumes a scene element's timeline animation. Called from ui\core\lua\write text.lua, which does goToTime(element, 0) then play(element) to restart an animation from the beginning.

Kindfunction
Parameterselement any - The scene element.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/write text.lua:85
PlayAmbientSoundengineallallPlays an ambient sound by name.

function engine all (addons + core) all signature: unverified

PlayAmbientSound(soundName)

Plays an ambient sound by name. No vanilla code calls it: menus use PlaySound for one-shot cues and StartPlayingSound for a loop they intend to stop again.

Kindfunction
ParameterssoundName string - The name of the sound to play.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
PlayCreditsengineaddonsallPlays the game credits.

function engine addons only all signature: unverified

PlayCredits(option)

Plays the game credits. No vanilla code calls it, so what the parameter selects is unverified.

Kindfunction
Parametersoption any optional - An optional parameter for the credits display.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
PlaySoundengineallallPlays a UI sound by name.

function engine all (addons + core) all signature: confirmed

PlaySound(soundName)

Plays a UI sound by name. The name is one of the game's sound cues as a plain string: ui_positive_click, ui_negative_back, ui_crafting_success, ui_menu_dlg_btn_select_core. This is the most-called global in the whole UI.

Kindfunction
ParameterssoundName string - The name of the sound to play (e.g., "ui_positive_select").
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 154 vanilla call sites, 1 argument
Seen at ui/addons/ego_chatwindow/chatwindow.lua:730, ui/addons/ego_detailmonitor/menu_crafting.lua:117, ui/addons/ego_detailmonitor/menu_diplomacy.lua:383, ui/addons/ego_detailmonitor/menu_docked.lua:1552
PrepareIconengineallallLoads an icon so it can be drawn without a hitch later.

function engine all (addons + core) all signature: confirmed

PrepareIcon(iconName)

Loads an icon so it can be drawn without a hitch later. The exit screen prepares all of its screenshots this way before showing any of them, the same way PrepareMesh handles meshes.

Kindfunction
ParametersiconName string - The name of the icon to prepare.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/extro.lua:78
PrepareMeshengineallallLoads a mesh so it is ready to be drawn without a hitch.

function engine all (addons + core) all signature: confirmed

PrepareMesh(meshName)

Loads a mesh so it is ready to be drawn without a hitch. Core HUD code walks its configured mesh list and prepares every one of them while setting up.

Kindfunction
ParametersmeshName string - The name of the mesh to prepare.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/debugline.lua:111, ui/core/lua/promo.lua:161
PrepareRenderTargetengineallallLoads a render target texture so it is ready before anything draws into it, and returns whether that succeeded.

function engine all (addons + core) all signature: confirmed

PrepareRenderTarget(renderTargetName)

Loads a render target texture so it is ready before anything draws into it, and returns whether that succeeded. The monitor code prepares both radar targets up front, so switching radar integration mode mid-flight cannot stall. Documented as **unsupported** and not designed to be used by mods.

Kindfunction
ParametersrenderTargetName string - The name of the render target texture.
Returnssuccess boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 5 vanilla call sites, 1 argument
Seen at ui/core/lua/monitors.lua:796, ui/widget/lua/widget_fullscreen.lua:8777
PrepareTextureengineallallLoads a texture so it can be drawn without a hitch later, the same way PrepareIcon and PrepareMesh handle their kinds.

function engine all (addons + core) all signature: confirmed

PrepareTexture(textureName)

Loads a texture so it can be drawn without a hitch later, the same way PrepareIcon and PrepareMesh handle their kinds. Core HUD code walks its configured texture list while setting up.

Kindfunction
ParameterstextureName string - The name of the texture to prepare.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/debugline.lua:114, ui/core/lua/promo.lua:164
ProceedFromMenuengineaddonsallCloses the menu and continues the flow at another section, carrying the player's choice with it.

function engine addons only all signature: confirmed

ProceedFromMenu(nextSection, choiceParam, baseParam)

Closes the menu and continues the flow at another section, carrying the player's choice with it. Helper.closeMenuForSection passes two arguments, and the variant that also carries the section's base parameter passes three.

Kindfunction
ParametersnextSection string
choiceParam any optional
baseParam any optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:1799, ui/addons/ego_detailmonitorhelper/helper.lua:1805
QuitGameengineaddonsallQuits the game, closing all related processes and returning to the desktop.

function engine addons only all signature: confirmed

QuitGame()

Quits the game, closing all related processes and returning to the desktop.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8125, ui/addons/ego_gameoptions/onlineupdate.lua:96
QuitModuleengineaddonsallQuits the current module or menu, returning to the previous state or the desktop.

function engine addons only all signature: confirmed

QuitModule()

Quits the current module or menu, returning to the previous state or the desktop.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8127
RaisePlayerInteractionEventengineallallFires the MD event event_player_interaction for a live interaction id from CreateInteractionDescriptor2.

function engine all (addons + core) all signature: confirmed

RaisePlayerInteractionEvent(interactionID)

Fires the MD event event_player_interaction for a live interaction id from CreateInteractionDescriptor2. The cue receives the **interaction name in param**, the descriptor's payload in **param2** and a **null event.object** - so an MD handler matches it the way md/conversations.xml:1789-1830 does, <event_player_interaction param="'my interaction'"/>. (Interactions raised from MD's own show_notification fill the two slots the other way round, the name in param2; both shapes exist in vanilla.) **Synchronous**, measured: the cue has run before this call returns, unlike AddUITriggeredEvent, whose cue runs after the Lua handler ends. It needs nothing but a live id. Vanilla only raises one that is currently on the target monitor, but TargetMonitorInteractionShown2 is **not** a precondition - a descriptor that was never shown raises exactly the same event. A **freed** id does not: the engine answers Error raising the interaction event. Errormessage: Cannot find notification with ID 'N' and no cue runs. A legacy CreateInteractionDescriptor userdata is refused outright.

Kindfunction
ParametersinteractionID integer - An id from CreateInteractionDescriptor2, not yet released.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:1221
ReadLuaDebugInputengineaddonsallReturns the Lua the player has typed into the debug input, or nothing when there is none.

function engine addons only all signature: confirmed

ReadLuaDebugInput()

Returns the Lua the player has typed into the debug input, or nothing when there is none. ego_debug polls it from its own onUpdate and loadstrings whatever comes back - which is why it only works when IsLuaDebugInputEnabled is true.

Kindfunction
Parametersnone documented
Returnsstring - The user input string.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_debug/debug.lua:50
ReadTextengineaddonsallReads a text out of the game's text database, and is by a wide margin the most-called global in the UI.

function engine addons only all signature: confirmed

ReadText(pageID, textID)

Reads a text out of the game's text database, and is by a wide margin the most-called global in the UI. It takes **two** arguments - the page and the entry within that page, as in ReadText(1001, 12109) - mirroring the <page id> / <t id> structure of the game's t/*.xml text files. ego_detailmonitorhelper/helper.lua replaces the engine's own version at load with a wrapper that memoises the result under page .. "-" .. line, which makes it the one vanilla override of an engine global. **It never fails and never complains.** Missing text returns the placeholder "=ReadText<page>-<line>=" with no log line, so a mod cannot detect a missing entry from this call except by matching that string. ExistsText is the correct pre-check, and ReadTextTest is the same read with the engine's TextDB lookup failed line added.

Kindfunction
ParameterspageID integer - The ID of the text page.
textID integer - The ID of the text entry within that page.
Returnsstring - The text content.
Originengine
ui/addons/ego_detailmonitorhelper/helper.lua - table assignment (8.00 :712, 9.00 :792)
⚠ vanilla replaces it at runtime - ui/addons/ego_detailmonitorhelper/helper.lua:792
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7474 vanilla call sites, 2 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:133, ui/addons/ego_detailmonitor/menu_crafting.lua:263, ui/addons/ego_detailmonitor/menu_diplomacy.lua:206, ui/addons/ego_detailmonitor/menu_docked.lua:167
ReadTextTestengineaddonsall**ReadText that complains.** It returns exactly what ReadText(pageID, textID) returns - the same text on a hit, and the same "=ReadText<page>-<line>=" placeholder when the page or the entry is missing - but on a miss it also writes TextDB lookup failed for (page, line) to the game log, which ReadText never does.

function engine addons only all signature: confirmed probed: 8.00, 9.00

ReadTextTest(pageID, textID, fallbacktext)

**ReadText that complains.** It returns exactly what ReadText(pageID, textID) returns - the same text on a hit, and the same "=ReadText<page>-<line>=" placeholder when the page or the entry is missing - but on a miss it also writes TextDB lookup failed for (page, line) to the game log, which ReadText never does. That log line is the whole difference between the two, and it makes this the read to use while developing a mod: a missing t/ entry shows up in the Debug Log instead of as a placeholder in the UI. **fallbacktext is required and never reaches the return.** Measured over five values on both the hit and the miss path - a sentinel string, the entry's own text, a number and an empty string - and the result was the text on a hit and the placeholder on a miss every time. The parameter is named for a behaviour the 8.00 return path does not have. Omitting it is refused outright: Invalid number of arguments (2, expected 3), a hard requirement rather than an open minimum. **Slot 3 is strictly a string.** A number is accepted by the usual Lua coercion and the call proceeds normally; a table and a boolean - both true and false - are refused with Invalid argument #3 <fallbacktext> (got table, expected string), the engine's own parameter name, and the call then returns nothing at all. So it is not a flag: there is no boolean to pass, and an empty fallback does not force the placeholder on a hit either. Not to be confused with C.GetLocalizedText(pageid, textid, defaultvalue), the three-argument C-side read whose third argument **is** returned when the lookup fails, and which every vanilla caller hands a plain fallback literal (widget_fullscreen.lua:907-918).

Kindfunction
ParameterspageID integer - The ID of the text page.
textID integer - The ID of the text entry within that page.
fallbacktext string - Required, and never returned in 8.00. A number is coerced; a table or a boolean is refused.
Returnsstring - The text, or "=ReadText<page>-<line>=" when it is missing. Nothing at all if the call is refused.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - thirteen calls over two runs: a known-good pair, both kinds of miss, five fallback values and four type refusals, with ReadText on the same pairs as the contrast; all fourteen rungs answered the same either side
RegisterAddonBindingsengineallallRegisters the key bindings of one menu of an addon, by addon name and menu name.

function engine all (addons + core) all signature: confirmed

RegisterAddonBindings(addonName, bindingName)

Registers the key bindings of one menu of an addon, by addon name and menu name. Vanilla calls it once per menu right after Helper.setKeyBinding, and a menu with several binding sets calls it once for each.

Kindfunction
ParametersaddonName string - The name of the addon.
bindingName string optional - The name of the binding.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 17 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:607, ui/addons/ego_detailmonitor/menu_followcamera.lua:78, ui/addons/ego_detailmonitor/menu_help.lua:103, ui/addons/ego_detailmonitor/menu_map.lua:6300
RegisterEventwidgetaddonsallSubscribes a function to a named UI event, which the engine then calls whenever that event fires.

function widget_fullscreen addons only all signature: from source

RegisterEvent(eventName, scriptFunction)

Subscribes a function to a named UI event, which the engine then calls whenever that event fires. Vanilla registers menu callbacks this way - announcementReceived, conversationCancelled, debugLog. Undo it with UnregisterEvent.

Kindfunction
ParameterseventName string
scriptFunction function
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :17966, 9.00 :18959)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :17981, 9.00 :18974)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
registerForChangeengineallallRegisters a callback fired when an element attribute changes.

function engine all (addons + core) all signature: confirmed

registerForChange(element, attribute, callback)

Registers a callback fired when an element attribute changes.

Kindfunction
Parameterselement any - The scene element.
attribute string - The attribute to watch.
callback function - The handler to invoke.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 13 vanilla call sites, 3 arguments
Seen at ui/core/lua/counteract rotation.lua:39, ui/core/lua/propagate attribute.lua:53, ui/core/lua/write text.lua:47
registerForEventengineallallRegisters a callback for a named Anark event on an element.

function engine all (addons + core) all signature: confirmed

registerForEvent(event, element, callback)

Registers a callback for a named Anark event on an element. Almost every vanilla call passes getElement("Scene.UIContract") as the element - the UI contract is where the game raises its events - with names like inputModeChanged, chatMessageReceived and gameplanchange. It is the Anark counterpart of RegisterEvent, which needs no element.

Kindfunction
Parametersevent string - The event name, e.g. "inputModeChanged".
element any - The element raising the event, commonly getElement("Scene.UIContract").
callback function? - The handler to invoke.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 480 vanilla call sites, 3 arguments
Seen at ui/addons/ego_chatwindow/chatwindow.lua:31, ui/addons/ego_detailmonitor/menu_diplomacy.lua:651, ui/addons/ego_detailmonitor/menu_docked.lua:200, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:350
RegisterMouseInteractionsengineallallMakes an Anark element take part in mouse interaction, so the mouse-over and click events registered on it actually fire.

function engine all (addons + core) all signature: confirmed

RegisterMouseInteractions(element)

Makes an Anark element take part in mouse interaction, so the mouse-over and click events registered on it actually fire. Core HUD code calls it right after its registerForEvent calls for that element.

Kindfunction
Parameterselement userdata
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 58 vanilla call sites, 1 argument
Seen at ui/core/lua/compass.lua:178, ui/core/lua/crosshair handling.lua:2195, ui/core/lua/dialogmenu.lua:664, ui/core/lua/monitors.lua:1529
RegisterWidgetengineallallRegisters the current presentation with the widget system.

function engine all (addons + core) all signature: confirmed

RegisterWidget()

Registers the current presentation with the widget system. Takes no arguments; widget_fullscreen.lua calls it once while setting a presentation up.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:1653
ReleaseCutsceneDescriptorengineallallFrees a cutscene descriptor.

function engine all (addons + core) all signature: confirmed

ReleaseCutsceneDescriptor(cutsceneDesc)

Frees a cutscene descriptor. Every vanilla caller nils its own reference immediately afterwards, so the descriptor is never used again once released.

Kindfunction
ParameterscutsceneDesc userdata
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 11 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2339, ui/addons/ego_detailmonitor/menu_playerinfo.lua:4416, ui/addons/ego_detailmonitor/menu_timeline.lua:66, ui/addons/ego_gameoptions/customgame.lua:692
ReleaseDescriptorengineallallFrees a widget descriptor.

function engine all (addons + core) all signature: confirmed

ReleaseDescriptor(descriptor)

Frees a widget descriptor. A descriptor is only the recipe for a widget, so vanilla releases it as soon as the widget is built - and, for anything it holds on to, on the way out of the menu.

Kindfunction
Parametersdescriptor userdata
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 13 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2623, ui/addons/ego_helptext/helptext.lua:527, ui/addons/ego_viewhelper/viewhelper.lua:125
ReleaseInteractionDescriptorengineallallFrees a **legacy** interaction descriptor - the counterpart of CreateInteractionDescriptor, and it takes that function's **userdata**, measured.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

ReleaseInteractionDescriptor(descriptor)

Frees a **legacy** interaction descriptor - the counterpart of CreateInteractionDescriptor, and it takes that function's **userdata**, measured. It is not the release for the current API: handed the integer id from CreateInteractionDescriptor2 it answers invalid parameters and frees nothing, which the raise afterwards proves by still working. **The current id is freed through the C function of the same name**, void ReleaseInteractionDescriptor(int32_t id), which ui/core/lua/monitors.lua:103 cdefs and monitors.lua:1766 calls. That cdef is **core's, and is not visible in the addon Lua state** - C.ReleaseInteractionDescriptor there answers missing declaration for symbol. An addon that creates descriptors must declare the symbol itself; ffi.cdef accepts it, and the release then works, after which a raise on that id reports Cannot find notification with ID 'N'. Without that declaration an addon can create and raise interactions but **cannot free one**.

Kindfunction
Parametersdescriptor userdata - A descriptor from CreateInteractionDescriptor.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - accepts a legacy userdata descriptor, refuses an integer id with invalid parameters, on both versions
ReleaseListenerengineallallNo vanilla code calls this, so nothing here confirms what it releases or what it takes.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

ReleaseListener()

No vanilla code calls this, so nothing here confirms what it releases or what it takes. Its neighbours in the Release* family each free a descriptor the engine handed out, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
ReleaseNotificationengineallallReleases the notification the target monitor is showing, by the id it was created with.

function engine all (addons + core) all signature: confirmed

ReleaseNotification(notificationID)

Releases the notification the target monitor is showing, by the id it was created with. Core code clears its own description state in the same breath.

Kindfunction
ParametersnotificationID any
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/monitors.lua:1884
ReleaseViewDescriptorengineallallFrees a view descriptor.

function engine all (addons + core) all signature: confirmed

ReleaseViewDescriptor(viewDescriptor)

Frees a view descriptor. The view helper calls it before dropping its own reference, so the descriptor cannot outlive the view it was built for.

Kindfunction
ParametersviewDescriptor userdata
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_viewhelper/viewhelper.lua:33
RemoveAmmoengineaddonsallTakes ammunition or deployables off a component.

function engine addons only all signature: confirmed

RemoveAmmo(component, ware, amount, fromPlayer, notify)

Takes ammunition or deployables off a component. The only vanilla call is the ware exchange of the map menu, which passes the ware as a macro name and the amount to remove.

Kindfunction
Parameterscomponent userdata
ware string
amount integer
fromPlayer boolean optional
notify boolean optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 5 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4638
RemoveCargoengineaddonsallTakes a ware out of a component's cargo hold.

function engine addons only all signature: confirmed

RemoveCargo(component, ware, amount, fromPlayer)

Takes a ware out of a component's cargo hold. The only vanilla call is the ware exchange of the map menu, next to the RemoveAmmo call that does the same for ammunition.

Kindfunction
Parameterscomponent userdata
ware string
amount integer
fromPlayer boolean optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4608
RemoveHighlightOverlaywidgetaddonsallRemoves the highlight overlay that ShowHighlightOverlay created under that id.

function widget_fullscreen addons only all signature: from source

RemoveHighlightOverlay(id)

Removes the highlight overlay that ShowHighlightOverlay created under that id.

Kindfunction
Parametersid string
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.removeHelpOverlay (8.00 :17869, 9.00 :18859)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
RemoveInputBarwidgetaddons≥ 9.00Removes the input bar that CreateInputBar put up.

function widget_fullscreen addons only ≥ 9.00 signature: from source

RemoveInputBar()

Removes the input bar that CreateInputBar put up. New in 9.00. helper.lua follows it with Helper.getWidgetSystemSizes, because dropping the bar changes how much room the widget system has.

Kindfunction
Parametersnone documented
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.removeInputBar (9.00 :18865)
Availabilityaddons only
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
RemoveInventoryengineaddonsallRemoves wares from an inventory.

function engine addons only all signature: confirmed

RemoveInventory(container, ware, amount)

Removes wares from an inventory. Both vanilla calls are crafting consuming its resources, and both pass nil as the container - which is how the player's own inventory is addressed.

Kindfunction
Parameterscontainer userdata optional
ware string
amount integer
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_crafting.lua:113, ui/addons/ego_detailmonitor/menu_playerinfo.lua:742
RemoveLogbookEntryengineaddonsallDeletes one logbook entry.

function engine addons only all signature: confirmed

RemoveLogbookEntry(index)

Deletes one logbook entry. The index is the entry's own index field as the logbook data carries it, not its position in a filtered list.

Kindfunction
Parametersindex integer
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4385
RemoveOrderListParamengineaddonsallRemoves one entry from a list-valued parameter of a queued order.

function engine addons only all signature: confirmed

RemoveOrderListParam(controllable, orderIndex, paramID, listIndex)

Removes one entry from a list-valued parameter of a queued order. The map menu empties such a list by walking it backwards and removing the last index each time, because removing shifts everything after it.

Kindfunction
Parameterscontrollable userdata
orderIndex integer
paramID string
listIndex integer
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3046
RemoveScriptwidgetaddonsallDetaches a handler that SetScript attached.

function widget_fullscreen addons only all signature: from source

RemoveScript(widget, handleType, scriptFunction)
-- overload: fun(handleType:string, scriptFunction:function)
-- overload: fun(widget:userdata, handleType:string, scriptFunction:function)

Detaches a handler that SetScript attached. Vanilla calls it in both shapes: with two arguments for a handler on the presentation itself, and with three through Helper.removeMenuScript for one attached to a widget.

Kindfunction
Parameterswidget userdata optional
handleType string
scriptFunction function
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :17922, 9.00 :18915)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :17963, 9.00 :18956)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
RemoveSofttargetengineallallClears the current softtarget.

function engine all (addons + core) all signature: confirmed

RemoveSofttarget()

Clears the current softtarget. Takes no arguments - the core target system calls it while resetting, alongside notifying that no mission position is connected any more.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 0 arguments
Seen at ui/core/lua/targetsystem.lua:1747
RemoveSofttargetLockRequestengineallallReleases a softtarget lock taken with RequestSofttargetLock.

function engine all (addons + core) all signature: confirmed

RemoveSofttargetLockRequest(requester)

Releases a softtarget lock taken with RequestSofttargetLock. requester has to be the same name that took the lock. The return value says only whether that requester's own request was found and removed. It does **not** mean the target lock has been lifted: other requesters may still hold locks of their own, and the softtarget stays fixed until the last of them is gone.

Kindfunction
Parametersrequester string - The name that took the lock.
ReturnsrequesterRemoved boolean - Whether this requester's request was found, not whether the lock was lifted.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/targetsystem.lua:2377
RepairDestructiblesengineaddonsallRepairs each destructible named as an argument, **to full hull, synchronously, in one call**.

function engine addons only all signature: confirmed probed: 8.00, 9.00

RepairDestructibles(destructible, ...)

Repairs each destructible named as an argument, **to full hull, synchronously, in one call**. Variadic: three arguments are accepted without complaint, so the engine's expected >= 1 is a real tail here and not a trailing parameter with a default. Returns nothing. A "destructible" is scriptproperties.xml's parent class, so the vocabulary spans whole objects and their surface elements alike. Both are measured: a ship, an engine and a shield generator were each repaired by being named. **It repairs exactly what is named and nothing else.** Passing a ship repairs the ship's hull and leaves every one of its surface elements untouched, so the plural in the name is about the argument list, not about what one object contains. Proved with a negative control: of three identically damaged engines, the two named went to full and the third did not move, then moved when it was named in the next call. **A wreck is refused silently.** A destroyed element is still present - its slot answers its id and its name is unchanged - but GetComponentClass degrades it from turret / shieldgenerator / engine to plain destructible, with hull 0 of 0 and isfunctional false, and MD reports isrepairable false. Naming one changes nothing and raises nothing. Restoring a wreck is <restore_object>'s job in MD, a different operation. Each repair raises MD's event_object_hull_repaired **twice: once on the component and once on its parent object**, with event.param naming the repaired component in both, so a listener attached to a ship hears about its own surface elements. The event's undocumented payload, measured here and read by no vanilla script: param2 is the repaired component's full hull (6027 for an engine, 500 for a shield, 35000 for the ship) and **param3 is the hull delta**. <set_object_hull> raising a hull from MD does **not** raise this event - it is specific to a repair.

Kindfunction
Parametersdestructible any - A destructible: an object, or one of its surface elements.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - hull and class read back per component, with an MD group listener; that arguments 2 onwards are acted on is a 9.00 reading, taken against the one-argument call as its own control in the same run
RequestSofttargetLockengineallallAsks for the softtarget to be held fixed, preventing the current target from changing, and returns whether the lock was granted.

function engine all (addons + core) all signature: confirmed

RequestSofttargetLock(requester)

Asks for the softtarget to be held fixed, preventing the current target from changing, and returns whether the lock was granted. requester names the holder - the core target system passes "softtargetManager" - and the same name has to be handed to RemoveSofttargetLockRequest to let it go again. Calling it with no current softtarget **fails** and reports so in its return value. Before 4.20 that same call was the way to prevent anything being targeted at all; that no longer works, so the return value has to be checked rather than assumed.

Kindfunction
Parametersrequester string - The name holding the lock.
Returnssuccess boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/targetsystem.lua:2367
ResetAllExtensionSettingsengineaddonsallResets every extension setting to its default.

function engine addons only all signature: confirmed

ResetAllExtensionSettings()

Resets every extension setting to its default. The options menu calls it behind the Defaults button of the extensions page, then clears its own changed flag.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8133
RestoreDisplayOptionsengineaddonsallResets the display options to their defaults.

function engine addons only all signature: confirmed

RestoreDisplayOptions()

Resets the display options to their defaults. The options menu calls it first in the row of Restore*Options globals behind the Defaults button.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8430
RestoreFrameengineallallRestores a frame that MinimizeFrame shrank away.

function engine all (addons + core) all signature: confirmed

RestoreFrame(frame, hasPlayerControls)

Restores a frame that MinimizeFrame shrank away. hasPlayerControls says whether the player keeps flight control while the restored frame is up - the view helper passes View.hasPlayerControls().

Kindfunction
Parametersframe userdata
hasPlayerControls boolean
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:265
RestoreGameOptionsengineaddonsallResets the gameplay options to their defaults.

function engine addons only all signature: confirmed

RestoreGameOptions()

Resets the gameplay options to their defaults. The options menu does not call it directly: it goes through a delayed one-time callback a tenth of a second later, so the menu that is being rebuilt is out of the way first.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8248
RestoreGraphicOptionsengineaddonsallResets the graphics options to their defaults, next to RestoreDisplayOptions behind the Defaults button.

function engine addons only all signature: confirmed

RestoreGraphicOptions()

Resets the graphics options to their defaults, next to RestoreDisplayOptions behind the Defaults button.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8431
RestoreSoundOptionsengineaddonsallResets the sound options to their defaults, in the row of Restore*Options globals behind the Defaults button.

function engine addons only all signature: confirmed

RestoreSoundOptions()

Resets the sound options to their defaults, in the row of Restore*Options globals behind the Defaults button.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8432
ReturnFromMenuengineaddonsallCloses the menu and hands one parameter back to whatever opened it.

function engine addons only all signature: confirmed

ReturnFromMenu(returnParam)

Closes the menu and hands one parameter back to whatever opened it. Component IDs have to go through Helper.convertComponentIDs first, which is what Helper.closeMenuAndReturn does.

Kindfunction
ParametersreturnParam any optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:1795
RotationengineallallAnark Euler rotation class.

table engine all (addons + core) all usage: confirmed

Rotation = {}

Anark Euler rotation class. Instantiate with Rotation:new(). Fields x, y, z in radians; methods add(r) and lookAt(vector). See ui\core\lua\billboard.lua.

Kindtable
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla references
Seen at ui/core/lua/billboard.lua:48
RoundTotalTradePriceengineaddonsallRounds a total price the way the game rounds trade sums, and returns the rounded integer.

function engine addons only all signature: confirmed

RoundTotalTradePrice(price)

Rounds a total price the way the game rounds trade sums, and returns the rounded integer. Vanilla puts every price through it before showing it or charging for it - trade fees, ship configuration totals, an average of two ware prices.

Kindfunction
Parametersprice number
Returnsinteger
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 12 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4142, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:7640, ui/addons/ego_detailmonitor/menu_station_overview.lua:2344, ui/addons/ego_detailmonitorhelper/helper.lua:11984
SaveFullscreenOptionengineaddonsallMakes the fullscreen mode the player just picked permanent, from the confirm branch of the countdown question - the same shape as SaveResolutionOption.

function engine addons only all signature: confirmed

SaveFullscreenOption()

Makes the fullscreen mode the player just picked permanent, from the confirm branch of the countdown question - the same shape as SaveResolutionOption.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8867
SaveGameengineaddonsallWrites a savegame.

function engine addons only all signature: confirmed

SaveGame(filename, name)

Writes a savegame. filename is the file to write, name the label the load menu shows for it; the options menu builds the filename as "save_" .. slot. An online game is saved with SaveOnlineGame instead.

Kindfunction
Parametersfilename string
name string
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9296
SaveInputProfileengineaddonsallWrites an input profile - a set of key bindings - to disk.

function engine addons only all signature: confirmed

SaveInputProfile(filename, id, customName, isNew)

Writes an input profile - a set of key bindings - to disk. Vanilla passes three arguments when it saves over a profile that exists and four when the player has just named a new one.

Kindfunction
Parametersfilename string
id string
customName string
isNew boolean optional
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3-4 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3404, ui/addons/ego_gameoptions/gameoptions.lua:9153
SaveInputSettingsengineaddonsallPersists the input mapping.

function engine addons only all signature: confirmed

SaveInputSettings(actions, states, ranges)

Persists the input mapping. The three tables are the three kinds of binding the options menu keeps apart: actions (a press), states (held down) and ranges (an axis), each in the shape its own getter returns - keyed by integer id, holding a list of source, code and signum triples. It takes all three every time; vanilla never saves one map alone, and calls it after every individual rebind rather than batching changes up.

Kindfunction
Parametersactions table<integer, InputBinding[]> - As returned by GetInputActionMap.
states table<integer, InputBinding[]> - As returned by GetInputStateMap.
ranges table<integer, InputBinding[]> - As returned by GetInputRangeMap.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 3 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3143
SaveOnlineGameengineaddonsallSaves an online game - the Ventures counterpart of SaveGame.

function engine addons only all signature: confirmed

SaveOnlineGame()

Saves an online game - the Ventures counterpart of SaveGame. Takes no arguments: the engine decides where an online save goes.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 4 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3419, ui/addons/ego_detailmonitor/menu_userquestion.lua:101, ui/addons/ego_gameoptions/gameoptions.lua:9308, ui/addons/ego_gameoptions/onlineupdate.lua:155
SaveResolutionOptionengineaddonsallMakes the resolution the player just picked permanent.

function engine addons only all signature: confirmed

SaveResolutionOption()

Makes the resolution the player just picked permanent. The options menu shows a countdown question after a resolution change and calls this from the confirm branch; the cancel branch reads the old value back with GetResolutionOption(true) instead.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8984
ScheduleReloadUIengineaddonsallQueues a reload of the whole UI.

function engine addons only all signature: confirmed

ScheduleReloadUI()

Queues a reload of the whole UI. helper.lua calls it when a menu's view cannot be created, immediately before raising the error that abandons the menu.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4266
SelectBackOptionengineaddonsallNo vanilla code calls this, so nothing here confirms what it does.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SelectBackOption()

No vanilla code calls this, so nothing here confirms what it does. By its name it picks the back option of the dialog SelectDialogOption selects a button in. A bare call is accepted and **returns false**, with no engine line to say why - so unlike its neighbours it answers rather than acting silently, but whether false means "no dialog is open" or something else is unmeasured. No argument is required.

Kindfunction
Parametersnone documented
Returnsselected boolean - false in every call measured, with no dialog open.
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions with no dialog open: false and no engine line either side. No argument is required; what the boolean reports is unmeasured.
SelectColumnwidgetaddonsallMoves a table's selection to a column.

function widget_fullscreen addons only all signature: from source

SelectColumn(tableID, column)

Moves a table's selection to a column. Used together with SelectRow to put the cursor back on a remembered cell after the table is rebuilt.

Kindfunction
ParameterstableID string
column integer
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.selectColumn (8.00 :17835, 9.00 :18824)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SelectDialogOptionengineallallActivates a dialog button as if the player had clicked it.

function engine all (addons + core) all signature: confirmed

SelectDialogOption(button)

Activates a dialog button as if the player had clicked it. The core dialog menu plays the selection sound, calls this, and then hides itself.

Kindfunction
Parametersbutton userdata
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/dialogmenu.lua:746
SelectGraphDataPointwidgetaddonsallSelects or deselects one data point of a graph widget, addressed by its record and data index.

function widget_fullscreen addons only all signature: from source

SelectGraphDataPoint(graphID, recordIdx, dataIdx, selected)

Selects or deselects one data point of a graph widget, addressed by its record and data index. It returns three values - helper.lua reads them as a result it ignores, an error flag and the error text - although the declaration here documents none of them.

Kindfunction
ParametersgraphID string
recordIdx integer
dataIdx integer
selected boolean
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.selectGraphDataPoint (8.00 :17867, 9.00 :18857)
Availabilityaddons only
vanilla calls it from addons + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SelectRowwidgetaddonsallMoves a table's selection to a row, as if the player had clicked it.

function widget_fullscreen addons only all signature: from source

SelectRow(tableID, row, modified, input, source, settableinteractive)

Moves a table's selection to a row, as if the player had clicked it. Vanilla only ever passes tableID and row - to restore a remembered selection after a table is rebuilt. The remaining parameters come from the older function list and no vanilla call exercises them.

Kindfunction
ParameterstableID string
row integer
modified boolean optional
input any optional
source any optional
settableinteractive boolean optional
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.selectRowExternal (8.00 :17836, 9.00 :18825)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
selfengineallallThe script object attached to the current scene element.

table engine all (addons + core) all usage: confirmed

self = {}

The script object attached to the current scene element. Only meaningful in ui/core/lua/*.lua element code, the files that define "function self:onInitialize()"). self.element is the element the script is attached to; the engine calls self:onInitialize, self:onActivate, self:onDeactivate and self:onUpdate on it, and the script stores its own state as fields of self. Inside a method defined with a colon the parameter shadows this global.

Kindtable
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1578 vanilla references
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:3534, ui/core/lua/billboard.lua:36, ui/core/lua/compass.lua:146, ui/core/lua/counteract rotation.lua:25
SetAdapterOptionengineaddonsallPicks the graphics adapter.

function engine addons only all signature: confirmed

SetAdapterOption(option)

Picks the graphics adapter. The options menu passes the index of the dropdown entry the player chose.

Kindfunction
Parametersoption integer
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8518
SetAimAssistOptionengineaddonsallSets the aim assist level.

function engine addons only all signature: confirmed

SetAimAssistOption(option)

Sets the aim assist level. The options menu passes the dropdown index minus one, so the engine's own scale starts at zero.

Kindfunction
Parametersoption number
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8199
setAttributeengineallallSets one attribute of an Anark scene element - the core HUD's basic verb.

function engine all (addons + core) all signature: confirmed

setAttribute(element, attribute, value)

Sets one attribute of an Anark scene element - the core HUD's basic verb. The attribute is a path, so a vector is written one component at a time ("scale.x", "rotation.y"), and text is written as "textstring". getAttribute reads the same paths back. It exists in the addons Lua environment too, but there is nothing there to use it on.

Kindfunction
Parameterselement any - The scene element.
attribute string - Attribute path, e.g. "position.x", "opacity", "scale.x".
value any - The value to assign.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1030 vanilla call sites, 3 arguments
Seen at ui/core/lua/billboard.lua:207, ui/core/lua/compass.lua:192, ui/core/lua/counteract rotation.lua:48, ui/core/lua/crosshair handling.lua:1122
SetAutorollOptionengineaddonsallToggles the autoroll flight option.

function engine addons only all signature: confirmed

SetAutorollOption()

Toggles the autoroll flight option. Argument-less, like the other option toggles behind the game settings checkboxes.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8204
SetAutosaveOptionengineaddonsallToggles autosaving.

function engine addons only all signature: confirmed

SetAutosaveOption()

Toggles autosaving. The options menu refreshes itself afterwards, because the setting changes what else the page shows.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8208
SetBoostToggleOptionengineaddonsallToggles the boost-as-toggle input option.

function engine addons only all signature: confirmed

SetBoostToggleOption()

Toggles the boost-as-toggle input option. Like the other argument-less Set*Option globals it flips the current value rather than taking one: the checkbox reads GetBoostToggleOption and its callback passes nothing.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8223
SetButtonColorengineallallRecolours an existing button widget in place, from separate red, green, blue and alpha values.

function engine all (addons + core) all signature: confirmed

SetButtonColor(buttonID, r, g, b, a)

Recolours an existing button widget in place, from separate red, green, blue and alpha values.

Kindfunction
ParametersbuttonID string
r number
g number
b number
a number
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 5 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1486, ui/addons/ego_detailmonitorhelper/helper.lua:2655
SetButtonTextengineallallReplaces the label of an existing button widget in place, without rebuilding the table it sits in.

function engine all (addons + core) all signature: confirmed

SetButtonText(buttonID, text)

Replaces the label of an existing button widget in place, without rebuilding the table it sits in.

Kindfunction
ParametersbuttonID string
text string
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 26 vanilla call sites, 2 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1215, ui/addons/ego_detailmonitorhelper/helper.lua:4336
SetCaptureHQOptionengineaddonsallToggles high quality screenshot capture.

function engine addons only all signature: confirmed

SetCaptureHQOption()

Toggles high quality screenshot capture. Argument-less, like the other graphics option toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8537
SetCellContentengineallallPuts a prepared widget descriptor into one cell of a table, and returns whether it worked.

function engine all (addons + core) all signature: confirmed

SetCellContent(tableID, descriptor, row, column)

Puts a prepared widget descriptor into one cell of a table, and returns whether it worked. The descriptor is the caller's to release afterwards, which is what helper.lua does unless told to keep it.

Kindfunction
ParameterstableID string
descriptor userdata
row integer
column integer
Returnsboolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 4 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2621
SetCharacterDensityOptionengineaddonsallSets the density of characters on station platforms, and returns nothing.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetCharacterDensityOption(density)

Sets the density of characters on station platforms, and returns nothing. Vanilla MD reads the same setting as player.chardensity, which scriptproperties.xml documents as a float *"between 0 and 1"* - but **that range is the game's own, not a constraint the setter enforces**: 1.5 is taken and stored unchanged. Values above 1 push vanilla past its own ceiling, since md/npc_instantiation.xml:1695 computes 30 * player.chardensity. The value is **not save state**. It persists to config.xml as <chardensity>, written through as soon as the setter is called, so it outlives the save and the session. Uncalled is not unused: no Lua code calls this setter in any version from 7.10 to 9.00, but scriptproperties.xml and md/npc_instantiation.xml have read the setting in all five. The game has no UI for it either, which makes this the only programmatic way to change it. Stored as a 32-bit float: 0.8 reads back as 0.80000001192093, while an exactly representable 1.5 or 0.5 reads back unchanged. Never compare a read-back for equality.

Kindfunction
Parametersdensity number - Characters on platforms. 0 to 1 by convention; not clamped.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - 0.5 -> 0.8 -> 1.5 -> 0.5, each value read back through GetCharacterDensityOption, confirmed in config.xml between steps, and read back a third time from MD as player.chardensity - which reported 1.5 unclamped on the script side
SetCollisionAvoidanceAssistOptionengineaddonsallToggles the collision avoidance assist.

function engine addons only all signature: confirmed

SetCollisionAvoidanceAssistOption()

Toggles the collision avoidance assist. Argument-less, like the other flight assist toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8233
SetComponentNameengineaddonsallRenames a component - a ship, a station or the player's empire.

function engine addons only all signature: confirmed

SetComponentName(component, name)

Renames a component - a ship, a station or the player's empire. Every vanilla call comes from an edit box being deactivated, so the name is whatever the player typed; the empire is renamed by passing the player component itself.

Kindfunction
Parameterscomponent userdata
name string
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:25037, ui/addons/ego_detailmonitor/menu_mapeditor.lua:971, ui/addons/ego_detailmonitor/menu_playerinfo.lua:1041, ui/addons/ego_detailmonitor/menu_station_configuration.lua:1437
SetConfineMouseOptionengineaddonsallToggles whether the mouse pointer is confined to the game window.

function engine addons only all signature: confirmed

SetConfineMouseOption()

Toggles whether the mouse pointer is confined to the game window. Argument-less, like the other input option toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9121
SetContainerStockLimitOverrideengineaddonsallSets a manual stock limit for one ware at one container, overriding what the station would keep.

function engine addons only all signature: confirmed

SetContainerStockLimitOverride(container, ware, limit)

Sets a manual stock limit for one ware at one container, overriding what the station would keep. Vanilla clamps the value to at least 1.

Kindfunction
Parameterscontainer userdata
ware string
limit integer
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:12502
SetContainerWarePriceOverrideengineaddonsallSets a manual price for one ware at one container, overriding the price the station would compute.

function engine addons only all signature: confirmed

SetContainerWarePriceOverride(container, ware, isBuy, price)

Sets a manual price for one ware at one container, overriding the price the station would compute. isBuy picks the buy or the sell side. HasContainerWarePriceOverride reports whether one is in place, and the station configuration menu sets the global price factor to -1 alongside it.

Kindfunction
Parameterscontainer userdata
ware string
isBuy boolean
price integer
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7 vanilla call sites, 4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:4684, ui/addons/ego_detailmonitor/menu_station_configuration.lua:1487, ui/addons/ego_detailmonitorhelper/helper.lua:12538
SetCrashReportOptionengineaddonsallToggles whether crash reports are sent.

function engine addons only all signature: confirmed

SetCrashReportOption()

Toggles whether crash reports are sent. Argument-less, like the other option toggles the privacy page calls.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9283
SetDeadzoneOptionengineaddonsallSets the controller deadzone from the slider value the options menu passes.

function engine addons only all signature: confirmed

SetDeadzoneOption(value)

Sets the controller deadzone from the slider value the options menu passes.

Kindfunction
Parametersvalue number
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9112
SetDiffuseColorengineallallSets the colour of an Anark material, red, green and blue only.

function engine all (addons + core) all signature: confirmed

SetDiffuseColor(material, r, g, b)

Sets the colour of an Anark material, red, green and blue only. Core HUD code always follows it with setAttribute(element, "opacity", a), because the alpha is an element attribute rather than part of the material colour.

Kindfunction
Parametersmaterial userdata
r number
g number
b number
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 125 vanilla call sites, 4 arguments
Seen at ui/core/lua/compass.lua:481, ui/core/lua/crosshair handling.lua:2628, ui/core/lua/debugline.lua:217, ui/core/lua/dialogmenu.lua:803
SetDistortionOptionengineaddonsallToggles the distortion graphics option.

function engine addons only all signature: confirmed

SetDistortionOption()

Toggles the distortion graphics option. The quality preset path calls it right after SetGfxQualityOption(0), which is the custom quality level.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8563
SetEffectDistanceOptionengineaddonsallSets the effect distance on the engine's 0 to 1 scale - the options menu divides its slider by 100 and rounds to two decimals - preceded by SetGfxQualityOption(0) to drop the preset to Custom.

function engine addons only all signature: confirmed

SetEffectDistanceOption(distance)

Sets the effect distance on the engine's 0 to 1 scale - the options menu divides its slider by 100 and rounds to two decimals - preceded by SetGfxQualityOption(0) to drop the preset to Custom.

Kindfunction
Parametersdistance number - The effect distance.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8686
SetEGOGlobalswidgetaddonsallCopies the registered globals into an environment table - the mechanism a separate Lua environment uses to receive them, alongside __EGO_GLOBALS.

function widget_fullscreen addons only all signature: from source

SetEGOGlobals(env)

Copies the registered globals into an environment table - the mechanism a separate Lua environment uses to receive them, alongside __EGO_GLOBALS. No vanilla code calls it, but its presence is what tells the addons Lua environment apart from the core one.

Kindfunction
Parametersenv table - The environment table to populate with globals.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :357, 9.00 :441)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetExtensionSettingsengineaddonsallWrites one extension setting: the extension ID, whether it is a personal one, the setting name and its value.

function engine addons only all signature: confirmed

SetExtensionSettings(id, personal, settingName, value)

Writes one extension setting: the extension ID, whether it is a personal one, the setting name and its value. The global settings are addressed with an empty ID - SetExtensionSettings("", false, "sync", value) is how the options menu writes the global sync flag.

Kindfunction
Parametersid string - The ID of the extension.
personal boolean - true if the setting is personal.
settingName string - The name of the setting to set.
value any - The value to set for the setting.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 3 vanilla call sites, 4 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3370
SetFOVOptionengineaddonsallSets the field of view.

function engine addons only all signature: confirmed

SetFOVOption(value)

Sets the field of view. The options menu divides its slider by 90, so the engine's own value is a factor around 1 rather than an angle in degrees.

Kindfunction
Parametersvalue number - The FOV value to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8706
SetFullScreenOneToOneengineallallSwitches the presentation to one-to-one pixel mapping.

function engine all (addons + core) all signature: confirmed

SetFullScreenOneToOne()

Switches the presentation to one-to-one pixel mapping. The core target system warns in a comment that this can change the resolution, so screen information has to be read back **after** the call, not before.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/targetsystem.lua:940
SetFullscreenOptionengineaddonsallSets the fullscreen mode from the dropdown entry, passed unchanged - windowed, fullscreen or borderless, depending on where the entry sits in the list.

function engine addons only all signature: confirmed

SetFullscreenOption(setting)

Sets the fullscreen mode from the dropdown entry, passed unchanged - windowed, fullscreen or borderless, depending on where the entry sits in the list.

Kindfunction
Parameterssetting integer - The setting value (e.g., 0 for windowed, 1 for fullscreen).
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8850
SetFullScreenWorldSpaceengineallallSwitches the presentation to full screen world space.

function engine all (addons + core) all signature: confirmed

SetFullScreenWorldSpace()

Switches the presentation to full screen world space. The monitor code calls it once while setting its render settings up.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/core/lua/monitors.lua:818
SetGamepadModeOptionengineaddonsallSets the gamepad mode from the dropdown index minus one - the same offset the other input dropdowns use.

function engine addons only all signature: confirmed

SetGamepadModeOption(option)

Sets the gamepad mode from the dropdown index minus one - the same offset the other input dropdowns use.

Kindfunction
Parametersoption integer - The gamepad mode to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9094
SetGammaOptionengineaddonsallSets the gamma correction.

function engine addons only all signature: confirmed

SetGammaOption(value)

Sets the gamma correction. The options menu divides its 0-100 slider by 100, so the engine's own range is 0 to 1.

Kindfunction
Parametersvalue number - The gamma value to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8891
SetGfxQualityOptionengineaddonsallSets the graphics quality preset.

function engine addons only all signature: confirmed

SetGfxQualityOption(option)

Sets the graphics quality preset. Passing 0 selects Custom, which is why every individual graphics setter calls SetGfxQualityOption(0) first: changing one detail drops the preset out of Low, Medium or High.

Kindfunction
Parametersoption integer - The graphics quality option to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 18 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8541
SetGlowOptionengineaddonsallSets the glow quality level.

function engine addons only all signature: confirmed

SetGlowOption(option)

Sets the glow quality level. The options menu passes the dropdown index minus one, and calls SetGfxQualityOption(0) first - changing any single quality setting drops the preset to Custom.

Kindfunction
Parametersoption integer - The glow option to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8899
SetHeightengineallallSets the height of a widget.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

SetHeight()

Sets the height of a widget. No vanilla code calls it, and the declaration carries no parameters, so what it would take is unverified - SetWidth next to it takes the widget and a pixel width.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
SetIconengineallallPuts an icon into an Anark material or texture element.

function engine all (addons + core) all signature: confirmed

SetIcon(material, iconID, r, g, b, useTextureColor, width, height)

Puts an icon into an Anark material or texture element. Colour and size are optional: core HUD code passes nil, nil, nil to keep the icon's own colours, or a full white 255, 255, 255 tint, and adds width and height only where the icon has to be scaled to a panel.

Kindfunction
Parametersmaterial userdata - The material to set the icon for.
iconID string - The ID of the icon to set.
r number optional - Optional red color value.
g number optional - Optional green color value.
b number optional - Optional blue color value.
useTextureColor boolean optional - Optional flag to use the texture color.
width number optional - Optional width for the icon.
height number optional - Optional height for the icon.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 44 vanilla call sites, 6-8 arguments
Seen at ui/core/lua/crosshair handling.lua:988, ui/core/lua/crosshair handling.lua:2226, ui/core/lua/extro.lua:93, ui/core/lua/loading.lua:550
SetInversionSettingengineaddonsallInverts one axis of a control range, by range ID and parameter name.

function engine addons only all signature: confirmed

SetInversionSetting(uiRangeID, parameterName, value)

Inverts one axis of a control range, by range ID and parameter name. Vanilla passes two arguments, so the value is optional and the call toggles the setting - the same shape as the argument-less option toggles.

Kindfunction
ParametersuiRangeID number - The ID of the UI range.
parameterName string - The name of the parameter to set.
value boolean optional - The value to set (true/false).
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9103
SetJoysticksOptionengineaddonsallAssigns a joystick to a slot, by slot number and device GUID.

function engine addons only all signature: confirmed

SetJoysticksOption(slot, guid)

Assigns a joystick to a slot, by slot number and device GUID. The options menu refreshes afterwards, because the other slots' choices change with it.

Kindfunction
Parametersslot integer - The slot number to set.
guid string - The GUID of the joystick.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9227
SetLegacyShadersOptionengineaddonsallToggles the legacy shader path.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetLegacyShadersOption()

Toggles the legacy shader path. No vanilla code calls it, though GetLegacyShadersOption is read - so the option is shown but set somewhere else.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
SetLODOptionengineaddonsallSets the level of detail on the engine's 0 to 1 scale - the options menu divides its slider by 100 - preceded by SetGfxQualityOption(0) to drop the preset to Custom.

function engine addons only all signature: confirmed

SetLODOption(value)

Sets the level of detail on the engine's 0 to 1 scale - the options menu divides its slider by 100 - preceded by SetGfxQualityOption(0) to drop the preset to Custom.

Kindfunction
Parametersvalue number - The LOD value to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8930
SetLuaDebugOutputengineaddonsallWrites a line into the Lua debug output.

function engine addons only all signature: confirmed

SetLuaDebugOutput(message)

Writes a line into the Lua debug output. The debug menu uses it to report a failed loadstring of what the player typed.

Kindfunction
Parametersmessage string - The debug message to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 5 vanilla call sites, 1 argument
Seen at ui/addons/ego_debug/debug.lua:55
SetMainMissiontargetMessageengineallallSets a mission target message on a position marker.

function engine all (addons + core) all signature: unverified probed: 8.00, 9.00

SetMainMissiontargetMessage(posid, messageid)

Sets a mission target message on a position marker. **This name is an alias and the engine answers under its own**: called bare it replies SetPriorityMissionTargetMessage(): invalid argument. Proper syntax: SetPriorityMissionTargetMessage(posid, messageid), naming the real internal function and its full signature in one line. The two parameters below are the engine's own words; no call has ever been made with arguments, so neither type has been measured. **Egosoft marks it UNSUPPORTED.** Both names carry UNSUPPORTED. Not designed to be used by mods. in Egosoft's X Rebirth Lua function overview, which is why this row is documented rather than measured - parked on Egosoft's own word, not for want of a way to call it.

Kindfunction
Parametersposid any - Position id. Named by the engine, type unmeasured.
messageid any - Message id. Named by the engine, type unmeasured.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
Probed in-game8.00, 9.00 - one bare call on each version, both printing the same real name and syntax, SetPriorityMissionTargetMessage(posid, messageid); parked there
SetMaxBudgetengineaddonsallSets a station's maximum budget.

function engine addons only all signature: confirmed

SetMaxBudget(station, budget)

Sets a station's maximum budget. It is always set together with SetMinBudget, and vanilla always makes the maximum one and a half times the minimum - the manager may spend down to the minimum and hold up to the maximum.

Kindfunction
Parametersstation userdata - The station to set the budget for.
budget integer - The budget amount.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:17772, ui/addons/ego_detailmonitor/menu_playerinfo.lua:963, ui/addons/ego_detailmonitor/menu_research.lua:743, ui/addons/ego_detailmonitor/menu_station_overview.lua:4016
SetMenuPositionengineallallSets the menu position.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

SetMenuPosition()

Sets the menu position. No vanilla code calls it. **It does take arguments, and the declaration does not name them.** A bare call is not refused on arity - there is no expected N line - but it returns false and the engine writes (from presentation '...') SetMenuPosition(): invalid parameters, so the check is the presentation's rather than the engine's argument counter. What it wants is unmeasured; the false is the refusal, not a position.

Kindfunction
Parametersnone documented
Returnspositioned boolean - false when the parameters are rejected.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: false and the same invalid parameters line either side. The parameters it wants are unmeasured.
SetMinBudgetengineaddonsallSets a station's minimum budget, the amount its manager keeps back.

function engine addons only all signature: confirmed

SetMinBudget(station, budget)

Sets a station's minimum budget, the amount its manager keeps back. Always set with SetMaxBudget, which vanilla puts at one and a half times this value.

Kindfunction
Parametersstation userdata - The station to set the budget for.
budget integer - The budget amount.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:17773, ui/addons/ego_detailmonitor/menu_playerinfo.lua:964, ui/addons/ego_detailmonitor/menu_research.lua:744, ui/addons/ego_detailmonitor/menu_station_overview.lua:4017
SetMouseCursorOverridewidgetaddonsallReplaces the mouse cursor with a named one for as long as the override lasts - crossarrows while a station module is being dragged, default to put the normal pointer back.

function widget_fullscreen addons only all signature: from source

SetMouseCursorOverride(cursorIcon)

Replaces the mouse cursor with a named one for as long as the override lasts - crossarrows while a station module is being dragged, default to put the normal pointer back. The map menu pairs it with its own removeMouseCursorOverride.

Kindfunction
ParameterscursorIcon string optional - The icon to use as the cursor.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setMouseCursorOverride (8.00 :17857, 9.00 :18846)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetMouseLookToggleOptionengineaddonsallToggles whether mouse look is a toggle or a hold.

function engine addons only all signature: confirmed

SetMouseLookToggleOption()

Toggles whether mouse look is a toggle or a hold. Argument-less, like the other input option toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8278
SetMouseOverOverridewidgetaddonsallOverrides the mouse-over handling of a widget.

function widget_fullscreen addons only all signature: from source

SetMouseOverOverride(widgetID, override, forceHide)

Overrides the mouse-over handling of a widget. Both vanilla calls pass nil as the override, which clears it - the map does this when it stops driving its own mouse-over text - so what a non-nil override does is not confirmed here.

Kindfunction
ParameterswidgetID string - The ID of the widget.
override boolean - true to enable override, false to disable.
forceHide boolean optional - true to force hide, false to show normally.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setMouseOverOverride (8.00 :17858, 9.00 :18847)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetMouseSleepingengineaddonsallPuts the mouse into its sleeping state.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetMouseSleeping()

Puts the mouse into its sleeping state. No vanilla code calls it, and the declaration carries no parameters.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
SetNPCBlackboardengineaddonsallWrites one value onto an NPC's blackboard, where Mission Director code can read it.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetNPCBlackboard(entity, key, value)

Writes one value onto an NPC's blackboard, where Mission Director code can read it. The key is the MD variable name including its $ - the trader inventory menu sets $TradeDone to true when a trade completes. **A Lua true crosses as MD integer 1**, measured: written here, it reads back through GetNPCBlackboard as number 1 and MD's own typeof calls it integer, not bool.

Kindfunction
Parametersentity userdata - The NPC entity to set the blackboard for.
key string - The key of the value to set. The MD variable name, $ included.
value any - The value to set. A true arrives in MD as integer 1; false was not measured.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_trader_inventory.lua:538
Probed in-game8.00, 9.00 - a station and a ship defence entity, read back in Lua and in MD, on both versions
SetNPCSkillengineaddonsallSets one skill of one NPC.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetNPCSkill(entityID, skill, value)

Sets one skill of one NPC. Arity 3, returns nothing. MD's <set_skill entity= type= exact= /> (common.xsd:35803) is the same operation from the script side, and no vanilla Lua calls this. Argument 1 is an **entity** - an NPC component id such as a ship's assignedpilot, not the ship and not a seed-based crew member. The engine names the type itself, answering Component '<name>' is not of class entity to a controllable and Invalid argument #1 <entity> (got cdata, expected component ID) to the player person. Both complaints print while the call still returns normally. **Argument 2 is the bare skill id**, one of boarding, engineering, management, morale or piloting - C.GetSkills enumerates them and they match MD's skilltype enum exactly. MD's own skilltype. prefix is **not** accepted. Unlike most of this family, a wrong skill - a name that does not exist, the prefixed spelling, or an integer - **fails silently**: nothing moves and the engine prints nothing, so this call cannot be probed by feeding it nonsense. **Argument 3 is on the 0-15 skill scale, not the 0-100 combined one**, and is **clamped at both ends rather than refused**: 75 and 100 each wrote 15, a negative wrote 0, and a fraction truncates. An out-of-range call leaves the skill usable - the next in-range value takes. The write reaches the real store: C.GetEntitySkillsForAssignment, C.GetEntityCombinedSkill and MD's skill.{$skilltype} all track it.

Kindfunction
ParametersentityID any - The NPC entity whose skill is written. Not a controllable, not a seed person.
skill string - One of boarding, engineering, management, morale, piloting. A wrong id is silently ignored.
value number - The new value on the 0-15 scale. Clamped to 0-15; a fraction is truncated.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - a ship's pilot, every skill read back either side of every call, MD as a second witness; the 0-15 scale, the truncated fraction and the clamp reproduced on both versions
SetOrderParamengineaddonsallSets one parameter of a queued order.

function engine addons only all signature: confirmed

SetOrderParam(controllable, orderIndex, paramID, listIndex, value)

Sets one parameter of a queued order. orderIndex is the position in the queue, or the string "default" or "planneddefault" for the default order slots; paramID is the parameter's 1-based position, and listIndex addresses one entry of a list-valued parameter or is nil for a plain one. Component values have to go through ConvertStringToLuaID first.

Kindfunction
Parameterscontrollable userdata - The controllable object (e.g., ship).
orderIndex integer|"default"|"planneddefault" - The order to modify: queue index, or the default/planned-default slot.
paramID integer - The 1-based index of the parameter to set.
listIndex integer optional - Optional index for list parameters.
value any - The value to set for the parameter.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 90 vanilla call sites, 5 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:2975, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:1761, ui/addons/ego_detailmonitorhelper/helper.lua:12580, ui/addons/ego_interactmenu/menu_interactmenu.lua:551
SetPersonalizedCrashReportsOptionengineaddonsallToggles whether crash reports carry the player's user ID.

function engine addons only all signature: confirmed

SetPersonalizedCrashReportsOption()

Toggles whether crash reports carry the player's user ID. Argument-less, like the other privacy toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9287
SetPointerOverrideengineallallReplaces the mouse pointer over one element with a named pointer, for as long as the override stands - UnsetPointerOverride takes it off again.

function engine all (addons + core) all signature: confirmed

SetPointerOverride(element, pointerID)

Replaces the mouse pointer over one element with a named pointer, for as long as the override stands - UnsetPointerOverride takes it off again. Core code sets it on the elements it has just registered for mouse interaction.

Kindfunction
Parameterselement userdata - The UI element to override the pointer for.
pointerID string - The ID of the pointer to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 9 vanilla call sites, 2 arguments
Seen at ui/core/lua/monitors.lua:2297, ui/core/lua/targetsystem.lua:4249, ui/widget/lua/widget_fullscreen.lua:11841
SetPresentationPositionengineallallMoves a presentation element to one of the fixed screen positions, by number and element ID.

function engine all (addons + core) all signature: confirmed

SetPresentationPosition(position, id)

Moves a presentation element to one of the fixed screen positions, by number and element ID. The monitor code uses it to park the plain message ticker at position 3.

Kindfunction
Parametersposition integer - The position to set.
id string - The ID of the presentation element.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 2 arguments
Seen at ui/core/lua/monitors.lua:1325
SetPriorityMissionTargetMessageengineallallMarks one message as the priority mission target, by position ID and message ID, so the HUD gives it the guidance treatment.

function engine all (addons + core) all signature: confirmed

SetPriorityMissionTargetMessage(posID, messageID)

Marks one message as the priority mission target, by position ID and message ID, so the HUD gives it the guidance treatment. Both are optional: the core target system calls it with the current target's pair, and with nothing when there is no priority target left.

Kindfunction
ParametersposID any optional - Optional position ID.
messageID any optional - Optional message ID.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/core/lua/targetsystem.lua:2004
SetRadarOptionengineaddonsallSets the radar quality level.

function engine addons only all signature: confirmed

SetRadarOption(option)

Sets the radar quality level. The dropdown index minus one, preceded by SetGfxQualityOption(0) to drop the preset to Custom.

Kindfunction
Parametersoption integer - The radar option to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8960
SetRenderTargetNoisewidgetaddonsallTurns the noise overlay of a render target on or off.

function widget_fullscreen addons only all signature: from source

SetRenderTargetNoise(renderTargetID, active)

Turns the noise overlay of a render target on or off. Vanilla switches it off once the cutscene that was rendering into that target has stopped.

Kindfunction
ParametersrenderTargetID string - The ID of the render target.
active boolean - true to activate noise, false to deactivate.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setRenderTargetNoise (8.00 :17870, 9.00 :18860)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetRenderTargetSizeengineallallSets the pixel size of a render target, addressed by its texture string rather than by its widget ID.

function engine all (addons + core) all signature: confirmed

SetRenderTargetSize(textureString, width, height)

Sets the pixel size of a render target, addressed by its texture string rather than by its widget ID. widget_fullscreen.lua scales the noise overlay to match in the same breath.

Kindfunction
ParameterstextureString string - The texture string of the render target.
width number - The width to set.
height number - The height to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:13951
SetResolutionOptionengineaddonsallSets the resolution to a width and a height.

function engine addons only all signature: confirmed

SetResolutionOption(width, height)

Sets the resolution to a width and a height. The options menu pulls both out of the "width:height" string of the dropdown entry, and the change only becomes permanent when SaveResolutionOption confirms it.

Kindfunction
Parameterswidth number - The width of the resolution.
height number - The height of the resolution.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8967
SetRumbleOptionengineaddonsallSets the controller rumble strength.

function engine addons only all signature: confirmed

SetRumbleOption(value)

Sets the controller rumble strength. The options menu divides its 0-100 slider by 100, so the engine's range is 0 to 1.

Kindfunction
Parametersvalue number - The rumble value to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8353
SetScriptwidgetaddonsallAttaches a handler to a widget, or to the presentation itself.

function widget_fullscreen addons only all signature: from source

SetScript(widget, handleType, scriptFunction)
-- overload: fun(handleType:string, scriptFunction:function)
-- overload: fun(widget:userdata, handleType:string, scriptFunction:function)

Attaches a handler to a widget, or to the presentation itself. With two arguments it is global - SetScript("onHotkey", menu.onHotkey), SetScript("onUpdate", onUpdate) - and with three the first is the widget the handler belongs to. RemoveScript takes it off again, and menu code normally goes through Helper.setMenuScript.

Kindfunction
Parameterswidget userdata optional - Optional widget to set the script for.
handleType string - The type of handle (e.g., "event", "hotkey").
scriptFunction function - The script function to set.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :17879, 9.00 :18872)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :17919, 9.00 :18912)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetSelectedRowswidgetaddonsallSets the multi-selection of a table: rows is the list of selected row indexes, curRow the one the cursor sits on.

function widget_fullscreen addons only all signature: from source

SetSelectedRows(tableID, rows, curRow)

Sets the multi-selection of a table: rows is the list of selected row indexes, curRow the one the cursor sits on. The selection and the current row are separate things, which is why vanilla falls back to Helper.currentTableRow when it has no row of its own to pass.

Kindfunction
ParameterstableID string - The ID of the table.
rows table - A table of row indices to select.
curRow integer - The current row index.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setSelectedRows (8.00 :17838, 9.00 :18827)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetSensitivitySettingengineaddonsallSets the sensitivity of one control range, by range ID and configuration name.

function engine addons only all signature: confirmed

SetSensitivitySetting(rangeID, configName, value)

Sets the sensitivity of one control range, by range ID and configuration name. The options menu divides its 0-100 slider by 100 and rounds to two decimals, so the engine's own range is 0 to 1.

Kindfunction
ParametersrangeID string - The ID of the range to set.
configName string - The name of the configuration to set.
value number - The value to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9166
SetShaderQualityOptionengineaddonsallSets the shader quality level from the dropdown index minus one, preceded by SetGfxQualityOption(0) to drop the preset to Custom.

function engine addons only all signature: confirmed

SetShaderQualityOption(option)

Sets the shader quality level from the dropdown index minus one, preceded by SetGfxQualityOption(0) to drop the preset to Custom.

Kindfunction
Parametersoption integer - The shader quality option to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9005
SetShadowOptionengineaddonsallSets the shadow quality level, preceded by SetGfxQualityOption(0) to drop the preset to Custom.

function engine addons only all signature: confirmed

SetShadowOption(option)

Sets the shadow quality level, preceded by SetGfxQualityOption(0) to drop the preset to Custom. Unlike its neighbours it takes the dropdown index unchanged, not the index minus one.

Kindfunction
Parametersoption integer - The shadow option to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9013
SetSliderCellValuewidgetaddonsallSets the value a slider cell shows.

function widget_fullscreen addons only all signature: from source

SetSliderCellValue(sliderCellID, value, newMaxSelect)

Sets the value a slider cell shows. The third argument raises or lowers the slider's maximum at the same time, which is what lets a slider whose range depends on other choices follow them; vanilla passes two arguments when only the value moves.

Kindfunction
ParameterssliderCellID string - The ID of the slider cell.
value number - The value to set.
newMaxSelect number optional - Optional new maximum select value.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setSliderCellValue (8.00 :17861, 9.00 :18851)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetSoftShadowsOptionengineaddonsallToggles soft shadows, preceded by SetGfxQualityOption(0) to drop the graphics preset to Custom.

function engine addons only all signature: confirmed

SetSoftShadowsOption()

Toggles soft shadows, preceded by SetGfxQualityOption(0) to drop the graphics preset to Custom. Argument-less, like the other toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9019
SetSofttargetengineallallSets the softtarget and returns whether it worked.

function engine all (addons + core) all signature: confirmed

SetSofttarget(componentid, connectionname, forceSet)

Sets the softtarget and returns whether it worked. The core target system passes a **message ID**, not a component - the ID of the target element it is connecting - a boolean for instant interaction or first person mode, and true to force the set, so the parameter names this declaration carries do not match how vanilla calls it.

Kindfunction
Parameterscomponentid userdata - The ID of the component.
connectionname string optional - Optional connection name.
forceSet boolean optional - Optional flag to force the set action.
Returnsboolean, boolean
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 4 vanilla call sites, 3 arguments
Seen at ui/core/lua/targetsystem.lua:1316
SetSoundOptionengineaddonsallToggles sound output as a whole.

function engine addons only all signature: confirmed

SetSoundOption()

Toggles sound output as a whole. Argument-less, like the other option toggles; the options menu refreshes afterwards because the rest of the sound page depends on it.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9338
SetSSAOOptionengineaddonsallSets the ambient occlusion quality level.

function engine addons only all signature: confirmed

SetSSAOOption(option)

Sets the ambient occlusion quality level. The dropdown index minus one, preceded by SetGfxQualityOption(0) to drop the preset to Custom.

Kindfunction
Parametersoption integer - The SSAO option to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9026
SetStatValueengineaddonsallSets a statistic to an exact value.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetStatValue(statID, value)

Sets a statistic to an exact value. Arity 2: a statistic ID from GetAllStatIDs and a number. Returns nothing, and the write is immediate - GetStatData(id, "value") reads the new value back in the same frame. It is a true assignment, not a maximum: a measured call took a statistic from 4250 back down to 480. Note that the statistics marked highest="true" in libraries/stats.xml keep only their highest value, so a set on one of those is expected to be one-way. No vanilla Lua calls it, nor IncStatValue, but uncalled is not unused: the shipped game writes statistics constantly from MD, where a statistic is a plain lvalue and the equivalent is set_value on stat.<id>. Measured from both sides - after a Lua SetStatValue, MD reads the new value in stat.<id>, so the two are one store. **Some statistics are not save state.** libraries/stats.xml marks 21 of them account="true", meaning they persist to the Steam/GOG account across savegames, every achievement in the game hangs off one of those, and copyto/addto/mapto propagate a write from a plain statistic into them. Reloading a save does not undo such a write.

Kindfunction
ParametersstatID string - The ID of the statistic to set.
value number - The value to set it to.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - set and read back exactly, and witnessed from MD as stat.<id>, on both versions
SetSteeringNoteOptionengineaddonsallToggles the steering control mode messages.

function engine addons only all signature: confirmed

SetSteeringNoteOption()

Toggles the steering control mode messages. Argument-less, like the other game option toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8237
SetStopShipInMenuOptionengineaddonsallToggles whether the player's ship stops while a menu is open.

function engine addons only all signature: confirmed

SetStopShipInMenuOption()

Toggles whether the player's ship stops while a menu is open. Argument-less, like the other game option toggles.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8379
SetSubtitleOptionengineaddonsallSets the subtitle mode from the dropdown entry the player chose, passed unchanged.

function engine addons only all signature: confirmed

SetSubtitleOption(option)

Sets the subtitle mode from the dropdown entry the player chose, passed unchanged.

Kindfunction
Parametersoption any
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:8385
SetTableCellColorengineaddonsallSets the background colour of one table cell, addressed by table, row and cell index, from separate red, green, blue and alpha values.

function engine addons only all signature: confirmed

SetTableCellColor(tableID, rowIndex, cellIndex, r, g, b, a)

Sets the background colour of one table cell, addressed by table, row and cell index, from separate red, green, blue and alpha values. helper.lua reaches for it when a cell's background colour is a function that has just returned something new.

Kindfunction
ParameterstableID number - The ID of the table.
rowIndex number - The index of the row.
cellIndex number - The index of the cell.
r number - The red color value.
g number - The green color value.
b number - The blue color value.
a number - The alpha color value.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 7 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:4283
SetTextengineaddonsallSets the text of a text widget or table cell.

function engine addons only all signature: confirmed

SetText(widgetID, text)

Sets the text of a text widget or table cell. The widget comes **first** and the string second - SetText(private.fpsDebugLogText, " ") - and the first argument is the widget ID a call such as GetCellContent or GetCellText returns, not the widget object. Vanilla records one gotcha in a comment of its own at ego_debuglog/debuglog.lua:1274: passing an empty string does not clear the text, so it passes a single space instead.

Kindfunction
ParameterswidgetID any - The ID of the text widget or table cell.
text string - The text to set.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 9 vanilla call sites, 2 arguments
Seen at ui/addons/ego_debuglog/debuglog.lua:1276, ui/addons/ego_detailmonitorhelper/helper.lua:2646
SetTextColorengineaddonsallSets the colour of a text widget from separate red, green, blue and alpha values.

function engine addons only all signature: confirmed

SetTextColor(elementID, r, g, b, a)

Sets the colour of a text widget from separate red, green, blue and alpha values. Helper.updateCellText uses it to recolour a cell's text in place, after GetCellText has handed it the widget.

Kindfunction
ParameterselementID number - The ID of the text element.
r number - The red color value.
g number - The green color value.
b number - The blue color value.
a number - The alpha color value.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 5 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:2648
setTextLinecorecoreallWrites one left/right text row of the target monitor.

function core core only all signature: from source

setTextLine(lefttext, righttext, component, connection, isoverlay)

Writes one left/right text row of the target monitor. Core Lua environment only - not reachable from the addons Lua environment. A row whose text is live is queued for per-frame update instead of being written once.

Kindfunction
Parameterslefttext table - { element, textdata } for the left half.
righttext table - { element, textdata } for the right half.
component any - The component the row describes.
connection any - The connection the row describes.
isoverlay boolean - Whether the row is drawn in the ticker overlay.
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :2953, 9.00 :2959)
Availabilitycore only
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetTextureColorModeengineallallSwitches an Anark material element between drawing its texture and drawing a flat colour.

function engine all (addons + core) all signature: confirmed

SetTextureColorMode(element, useColor)

Switches an Anark material element between drawing its texture and drawing a flat colour. The core target system sets it on the normal and selected materials of an element together, so both states behave the same way.

Kindfunction
Parameterselement number - The ID of the element.
useColor boolean - true to use the color, false to use the texture.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla call sites, 2 arguments
Seen at ui/core/lua/targetsystem.lua:2993
SetTopRowwidgetaddonsallScrolls a table so a given row is the first one visible.

function widget_fullscreen addons only all signature: from source

SetTopRow(tableID, row)

Scrolls a table so a given row is the first one visible. No vanilla code calls it, but the declaration reports the failure shape the widget API uses elsewhere - nil, an error code and an error message.

Kindfunction
ParameterstableID number - The ID of the table.
row number - The index of the row to set as the top row.
Returnsnil, number, string - @nil, errorcode, errormessage
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setTopRow (8.00 :17839, 9.00 :18828)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SetTrafficDensityOptionengineaddonsallSets the traffic density, and returns nothing.

function engine addons only all signature: confirmed probed: 8.00, 9.00

SetTrafficDensityOption(density)

Sets the traffic density, and returns nothing. Measured to behave identically to SetCharacterDensityOption in every respect - same arity, same float storage, same write-through to config.xml as <trafficdensity>, and the same absence of clamping, 1.5 being taken unchanged. Unlike its twin it has **no MD property and no script reader anywhere**, so a set is unobservable from MD: it is absent from scriptproperties.xml, and md/, aiscripts/ and libraries/ never mention trafficdensity. So the traffic it governs is spawned engine-side, nothing in the game's own scripts consumes the value, and the 0-to-1 convention is inherited from the twin rather than documented for this name. The value is **not save state**; it persists to config.xml and outlives the session.

Kindfunction
Parametersdensity number - Traffic density. 0 to 1 by convention; not clamped.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - 0.5 -> 0.8 -> 1.5 -> 0.5 alongside SetCharacterDensityOption, read back through GetTrafficDensityOption and confirmed in config.xml between steps
SetUISafeModeOptionengineaddonsallTurns UI safe mode on or off - the mode that loads the UI without extensions.

function engine addons only all signature: confirmed

SetUISafeModeOption(enable)

Turns UI safe mode on or off - the mode that loads the UI without extensions. The options menu queues it as a delayed one-time callback and passes not GetUISafeModeOption(), so the option toggles itself after the menu is out of the way.

Kindfunction
Parametersenable boolean - true to enable safe mode, false to disable.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:3380
setValueengineallallWrites a value into an Anark data table.

function engine all (addons + core) all signature: unverified

setValue(table, row, column, value)

Writes a value into an Anark data table. Part of the data-port API around AKDataPort. No vanilla code calls it; unverified.

Kindfunction
Parameterstable any - The data table, as returned by getTable.
row number - Row index.
column any - Column name or index.
value any - The value to store.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageunverified - no vanilla call site
SetVirtualCargoModeengineaddonsallPuts a ship into virtual cargo mode, where the trade dialogue can show a cargo state that has not happened yet.

function engine addons only all signature: confirmed

SetVirtualCargoMode(componentID, enable, tradeCount)

Puts a ship into virtual cargo mode, where the trade dialogue can show a cargo state that has not happened yet. Vanilla passes two arguments to switch it off and three to switch it on, so tradeCount is optional: it is the number of trade computer orders to account for, or -1 for all of them.

Kindfunction
ParameterscomponentID number - The ID of the component.
enable boolean - true to enable virtual cargo mode, false to disable.
tradeCount number optional - The number of trade computer orders to account for, or -1 for all of them. Omitted when disabling.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 8 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:2027, ui/addons/ego_detailmonitor/menu_map.lua:21335
SetVolumeOptionengineaddonsallSets the volume of one sound category.

function engine addons only all signature: confirmed

SetVolumeOption(sfxType, value)

Sets the volume of one sound category. The category is a string, and the value runs 0 to 1 - the options menu divides its 0-100 slider by 100 and rounds to two decimals.

Kindfunction
ParameterssfxType string - The sound category.
value number - Volume in the 0-1 range.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 2 arguments
Seen at ui/addons/ego_gameoptions/gameoptions.lua:9333
SetWidthengineallallSets the width of a text widget in pixels, which is what makes its text wrap at that width.

function engine all (addons + core) all signature: confirmed

SetWidth(widgetID, width)

Sets the width of a text widget in pixels, which is what makes its text wrap at that width.

Kindfunction
ParameterswidgetID any - The boxtext or fontstring widget ID.
width number - The width in pixels.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 2 vanilla call sites, 2 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:13044
ShowHighlightOverlaywidgetaddonsallPuts a highlight overlay up under an id, to be taken down again with RemoveHighlightOverlay.

function widget_fullscreen addons only all signature: from source

ShowHighlightOverlay(id, style)

Puts a highlight overlay up under an id, to be taken down again with RemoveHighlightOverlay. Vanilla passes only the id, so the style this declaration names is optional.

Kindfunction
Parametersid string - The ID of the highlight overlay.
style string optional - The style of the highlight overlay.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.showHighlightOverlay (8.00 :17868, 9.00 :18858)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
SignalObjectengineaddonsallRaises a Mission Director signal on an object: the object, the signal name, and up to two parameters.

function engine addons only all signature: confirmed

SignalObject(objectID, param, param2, param3)

Raises a Mission Director signal on an object: the object, the signal name, and up to two parameters. This is how a menu talks back to MD - "docked_player_trade_added", "npc_mission_delivery", "accept" on a mission offer actor. Vanilla passes two, three or four arguments, so the parameters are optional, and any component among them goes through ConvertStringToLuaID first.

Kindfunction
ParametersobjectID any - The ID of the object to signal.
param string - The parameter to send with the signal (commonly SignalID)
param2 any optional - Optional second signal parameter (commonly a luaID).
param3 any optional - Optional third signal parameter.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 15 vanilla call sites, 2-4 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3656, ui/addons/ego_detailmonitor/menu_map.lua:4155, ui/addons/ego_detailmonitor/menu_map.lua:17734, ui/addons/ego_detailmonitor/menu_missionbriefing.lua:159
StartAutoPilotengineaddonsallFlies **the player's own ship** to the given object under autopilot.

function engine addons only all signature: confirmed probed: 8.00, 9.00

StartAutoPilot(targetID)

Flies **the player's own ship** to the given object under autopilot. The argument is the **destination**, not the ship: GetAutoPilotTarget reads the component straight back out after the call, and the game writes Autopilot engaged followed by the order it issued for the ship the player is piloting. **The order depends on what the destination is**: a station gives Command: Fly to <object>, a ship gives Command: Follow <ship>. A route through gates is planned as needed, and the screen reports Flying to Jump Gate while it runs - the targets measured were 34,627km and 122,094km away, both in another sector. Returns nothing. **The player has to be piloting a ship.** Called from the bridge with no ship under the player, it is accepted silently and nothing happens: no autopilot, no error, and GetAutoPilotTarget still reads nil. StopAutoPilot cancels it, after which GetAutoPilotTarget reads nil again. No vanilla code calls either one; the menus drive the autopilot through the player activity instead.

Kindfunction
ParameterstargetID any - The object to fly to.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - read back through GetAutoPilotTarget, before, after and after StopAutoPilot. On 9.00 the engaged autopilot was also left standing between two clicks rather than cancelled in the same frame, which is the only way the order and the route are visible at all: the read-back alone cannot see them
StartConversationFromMenuengineaddonsallStarts a conversation with an actor from inside a menu.

function engine addons only all signature: confirmed

StartConversationFromMenu(conversationName, actorID, conversationParam)

Starts a conversation with an actor from inside a menu. The parameters have to go through Helper.convertComponentIDs first, and helper.lua wraps the call in a result function so it runs as the menu closes rather than while it is still up.

Kindfunction
ParametersconversationName string - The name of the conversation to start.
actorID any - The ID of the actor to converse with.
conversationParam any optional - Conversation parameters, component IDs already converted.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:1828
StartCutsceneengineallallStarts a cutscene from a descriptor built by CreateCutsceneDescriptor, rendering into the given render target texture, and returns a handle for StopCutscene.

function engine all (addons + core) all signature: confirmed

StartCutscene(descriptor, renderTarget, interruptCinematicMode)

Starts a cutscene from a descriptor built by CreateCutsceneDescriptor, rendering into the given render target texture, and returns a handle for StopCutscene. Every vanilla call passes two arguments, so the cinematic-mode flag is optional.

Kindfunction
Parametersdescriptor table - The cutscene descriptor.
renderTarget any optional - The render target texture to play the cutscene into.
interruptCinematicMode boolean optional - Whether starting the cutscene interrupts cinematic mode.
ReturnscutsceneHandle any - The handle for the started cutscene.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 15 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2390, ui/addons/ego_detailmonitor/menu_playerinfo.lua:4475, ui/addons/ego_detailmonitor/menu_timeline.lua:426, ui/addons/ego_gameoptions/customgame.lua:5131
StartDiplomacyActionOperationengineaddonsallStarts a diplomatic operation - an action ID, the agent who carries it out, its parameters, and optionally a ware to offer as a gift - and returns a handle for the started operation, which the diplomacy menu keeps to follow it.

function engine addons only all signature: confirmed

StartDiplomacyActionOperation(actionID, agentID, parameters, giftWare)

Starts a diplomatic operation - an action ID, the agent who carries it out, its parameters, and optionally a ware to offer as a gift - and returns a handle for the started operation, which the diplomacy menu keeps to follow it.

Kindfunction
ParametersactionID any - The diplomatic action ID.
agentID any - The agent carrying out the operation.
parameters table - The operation parameters.
giftWare any optional - Optional gift ware.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 4 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:464
StartPlayingSoundengineallallStarts a sound and returns a handle for it, for a sound meant to keep playing - the map menu's ambience.

function engine all (addons + core) all signature: confirmed

StartPlayingSound(soundName)

Starts a sound and returns a handle for it, for a sound meant to keep playing - the map menu's ambience. Stop it again with StopPlayingSound and that handle; a one-shot cue uses PlaySound instead, which returns nothing.

Kindfunction
ParameterssoundName string - The name of the sound to play.
ReturnssoundHandle any - The handle for the playing sound.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 11 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:6108
StartSubConversationFromMenuengineaddonsallStarts a sub-conversation from inside a menu - StartConversationFromMenu with the enclosing conversation's base parameter carried along.

function engine addons only all signature: confirmed

StartSubConversationFromMenu(conversationName, actorID, conversationParam, baseParam)

Starts a sub-conversation from inside a menu - StartConversationFromMenu with the enclosing conversation's base parameter carried along. Both parameter sets have to go through Helper.convertComponentIDs, and the call runs as the menu closes.

Kindfunction
ParametersconversationName string - The name of the sub-conversation to start.
actorID any optional - The actor to converse with.
conversationParam any optional - Conversation parameters, component IDs already converted.
baseParam any optional - Base conversation parameters, component IDs already converted.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 4 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:1815
StopAutoPilotengineaddonsallStops the autopilot started by StartAutoPilot, after which GetAutoPilotTarget reads nil and the game writes Autopilot disengaged.

function engine addons only all signature: confirmed probed: 8.00, 9.00

StopAutoPilot()

Stops the autopilot started by StartAutoPilot, after which GetAutoPilotTarget reads nil and the game writes Autopilot disengaged. Takes nothing, returns nothing, and is harmless when the autopilot is already off. No vanilla code calls it, and neither is StartAutoPilot called; the menus stop it through the player activity instead, with C.StopPlayerActivity.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - read back through GetAutoPilotTarget; on 9.00 also against an autopilot that had been running for a while rather than one started in the same frame, and it cancelled that one the same way
StopCutsceneengineallallStops a running cutscene by the handle StartCutscene returned.

function engine all (addons + core) all signature: confirmed

StopCutscene(cutsceneID)

Stops a running cutscene by the handle StartCutscene returned. Vanilla nils its own handle straight afterwards and releases the descriptor with ReleaseCutsceneDescriptor.

Kindfunction
ParameterscutsceneID number - The ID of the cutscene to stop.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 18 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_encyclopedia.lua:2335, ui/addons/ego_detailmonitor/menu_playerinfo.lua:4412, ui/addons/ego_detailmonitor/menu_timeline.lua:62, ui/addons/ego_gameoptions/customgame.lua:703
StopPlayingSoundengineallallStops a looping sound by the handle StartPlayingSound returned.

function engine all (addons + core) all signature: confirmed

StopPlayingSound(soundHandle)

Stops a looping sound by the handle StartPlayingSound returned. Vanilla keeps the handle on the menu (menu.sound_ambient) and nils it after stopping.

Kindfunction
ParameterssoundHandle number - The handle of the sound to stop.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 14 vanilla call sites, 1 argument
Seen at ui/addons/ego_detailmonitor/menu_map.lua:2206, ui/addons/ego_detailmonitor/menu_mapeditor.lua:1429
SwitchInteractiveObjectengineallallSwitch to a different interactive object.

function engine all (addons + core) all signature: confirmed

SwitchInteractiveObject()

Switch to a different interactive object. This function is used to change the current interactive object, typically in response to user input.

Kindfunction
Parametersnone documented
ReturnsnewWidgetID number - The ID of the new interactive widget.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/widget/lua/widget_fullscreen.lua:5480
TargetMonitorInteractionHiddenengineallallTells the game that the target monitor's interaction has gone.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

TargetMonitorInteractionHidden()

Tells the game that the target monitor's interaction has gone. No vanilla code calls it, nor its counterpart TargetMonitorInteractionShown.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
TargetMonitorInteractionHidden2engineallallTakes the interaction off the target monitor.

function engine all (addons + core) all signature: confirmed

TargetMonitorInteractionHidden2(interactionID)

Takes the interaction off the target monitor. Argument 1 is the **integer id** from CreateInteractionDescriptor2; a legacy CreateInteractionDescriptor userdata is refused with invalid parameters. Vanilla pairs it with TargetMonitorInteractionShown2 and then releases the descriptor (monitors.lua:1770-1772). Hiding is **not** a precondition for anything: an interaction that was never shown still raises its event.

Kindfunction
ParametersinteractionID integer - The id of the interaction to hide.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/monitors.lua:1770
TargetMonitorInteractionShownengineallallTells the game that the target monitor's interaction is up.

function engine all (addons + core) all signature: confirmed probed: 8.00, 9.00

TargetMonitorInteractionShown()

Tells the game that the target monitor's interaction is up. No vanilla code calls it, nor its counterpart TargetMonitorInteractionHidden.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - in-game probe, no vanilla call site
Probed in-game8.00, 9.00 - called bare on both versions: accepted with no arity complaint and nothing returned, so no argument is required. Whether it takes an optional one is unmeasured.
TargetMonitorInteractionShown2engineallallTells the game that a target monitor interaction is on screen, with its ID, its text and whether it is a notification - the version the monitor code actually calls, unlike the argument-less TargetMonitorInteractionShown.

function engine all (addons + core) all signature: confirmed

TargetMonitorInteractionShown2(interactionID, interactionText, isNotification)

Tells the game that a target monitor interaction is on screen, with its ID, its text and whether it is a notification - the version the monitor code actually calls, unlike the argument-less TargetMonitorInteractionShown. Argument 1 is the **integer id** from CreateInteractionDescriptor2; a legacy userdata descriptor is refused with invalid parameters. Calling it is **not** what makes an interaction raisable - RaisePlayerInteractionEvent works on a descriptor that was never shown.

Kindfunction
ParametersinteractionID integer - The id from CreateInteractionDescriptor2.
interactionText string - The text of the interaction.
isNotification boolean - Whether the interaction is a notification.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/core/lua/monitors.lua:2770
TestCallbackengineabsentnone⚠ called by vanilla, but never defined and present in neither version

function engine does not exist none signature: confirmed

TestCallback(name)

⚠ called by vanilla, but never defined and present in neither version

The hook the game's unit tests call to report that a test ran - ui/core/lua/unittests.lua calls TestCallback("test1"). **It is never defined**: no vanilla file assigns it and it exists in neither version, so calling unittests.lua outside a test harness would fail on a nil value.

Kindfunction
Parametersname string - The callback name.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilitydoes not exist
vanilla calls it from core
Game versionsin none of 8.00, 9.00
8.00 absent
9.00 absent
Vanilla usageconfirmed - 2 vanilla call sites, 1 argument
Seen at ui/core/lua/unittests.lua:28
ToggleFactionTradeRestrictionengineaddonsallToggles one trade restriction for a faction.

function engine addons only all signature: unverified

ToggleFactionTradeRestriction(factionID, restrictionID)

Toggles one trade restriction for a faction. No vanilla code calls it, and neither is ToggleFactionTradeWareOverride next to it.

Kindfunction
ParametersfactionID string - The ID of the faction.
restrictionID string - The ID of the trade restriction to toggle.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
ToggleFactionTradeWareOverrideengineaddonsallToggles a per-ware trade override for a faction.

function engine addons only all signature: unverified

ToggleFactionTradeWareOverride(factionID, wareID)

Toggles a per-ware trade override for a faction. No vanilla code calls it, and neither is ToggleFactionTradeRestriction next to it.

Kindfunction
ParametersfactionID string - The ID of the faction.
wareID string - The ID of the ware to toggle the override for.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageunverified - no vanilla call site
ToReprStringaddonaddonsallReturns a readable string for any Lua value, tables included.

function addon addons only all signature: from source

ToReprString(value, recursiondepth, indent)

Returns a readable string for any Lua value, tables included. ego_debug/debug.lua:20 defines it at file scope on purpose - vanilla's own comment says it is global "so it can be used in all addons for debugging" - and that is what leaks it into the addons Lua environment. A string comes back quoted through %q; a table is expanded into [key] = value pairs for as many levels as recursiondepth allows, recursing with one less depth and one more DebugConfig.reprIndentStep of indent per level; anything else comes back as tostring. Both trailing parameters default, so vanilla calls it with one, two or three arguments.

Kindfunction
Parametersvalue any - The value to represent.
recursiondepth integer optional - How many table levels to expand. Defaults to DebugConfig.reprRecursionDepth.
indent string optional - Indent prefix for the nested lines. Defaults to the empty string.
Returnsrepr string - The string representation of the value.
Originaddon
ui/addons/ego_debug/debug.lua - top-level function (8.00 :20, 9.00 :20)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
TraceBackengineallallReturns a string containing a traceback of the current execution stack.

function engine all (addons + core) all signature: confirmed

TraceBack()

Returns a string containing a traceback of the current execution stack.

Kindfunction
Parametersnone documented
Returnsstring - The stack traceback.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 10 vanilla call sites, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:3544, ui/core/lua/compass.lua:61, ui/core/lua/crosshair handling.lua:155, ui/core/lua/firstperson_crosshair.lua:63
TransferInventoryToPlayerengineaddonsallTransfers an inventory from a specified container to the player.

function engine addons only all signature: confirmed

TransferInventoryToPlayer(wareID, amount, container)

Transfers an inventory from a specified container to the player.

Kindfunction
ParameterswareID any - The ware to transfer.
amount number - The amount to transfer.
container any - The source container.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_trader_inventory.lua:505
TransferMoneyToPlayerengineaddonsallTransfers a specified amount of money from a source component to the player.

function engine addons only all signature: confirmed

TransferMoneyToPlayer(amount, sourceComponent, reason)

Transfers a specified amount of money from a source component to the player.

Kindfunction
Parametersamount number - The amount of money to transfer.
sourceComponent any - The source component to transfer money from.
reason string optional - Transaction category, e.g. "sellship".
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 10 vanilla call sites, 2-3 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3853, ui/addons/ego_detailmonitor/menu_map.lua:17780, ui/addons/ego_detailmonitor/menu_playerinfo.lua:965, ui/addons/ego_detailmonitor/menu_research.lua:749
TransferPlayerInventoryToengineaddonsallMoves wares out of the player's inventory into a container.

function engine addons only all signature: confirmed

TransferPlayerInventoryTo(wareID, amount, container)

Moves wares out of the player's inventory into a container. The amount is positive: the trader menu negates its own signed amount before passing it, since the sign is what told it which direction the trade went.

Kindfunction
ParameterswareID any - The ware to transfer.
amount number - The amount to transfer (negative in vanilla usage).
container any - The destination container.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_trader_inventory.lua:507
TransferPlayerMoneyToengineaddonsallTransfers a specified amount of money from the player to a destination component.

function engine addons only all signature: confirmed

TransferPlayerMoneyTo(amount, destinationComponent)

Transfers a specified amount of money from the player to a destination component.

Kindfunction
Parametersamount number - The amount of money to transfer.
destinationComponent userdata - The destination component to transfer money to.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 18 vanilla call sites, 2 arguments
Seen at ui/addons/ego_detailmonitor/menu_map.lua:3498, ui/addons/ego_detailmonitor/menu_playerinfo.lua:977, ui/addons/ego_detailmonitor/menu_research.lua:747, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:1385
TruncateTextengineallallTruncates a text string to fit within a given width, using a specified font and font size.

function engine all (addons + core) all signature: confirmed

TruncateText(text, font, fontsize, width, arg5, arg6)

Truncates a text string to fit within a given width, using a specified font and font size.

Kindfunction
Parameterstext string - The text to truncate.
font string - The font name to use for width calculation.
fontsize number - The font size to use for width calculation.
width number - The maximum width the text should occupy.
arg5 any optional - Unidentified in 9.00 vanilla usage; a boolean.
arg6 any optional - Unidentified in 9.00 vanilla usage; a height.
Returnsstring - The truncated text.
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core + widget
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 58 vanilla call sites, 4-6 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:1374, ui/addons/ego_detailmonitor/menu_help.lua:416, ui/addons/ego_detailmonitor/menu_map.lua:9076, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:5459
UninstallSteamDLCengineaddonsallUninstalls a DLC through Steam, by its app ID.

function engine addons only all signature: confirmed

UninstallSteamDLC(dlcID)

Uninstalls a DLC through Steam, by its app ID. The extensions page calls it on an entry that is installed, and installs it the other way round.

Kindfunction
ParametersdlcID string - The ID of the DLC to uninstall.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/addons/ego_gameoptions/gameoptions.lua:13535
UnpauseengineaddonsallUnpauses the game.

function engine addons only all signature: confirmed

Unpause(arg1)

Unpauses the game. Every vanilla caller passes nothing and guards the call with its own menu.paused flag, so the parameter the declaration carries is unexercised.

Kindfunction
Parametersarg1 boolean optional - Unidentified in 9.00 vanilla usage; true.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 7 vanilla call sites, 0-1 arguments
Seen at ui/addons/ego_detailmonitor/menu_scenario_debriefing.lua:75, ui/addons/ego_detailmonitor/menu_ship_configuration.lua:916, ui/addons/ego_gameoptions/customgame.lua:722, ui/addons/ego_gameoptions/gamemodified.lua:112
UnregisterAddonBindingsengineallallUnregisters all key bindings associated with a specific addon.

function engine all (addons + core) all signature: confirmed

UnregisterAddonBindings(addonName, bindingName)

Unregisters all key bindings associated with a specific addon.

Kindfunction
ParametersaddonName string - The name of the addon whose bindings should be unregistered.
bindingName string optional - A single binding to unregister; omit to unregister all of the addon's bindings.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 18 vanilla call sites, 1-2 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:299, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:278, ui/addons/ego_detailmonitor/menu_followcamera.lua:53, ui/addons/ego_detailmonitor/menu_help.lua:78
UnregisterEventwidgetaddonsallRemoves a callback registered with RegisterEvent, by the same event name and function.

function widget_fullscreen addons only all signature: from source

UnregisterEvent(eventName, scriptFunction)

Removes a callback registered with RegisterEvent, by the same event name and function. Menus unregister every event they registered in their cleanup - passing the same function reference, not a copy.

Kindfunction
ParameterseventName string - The name of the event.
scriptFunction function - The callback function to unregister.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :17984, 9.00 :18977)
ui/widget/lua/widget_fullscreen.lua - MakeGlobalAvailable (8.00 :17999, 9.00 :18992)
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
unregisterForChangeengineallallRemoves an attribute watch added with registerForChange, by the same element, attribute and function.

function engine all (addons + core) all signature: confirmed

unregisterForChange(element, attribute, callback)

Removes an attribute watch added with registerForChange, by the same element, attribute and function. Anark behaviours undo their watches in self:onDeactivate(), one call per attribute they registered.

Kindfunction
Parameterselement any - The scene element.
attribute string - The watched attribute.
callback function - The handler to remove.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 13 vanilla call sites, 3 arguments
Seen at ui/core/lua/counteract rotation.lua:44, ui/core/lua/propagate attribute.lua:59, ui/core/lua/write text.lua:62
unregisterForEventengineallallRemoves a callback registered with registerForEvent, by the same event, element and function.

function engine all (addons + core) all signature: confirmed

unregisterForEvent(event, element, callback)

Removes a callback registered with registerForEvent, by the same event, element and function. Every menu that registers on the UI contract unregisters in its cleanup - passing getElement("Scene.UIContract") again, since the element is part of the identity.

Kindfunction
Parametersevent string - The event name.
element any - The element raising the event.
callback function - The handler to remove.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons + core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 18 vanilla call sites, 3 arguments
Seen at ui/addons/ego_detailmonitor/menu_diplomacy.lua:297, ui/addons/ego_detailmonitor/menu_docked.lua:248, ui/addons/ego_detailmonitor/menu_encyclopedia.lua:275, ui/addons/ego_detailmonitor/menu_help.lua:75
UnregisterMouseInteractionsengineallallTakes an element out of mouse interaction again, the counterpart of RegisterMouseInteractions.

function engine all (addons + core) all signature: confirmed

UnregisterMouseInteractions(element)

Takes an element out of mouse interaction again, the counterpart of RegisterMouseInteractions. Core code unregisters element by element as a panel goes away.

Kindfunction
Parameterselement any optional - The element whose mouse interactions are unregistered.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 5 vanilla call sites, 1 argument
Seen at ui/core/lua/crosshair handling.lua:2205, ui/core/lua/monitors.lua:1826, ui/core/lua/targetsystem.lua:3897
UnsetPointerOverrideengineallallClears the pointer override on an element.

function engine all (addons + core) all signature: confirmed

UnsetPointerOverride(element)

Clears the pointer override on an element. The core target system walks every pick element of a target and clears them one at a time when the target is dropped.

Kindfunction
Parameterselement any optional - The element whose pointer override is removed.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 1 argument
Seen at ui/core/lua/targetsystem.lua:4382
UnsuspendConversationengineallallResumes a conversation that was suspended while a menu was up.

function engine all (addons + core) all signature: confirmed

UnsuspendConversation()

Resumes a conversation that was suspended while a menu was up. helper.lua queues it as a one-time update callback rather than calling it inline, because what follows it has to happen after the conversation is running again.

Kindfunction
Parametersnone documented
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 1 vanilla call site, 0 arguments
Seen at ui/addons/ego_detailmonitorhelper/helper.lua:1941
UpdateFrameengineaddonsallRebuilds one frame from its descriptor and returns the new frame, without tearing the whole view down.

function engine addons only all signature: confirmed

UpdateFrame(frameDesc, suppressDisplayErrors, hasPlayerControls, useMiniWidgetSystem, startAnimation, keepHUDVisible, keepCrosshairVisible, showTickerPermanently, blurBackground, usePanelMode)

Rebuilds one frame from its descriptor and returns the new frame, without tearing the whole view down. The nine flags after the descriptor are the same ones CreateView and CloseFrame take, because updating a frame re-evaluates what stays on screen around it. The view helper is the only vanilla caller.

Kindfunction
ParametersframeDesc any - The frame descriptor to update.
suppressDisplayErrors boolean optional - Whether display errors are suppressed.
hasPlayerControls boolean optional - Whether the player has control.
useMiniWidgetSystem boolean optional - Whether to use the mini widget system.
startAnimation boolean optional - Whether to start the frame animation.
keepHUDVisible boolean optional - Whether to keep the HUD visible.
keepCrosshairVisible boolean optional - Whether to keep the crosshair visible.
showTickerPermanently boolean optional - Whether to show the ticker permanently.
blurBackground boolean optional - Whether to blur the background.
usePanelMode boolean optional - Whether to use panel mode.
Returnsnone documented
Originengine
injected by the executable; defined in no .lua file
Availabilityaddons only
vanilla calls it from addons
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Vanilla usageconfirmed - 1 vanilla call site, 10 arguments
Seen at ui/addons/ego_viewhelper/viewhelper.lua:63
UpdateInputBarwidgetaddons≥ 9.00Replaces the contents of the input bar that CreateInputBar put up, without rebuilding it.

function widget_fullscreen addons only ≥ 9.00 signature: from source

UpdateInputBar(inputsLeft, inputsRight)

Replaces the contents of the input bar that CreateInputBar put up, without rebuilding it. New in 9.00. helper.lua uses it when the bar already exists and creates one otherwise.

Kindfunction
ParametersinputsLeft table - Input descriptors shown on the left.
inputsRight table - Input descriptors shown on the right.
Returnsnone documented
Originwidget_fullscreen
ui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.updateInputBar (9.00 :18864)
Availabilityaddons only
vanilla calls it from addons
Game versionsnew in 9.00
8.00 absent
9.00 NEW in 9.00 - addons
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
updateInteractiveTextcorecoreallRefreshes the target monitor's "Press <key>" interaction hint.

function core core only all signature: from source

updateInteractiveText()

Refreshes the target monitor's "Press <key>" interaction hint. Core Lua environment only - not reachable from the addons Lua environment. Does nothing unless config.displayPressHint is set.

Kindfunction
Parametersnone documented
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :2735, 9.00 :2741)
Availabilitycore only
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
updateRadarExtentscorecoreallRecomputes the screen extents of the radar and the message ticker.

function core core only all signature: from source

updateRadarExtents()

Recomputes the screen extents of the radar and the message ticker. Core Lua environment only - not reachable from the addons Lua environment. Chooses between the separate radar and the radar drawn inside the ticker, and pushes the result to SetMonitorExtents.

Kindfunction
Parametersnone documented
Returnsnone documented
Origincore
ui/core/lua/monitors.lua - top-level function (8.00 :2042, 9.00 :2048)
Availabilitycore only
vanilla calls it from core
Game versionsin every covered version (8.00, 9.00)
8.00 present - core
9.00 present - core
Signaturefrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.
VectorengineallallAnark 3-component vector class.

table engine all (addons + core) all usage: confirmed

Vector = {}

Anark 3-component vector class. Instantiate with Vector:new(). Fields x, y, z; methods set(x, y, z), setVector(v), subtract(v) and transform(matrix). See ui\core\lua\billboard.lua.

Kindtable
Originengine
injected by the executable; defined in no .lua file
Availabilityall (addons + core)
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons + core
9.00 present - addons + core
Vanilla usageconfirmed - 3 vanilla references
Seen at ui/core/lua/billboard.lua:46
ViewaddonaddonsallThe view helper, which owns the frames of the currently displayed view.

table addon addons only all declaration: from source

View = {}

The view helper, which owns the frames of the currently displayed view.

Kindtable
ViewcurrentFrames number - Frames rendered since the view was displayed.
maxFrames number - Frame budget before the view is considered settled.
menus table - The menus taking part in the view.
frames table - The frames of the view.
viewDescriptor any - The descriptor the view was created from.
displayView function - Displays the view.
updateMenu function - Updates one participating menu.
closeFrames function - Closes the view's frames.
hideView function - Hides the view.
Originaddon
ui/addons/ego_viewhelper/viewhelper.lua - table assignment (8.00 :12, 9.00 :12)
Availabilityaddons only
no vanilla call site in either version
Game versionsin every covered version (8.00, 9.00)
8.00 present - addons
9.00 present - addons
Declarationfrom source - taken from the definition the Origin row names, so nothing has to be inferred from call sites.