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.
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.
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.
| Origin | engine 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. |
|---|---|
| Availability | all 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. |
| Signature | confirmed 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 versions | Which 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. |
| Deprecated | deprecated: 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. |
| Probed | probed: 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. |
| Copying | An open card carries Copy name, Copy signature and Copy link; the last gives a URL that reopens that card. |
| Saved | saved - 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. |
__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.
| Kind | table |
|---|---|
| __CORE_CHAT_WINDOW | version 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 variable | userdata 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. |
| Origin | addonui/addons/ego_chatwindow/chatwindow.lua - table assignment (8.00 :74 :77, 9.00 :76 :79) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| __CORE_DEBUGLOG_LOG | version number - Data version.lastClear table - { major, minor } of the last clear.data table - The log entries. |
| Saved variable | userdata 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. |
| Origin | addonui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| __CORE_DETAILMONITOR_MAPEDITOR | opacity number - Map-editor overlay opacity, 0-100. |
| Saved variable | userdata 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. |
| Origin | addonui/addons/ego_detailmonitor/menu_mapeditor.lua - table assignment (8.00 :173, 9.00 :166) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| Saved variable | userdata 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. |
| Origin | addonui/addons/ego_detailmonitor/menu_map.lua - table assignment (8.00 :1737, 9.00 :1865) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| Saved variable | savegame 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. |
| Origin | addonui/addons/ego_detailmonitor/menu_map.lua - table assignment (8.00 :1817, 9.00 :1949) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| __CORE_DETAILMONITOR_SHIPBUILD | version number - Data version.showStats2 string - Stats panel mode, e.g. limited.showStatsPaintMod2 string - Paint-mod stats mode, e.g. hidden. |
| Saved variable | userdata 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. |
| Origin | addonui/addons/ego_detailmonitor/menu_ship_configuration.lua - table assignment (8.00 :846, 9.00 :894) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| __CORE_DETAILMONITOR_STATIONBUILD | version 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 variable | userdata 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. |
| Origin | addonui/addons/ego_detailmonitor/menu_station_configuration.lua - table assignment (8.00 :378, 9.00 :503) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| Saved variable | userdata 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. |
| Origin | addonui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | boolean |
|---|---|
| Saved variable | userdata 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. |
| Origin | addonui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :3435 :3487 :5234, 9.00 :3341 :3395 :5140) |
| Availability | addons only no vanilla call site in either version |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| __CORE_GAMEOPTIONS_RESTOREINFO | history table - The menu's page history.optionParameter any - Parameter of the option to restore.returnhistory any - Cleared on init. |
| Saved variable | userdata 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. |
| Origin | addonui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :418, 9.00 :420) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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).
| Kind | table |
|---|---|
| __CORE_GAMEOPTIONS_VENTURECONFIG | allow_validation anyallow_update anyallow_update_once any |
| Saved variable | userdata 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. |
| Origin | addonui/addons/ego_gameoptions/gameoptions.lua - table assignment (8.00 :420 :3029, 9.00 :422 :2933) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| Saved variable | savegame 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. |
| Origin | addonui/addons/ego_helptext/helptext.lua - table assignment (8.00 :38, 9.00 :37) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| Saved variable | savegame 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. |
| Origin | addonui/addons/ego_helptext/helptext.lua - table assignment (8.00 :39 :234, 9.00 :38 :233) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | table |
|---|---|
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - table assignment (8.00 :346, 9.00 :430) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any - The edit box widget to activate.cursorPos number optional - Cursor position to place the caret at.shiftStartPos number optional - Selection anchor position. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.activateEditBox (8.00 :17845, 9.00 :18834)maps to widgetSystem.activateEditBox |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | sliderCell table - The slider cell widget to activate. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.activateSliderCellInput (8.00 :17866, 9.00 :18856)maps to widgetSystem.activateSliderCellInput |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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).
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | name string - The name to expose the function under.func function - The Lua function to expose. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :352, 9.00 :436) |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | category string - The category of the item (e.g., "wares", "factions").itemID string - The ID of the item to unlock. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | factionID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | category 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | containerID any - The container whose account to change, as a 64-bit component ID.amount number - The amount to add. Negative takes it away. |
| Returns | transferred number - The amount actually moved. Nothing is returned when the call is refused. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | tradeOfferID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | menuName string - The name of the menu or UI area where the event occurred.eventName string - The name of the event. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | defensibleID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | text string - The string to adjust. |
| Returns | string - The adjusted string. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllable any - The controllable whose subordinates are signalled.entity any - A control entity. Mandatory, and not read. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | userdata |
|---|---|
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | userdata |
|---|---|
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | defencenpcID any - The defence NPC entity to signal. Any entity is accepted; a controllable is not. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | box any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | opacity number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.matrix any - The matrix to populate. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | eventName string - The name of the event to trigger.argument1 any - An argument to pass to the event scripts. |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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", ...).
| Kind | function |
|---|---|
| Parameters | action string - The hotkey action that was triggered. |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | direction string - The direction of the scroll ("left" or "right"). |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | widgetID table - The widget to which the event is sent.eventName string - The name of the event (e.g., "onClick", "onTextChanged"). |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | subordinateID any - The controllable that would be subordinate.commanderID any - The controllable that would command it. |
| Returns | canBeSubordinate boolean - True when the two classes are compatible - not that the assignment is allowed. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | cancelled boolean - false when there was no conversation to cancel. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | editBoxID table - The edit box widget to cancel input for. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.cancelEditBoxInput (8.00 :17844, 9.00 :18833)maps to widgetSystem.cancelEditBoxInput |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | tradeOfferID 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. |
| Returns | boolean - True if the trade is possible. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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).
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component. |
| Returns | boolean - True if live data can be viewed. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean - True if a regression is detected. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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).
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component (e.g., a ship or station).wareID string - The ID of the ware to check. |
| Returns | boolean - True if the component can transport the ware. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | containerID any - The ID of the container.wareID string - The ID of the ware. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | containerID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | age 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | shipID any - The ship whose trade queue should be cleared. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | x0 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. |
| Returns | number, number, number, number - The clipped line coordinates (x0, y0, x1, y1). |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | master any - The element to clone.name string optional - Name for the clone. |
| Returns | element any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | dropdownID table - The dropdown widget to close. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.closeDropDownOptions (8.00 :17859, 9.00 :18848)maps to widgetSystem.closeDropDownOptions |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | frameID any - The ID of the frame to close.hasPlayerControls booleanstartAnimation booleanuseMiniWidgetSystem booleankeepHUDVisible booleankeepCrosshairVisible booleanshowTickerPermanently booleanblurBackground boolean optionalusePanelMode boolean optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | table |
|---|---|
| Origin | widget_fullscreenui/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) |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Declaration | from 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.
| Kind | table |
|---|---|
| Origin | widget_fullscreenui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | function |
|---|---|
| Parameters | numgates 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. |
| Returns | shorter boolean - True when the first route is strictly shorter than the second. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | table |
|---|---|
| Origin | widget_fullscreenui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | function |
|---|---|
| Parameters | editBoxID table - The edit box widget to confirm. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.confirmEditBoxInput (8.00 :17843, 9.00 :18832)maps to widgetSystem.confirmEditBoxInput |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | id any - The component, object, or ID to convert. |
| Returns | integer64 - The 64-bit integer representation of the ID. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | number 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) |
| Returns | string - The formatted number as a string. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | difficulty number|string - The difficulty level of the mission (e.g., 1, "easy", "hard"). |
| Returns | localizedName string - The localized string for the difficulty (e.g., "Easy", "Very Hard").mouseOverText string - The tooltip text for the difficulty. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | money 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) |
| Returns | string - The formatted currency string. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | idString string - The string to convert. |
| Returns | integer64 - The resulting 64-bit integer ID. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | idString string - The string representation of the game ID. |
| Returns | any - The Lua object ID, likely a specific userdata type. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | time 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. |
| Returns | string - The formatted time string. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component any - The component whose default order parameters are to be copied. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | axisproperty table - The axis property, with startvalue, endvalue, granularity, |
| Returns | info table |
| Origin | addonui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3559, 9.00 :3743) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | text 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 }). |
| Returns | widget table - The created box text widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | properties table optional - A table of properties for the button (e.g., { active, mouseOverText, icon, onClick, height, width }). |
| Returns | widget table - The created button widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | checked 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 }). |
| Returns | widget table - The created checkbox widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | cutsceneKey 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'. |
| Returns | descriptor table - The created cutscene descriptor table. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | options 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 }). |
| Returns | widget table - The created dropdown widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | properties table optional - A table of properties for the edit box (e.g., { description, defaultText, textHidden, onTextChanged, onConfirmed }). |
| Returns | widget table - The created edit box widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | descriptor table - A descriptor table containing all properties for the flowchart (nodes, edges, layout, etc.). |
| Returns | widget table - The created flowchart widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | descriptor table - A descriptor table containing properties for the edge (e.g., source and target nodes). |
| Returns | widget table - The created flowchart edge widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | descriptor table - A descriptor table containing properties for the node (e.g., text, position, size, content). |
| Returns | widget table - The created flowchart node widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | text 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 }). |
| Returns | descriptor table - The created font string descriptor. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | children 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 }. |
| Returns | widget table - The created frame widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | descriptor table - A descriptor table containing all properties for the frame (e.g., { children, layer, width, height, x, y }). |
| Returns | widget table - The created frame widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | textureproperty table - The texture property, with icon, color, width, height, |
| Returns | info table |
| Origin | addonui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3532, 9.00 :3716) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | properties table - A table of properties for the graph (e.g., { height, scaling, data }). |
| Returns | widget table - The created graph widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | icon 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 }). |
| Returns | widget table - The created icon widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | height number - Bar height.inputsLeft table - Input descriptors shown on the left.inputsRight table - Input descriptors shown on the right. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.createInputBar (9.00 :18863) |
| Availability | addons only vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | interaction string - The interaction name, e.g. "object interaction".payload any - That interaction's payload. Mandatory, unvalidated. |
| Returns | descriptor userdata - A legacy descriptor no current call accepts. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | deprecated in every covered version (8.00, 9.00) 8.00 deprecated 9.00 deprecated |
| Deprecated | 3.00 Beta 6 - superseded by CreateInteractionDescriptor2; the descriptor type changed with it, so nothing in the current pipeline accepts what this one returns |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | interaction string - The interaction name the MD handler listens for.component any - The payload handed to that handler as event.param2. |
| Returns | interactionID integer |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | object any - The game object to display.clusterMacro string - The macro for the presentation cluster environment (e.g., "cluster_black_wlight_bg_macro"). |
| Returns | cluster table - The created presentation cluster.presentationObject any - The handle to the new object inside the cluster. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllable 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. |
| Returns | orderIndex integer |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widget table - The widget whose helpOverlay* properties are read. |
| Returns | info table|nil |
| Origin | addonui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3511, 9.00 :3695) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | width 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. |
| Returns | widget table - The created render target widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | shield 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 }). |
| Returns | widget table - The created shield/hull bar widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | sinkName 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | properties table - A table of properties for the slider (e.g., { min, max, start, step, onValueChanged }). |
| Returns | widget table - The created slider cell widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | sourceName string - The unique name for the source (e.g., "basic", "missionobjective"). |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| StatusBarProperties | current numberstart numbermax numbercellBGColor any optionalvalueColor any optionalposChangeColor any optionalnegChangeColor any optionalmarkerColor any optionalwidth number optionalx number optionalscaling boolean optionalheight number optional |
| Parameters | properties StatusBarProperties |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| InitialSelection | selectedcol integer optional |
| Parameters | header table|stringtableContent tablecolumnWidths table|numbercolumnWidthPercent boolean optionalborderEnabled boolean optionaltabOrder any optionalskipTabChange boolean optionaldefaultInteractiveObject boolean optionalnumFixedRows integer optionaloffsetX number optionaloffsetY number optionalmaxHeight number optionalinitialSelection InitialSelection|table optionalwraparound boolean optionalhighlightMode any optionalmultiselect boolean optionalbackgroundID any optionalbackgroundColor any optionalhelpOverlay any optionalbackgroundPadding any optionalrowGroups table optionalborderID any optional |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | frameDescriptors tableexclusiveInteractions booleancloseOnUnhandledClick booleanuseMiniWidgetSystem booleanstartAnimation booleankeepHUDVisible booleankeepCrosshairVisible booleanshowTickerPermanently booleanblurBackground boolean optionalusePanelMode boolean optional |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | view any |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | table |
|---|---|
| DebugConfig | enabled boolean - Whether debug input handling is active.reprRecursionDepth number - Table recursion depth used by ToReprString.reprIndentStep string - Indent added per level by ToReprString. |
| Origin | addonui/addons/ego_debug/debug.lua - table assignment (8.00 :1, 9.00 :1) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | function |
|---|---|
| Parameters | message string |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | profileName string |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | profileName string |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | cluster any |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | viewDescriptor anysuppressDisplayErrors boolean optionalhasPlayerControls boolean optional |
| Returns | any ... |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | radiusZ numberradiusY numbercenterX numbercenterY numberz numbercolor any |
| Returns | any |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → function (...) return widgetSystem.queueShapeDraw("circle", ...) end (8.00 :17849, 9.00 :18838) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | width numberheight numberoffsetX numberoffsetY numberangle numberz numbercolor any |
| Returns | any |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → function (...) return widgetSystem.queueShapeDraw("rectangle", ...) end (8.00 :17846, 9.00 :18835) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | width numberheight numberoffsetX numberoffsetY numberangle numberz numbercolor any |
| Returns | any |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → function (...) return widgetSystem.queueShapeDraw("triangle", ...) end (8.00 :17852, 9.00 :18841) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | command stringparameter string optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | page integer|string - The text page id. Strings are coerced - ("1001", "2954") works.line integer|string - The text line id within that page. |
| Returns | text string? - The text when it exists, nil when it does not. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | startSector any - The sector to start from, as a 64-bit component ID.endSector any - The sector to reach, as a 64-bit component ID. |
| Returns | numgates number - The gate transitions between the two sectors.numjumps number - The jumps needed. 0 in every sample measured so far. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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-game | 8.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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element to raise the event on.event string - The event name. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | presentation any - The presentation.event string - The event name. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | event string - The event name. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component anykey string |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | messageID any |
| Returns | string, boolean, integer, boolean, any, any, integer, any, any, any, any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | fontStringID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllable any |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| ExtensionSetting | enabled boolean - Whether the extension is enabled.sync boolean - Whether the extension is synced. |
| Parameters | none documented |
| Returns | table<integer, ExtensionSetting> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | statIDs string[] - Every statistics ID, as declared in libraries/stats.xml. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 1 vanilla call site, 0 arguments Seen at ui/addons/ego_detailmonitor/menu_playerinfo.lua:2525 |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| WeaponEntry | component 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. |
| MissileEntry | macro string - The missile macro name.name string - The missile's displayed name.speed number - Missile range.damage number - Explosion damage.amount number - Number carried. |
| WeaponData | weapons WeaponEntry[] - The primary weapons.missiles MissileEntry[] - The missiles. |
| Parameters | component any - The destructible to inspect. |
| Returns | WeaponData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container any |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.attribute string - Attribute path, e.g. "position.z". |
| Returns | value any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| BonusContentEntry | appid 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. |
| Parameters | none documented |
| Returns | BonusContentEntry[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container any - The container to ask about. |
| Returns | number ... - One value per requested property, in order. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | component any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component any - The component to ask about.unused1 any - Inert, but the call needs three arguments.unused2 any - Inert, but the call needs three arguments. |
| Returns | seconds number - The macro's <production time>, or 0 if its ware has none. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| BuilderMacro | macro string - The macro name.name string - The macro's displayed name. |
| Parameters | containerID any - The container or build module to ask about. |
| Returns | BuilderMacro[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | containerID any - The container or build module that would build it.macro string - A macro the builder can build, from GetBuilderMacros. |
| Returns | method string - The production method, <macro>.<method>. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | boolean, any, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | any, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any |
| Returns | number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component anyincludeSubordinates boolean optional |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableObj anyrow integercol integer |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableObj anyrow integercol integer |
| Returns | string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | density number - Characters on platforms. 0 to 1 by convention; the setter does not clamp. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | frame any |
| Returns | any ... |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | children table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | includeHighways boolean optional |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| CollectableWare | ware string - The ware id.amount number - The amount held. |
| CollectableData | type 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. |
| Parameters | component any - The collectable to inspect. |
| Returns | CollectableData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | fontStringID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | table any - The data table, as returned by getTable.column any - Column name or index. |
| Returns | column any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | table any - The data table, as returned by getTable. |
| Returns | names table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | controllableid anyfleetUnitID any optional |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllableid any - The controllable whose commander to ask about. |
| Returns | commanderNPC any - The direct commander's pilot, class npc; nothing at the top of the chain. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | component any |
| Returns | any ... - One value per name, in the order asked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentid anyfont 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. |
| Returns | string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | owner string |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | owner stringcontainer any optional |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | space 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. |
| Returns | ships table - Array of ship components. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | owner 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. |
| Returns | ships table - Array of ship components. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | owner string - The faction id, e.g. "player". |
| Returns | spaces table - Array of space components. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | container anyincludeGates boolean optional |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | owner stringcontainer any optionalincludeGates boolean optional |
| Returns | table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container anyware anyisBuy booleanuseBuildPrice boolean optional |
| Returns | number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentid anyclassname stringincludeSelf boolean optional |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | string - mode, number? angle |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controlPost string - An id from libraries/posts.xml. |
| Returns | any ... - One value per name, in the order asked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | string, number |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getCurrentMouseOverFont (8.00 :17872, 9.00 :18862) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getCurrentMouseOverWidth (8.00 :17871, 9.00 :18861) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | index anyslide string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | format stringtimestamp number optional |
| Returns | string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | index integer |
| Returns | string - text, boolean selectable, boolean immediate, string shortcutKey, string mouseOverText |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | operationID integer - The operation ID. |
| Returns | values table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | actionID any - The diplomatic action ID. |
| Returns | parameters table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | any, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | boolean, any, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | editBoxID any |
| Returns | number, number, number, number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | destructible any - The destructible to ask about. |
| Returns | upgrades table - Empty in every measured case; the element type is unmeasured. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | seconds number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | name string - Element name or dotted path, e.g. "Scene.UIContract".parent any optional - Parent element to search within; searches the scene root when omitted. |
| Returns | element any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | type string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | entityType string - An id from libraries/entitytypes.xml. |
| Returns | any ... - One value per name, in the order asked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | messageID any |
| Returns | string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | messageID number - The ID of the error message. |
| Returns | severity number - 0 info, 1 master info, 2 error, 3 optional assertion, 4 assertion, 5 panic. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | messageID number - The ID of the error message. |
| Returns | timestamp any - The timestamp of the error. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| ExtensionDependency | id string - The dependency's extension id.name string - The dependency's name.version string - The required version. |
| ExtensionEntry | id 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. |
| Parameters | none documented |
| Returns | extensions ExtensionEntry[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | arg1 string - A string parameter (purpose unclear from usage).arg2 boolean - A boolean parameter (purpose unclear from usage). |
| Returns | warning string|nil - The warning text, or nil if no warning is present. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | faction string - The ID of the faction. |
| Returns | any - ... The requested faction data. The number and types of return values depend on the keys provided. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widgetID any - The ID of the flowchart widget. |
| Returns | flowchartData table - A table with flowchart data, including fields like selectedRow, selectedCol, firstVisibleRow, firstVisibleCol. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | flowchartEdgeID any - The ID of the flowchart edge. |
| Returns | edgeData table - The data for the specified edge. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widgetID any - The ID of the flowchart widget.edgeIdx number - The index of the edge. |
| Returns | edgeID any - The ID of the specified edge. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | flowchartID any - The ID of the flowchart. |
| Returns | firstVisibleRow number - The row of the first visible cell.firstVisibleCol number - The column of the first visible cell. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getFlowchartFirstVisibleCell (8.00 :17864, 9.00 :18854) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | flowchartNodeID any - The ID of the flowchart node. |
| Returns | nodeData table - The data for the specified node. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | flowchartNodeID any - The ID of the flowchart node. |
| Returns | frameData table - The data for the expanded frame. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getFlowchartNodeExpandedFrameData (8.00 :17863, 9.00 :18853) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | flowChartID any - The ID of the flowchart widget.row number - The row of the node.col number - The column of the node. |
| Returns | nodeID any - The ID of the specified node. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | flowchartID any - The ID of the flowchart. |
| Returns | selectedRow number - The row of the selected cell.selectedCol number - The column of the selected cell. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getFlowchartSelectedCell (8.00 :17865, 9.00 :18855) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | fontStringID any - The ID of the font string. |
| Returns | font string - The name of the font.size number - The size of the font. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | fontName string - The name of the font.fontSize number - The size of the font. |
| Returns | fontHeight number - The height of the font. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | fov number - The current FOV value. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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)
| Kind | function |
|---|---|
| Parameters | frameID any - The ID of the frame. |
| Returns | backgroundID any - The background ID of the frame. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | frameID any - The ID of the frame. |
| Returns | layer number - The layer of the frame. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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)
| Kind | function |
|---|---|
| Parameters | frameID any - The ID of the frame. |
| Returns | overlayID any - The overlay ID of the frame. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | frameID any - The ID of the frame. |
| Returns | x number - The x-coordinate of the frame.y number - The y-coordinate of the frame. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | shipID any - The ID of the ship.ware string - The ware to check. |
| Returns | freeCargo number - The amount of free cargo space. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | shipID any - The ID of the ship. |
| Returns | freeUnitStorage number - The amount of free unit storage. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | fullscreen boolean - True if fullscreen is enabled.borderless boolean - True if borderless window is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | gamepadMode number - The current gamepad mode. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | gamma number - The current gamma value. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | space 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. |
| Returns | gates table - Array of gate components. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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).
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | quality number - The current graphics quality setting. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | syncSetting any - The current global sync setting. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | glowOption number - The current glow option. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The ID of the table. |
| Returns | header any - The header of the table. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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".
| Kind | function |
|---|---|
| LicenceEntry | id 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. |
| Parameters | faction string - The faction id that holds the licences, e.g. "player". |
| Returns | licences LicenceEntry[] - Empty when the faction holds none - and equally when the argument is wrong. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | position any - The identifier for the hint's position. |
| Returns | position_x number - The x-coordinate.position_y number - The y-coordinate. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| HoloMapColor | r integer - Red, 0-255.g integer - Green, 0-255.b integer - Blue, 0-255.a integer - Alpha, 0-100 - not 0-255. |
| Parameters | none documented |
| Returns | productionColor HoloMapColorbuildColor HoloMapColorstorageColor HoloMapColorradarColor HoloMapColordroneDockColor HoloMapColorefficiencyColor HoloMapColordefenceColor HoloMapColorplayerColor HoloMapColorfriendColor HoloMapColorenemyColor HoloMapColormissionColor HoloMapColorcurrentPlayerShipColor HoloMapColorvisitorColor HoloMapColorlowAlertColor HoloMapColormediumAlertColor HoloMapColorhighAlertColor HoloMapColorgateColor HoloMapColorhighwayGateColor HoloMapColormissileColor HoloMapColorsuperhighwayColor HoloMapColorhighwayColor HoloMapColorhostileColor HoloMapColor |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | iconID any - The ID of the icon. |
| Returns | textureName 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| InputBinding | no fields |
| Parameters | default boolean optional - If true, gets the default map. |
| Returns | actions table<integer, InputBinding[]> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| InputProfile | id 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. |
| Parameters | none documented |
| Returns | inputProfiles InputProfile[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | default boolean optional - If true, gets the default map. |
| Returns | ranges table<integer, InputBinding[]> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | default boolean optional - If true, gets the default map. |
| Returns | states table<integer, InputBinding[]> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | frameID any - The ID of the frame. |
| Returns | interactiveWidgetID any - The ID of the interactive widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| InventoryWare | name string - The ware's displayed name.amount number - The amount held.price number - The ware's price. |
| Parameters | entityID any - The entity whose inventory to read. |
| Returns | inventory table<string, InventoryWare> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | rangeID any - The ID of the control range. |
| Returns | isInverted boolean - True if the control is inverted. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| JoystickSlot | name 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. |
| Parameters | none documented |
| Returns | joysticks table<integer, JoystickSlot> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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)
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | legacyShadersEnabled boolean - True if legacy shaders are enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| LibraryItem | id 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 : LibraryItem | relation number - The player's relation to the faction. |
| Parameters | libraryName string - The name of the library to retrieve, e.g. "factions" or "stationtypes". |
| Returns | library LibraryItem[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| LibraryEntryBase | name 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 : LibraryEntryBase | factionid 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 : LibraryEntryBase | price number optional - The licence price.minrelation number optional - The minimum relation required.issellable boolean optional - Whether the licence can be bought. |
| LibraryEntryShip : LibraryEntryBase | hull 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 : LibraryEntryBase | hull 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 : LibraryEntryBase | 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. |
| LibraryEntryWeapon : LibraryEntryBase | range 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 : LibraryEntryWeapon | 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. |
| LibraryEntryMissile : LibraryEntryBase | speed 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 : LibraryEntryBase | hull 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 : LibraryEntryBase | avgprice 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. |
| LibraryEntry | name 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. |
| Parameters | libraryName string - The name of the library.entryID any - The ID of the entry to retrieve. |
| Returns | entry LibraryEntry - The union of every library's fields; pass a literal library name for a narrow type. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | libraryName string - The name of the library. |
| Returns | size number - The number of entries in the library. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | placeholder 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. |
| Returns | data string - The resolved text to substitute for the token. |
| Origin | addonui/addons/ego_targetmonitor/targetmonitor.lua - top-level function (8.00 :1047, 9.00 :1052) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | dataName string - The name of the data to retrieve (e.g., "targetmonitorstate").component string - The component requesting the data.connection any - The connection context. |
| Returns | data any - The live data. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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 _.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | text 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | inputType string - The type of input (e.g., "action").inputID any - The ID of the input. |
| Returns | keyName string - The localized name of the key. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | code any - The raw key code. |
| Returns | keyName string - The localized name of the key. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | x number - The x-coordinate of the mouse click.y number - The y-coordinate of the mouse click. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | x number - The x-coordinate of the mouse.y number - The y-coordinate of the mouse. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | lod number - The current LOD value. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| LogbookEntry | title 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. |
| Parameters | startIndex number - The starting index for retrieval.numQuery number - The number of entries to query.category any - The category of logbook entries to retrieve. |
| Returns | logbook LogbookEntry[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | macro string - The name of the macro. |
| Returns | any ... - One value per name, in the order asked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | macro any - The macro to check. |
| Returns | capacity number - The unit storage capacity. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | mappedjoysticks table - A table of mapped joysticks. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | text 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. |
| Returns | maxLength number - How many characters of text fit into width. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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)
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | params table - The menu parameters. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | name string - The name of the menu.param any - The first parameter.param2 any - The second parameter. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | messageID any - The ID of the message.category any - The category of the message. |
| Returns | cutsceneparameter any - The cutscene parameter. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | messageID any - The ID of the message. |
| Returns | x2d 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | macro string - The macro name of the ship to ask about. |
| Returns | macros string[] - The mining unit macros, empty when the macro carries none. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | mission any - The mission identifier. |
| Returns | missionID anyname stringdescription stringdifficulty anythreadType anymainType anysubtype anysubTypeName stringfaction stringreward anyrewardText string_ any_ any_ any_ any_ anymissionTime any_ anyabortable booleandisableGuidance booleanassociatedComponent anyalertLevel anyhasObjective booleanthreadMissionID any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | mission any - The mission identifier. |
| Returns | objectiveText 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | missionID any - The ID of the mission.i number - The index of the objective.j number optional - An optional sub-index. |
| Returns | library string - The name of the encyclopedia library.item any - The primary item reference.item2 any - The secondary item reference. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component any - The component ID.templateConnectionName string - The name of the template connection. |
| Returns | mName 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._ anymid any - Mission offer ID. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | missionOfferID any - The ID of the mission offer. |
| Returns | name stringdescription stringdifficulty anythreadType anymainType anysubtype anysubTypeName stringfaction stringrewardMoney anyrewardText stringbriefingObjectives tableactiveBriefingStep anybriefingMissions tableoppFaction stringlicence anymissionTime anyduration anyabortable booleanguidanceDisabled booleanassociatedComponent anyalertLevel anyofferActor anyofferComponent any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | moduleID any - The ID of the module.moduleMacro any optional - An optional macro for the module. |
| Returns | moduleType string - The type of the module. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isToggleEnabled boolean - True if mouse look toggle is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | x numbery number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | notificationID any - The ID of the notification. |
| Returns | notificationInfos table - A table containing the details of the notification. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | notificationID any - The ID of the notification. |
| Returns | priority any - The priority of the notification. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | entity any - The ID of the NPC entity.key string - The key for the value to retrieve (e.g., "$HiringFee"). |
| Returns | value any - The value associated with the key on the blackboard. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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).
| Kind | function |
|---|---|
| Parameters | containerID any - The ID of the container. |
| Returns | npcs table - A table of NPCs. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | sectorID 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. |
| Returns | npcs table - The people found, empty when none are in range. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | availableMoney number - The amount of money available.itemPrice number - The price of a single item. |
| Returns | affordableAmount number - The number of items that can be afforded. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | numErrors number - The total number of errors. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | category any - The category of the logbook. |
| Returns | numEntries number - The number of entries in that category. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | numMissions number - The number of missions. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widgetID any - The ID of the widget. |
| Returns | x number - The x-offset.y number - The y-offset. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | object any - The object associated with the order.failureID number - The ID of the failure. |
| Returns | params table - A table containing the failure parameters. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | object 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. |
| Returns | params table - A table containing the order parameters. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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)
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | origin any - The origin. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| OwnLicence | id 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. |
| Parameters | factionID string - The ID of the faction. |
| Returns | licences OwnLicence[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllable any - The ship or station whose people to report.role string optional - A role id from libraries/roles.xml, e.g. "marine", "service", "worker". |
| Returns | roleData table - Array of { amount: integer, name: string, role: string }, plus capacity, stored and (when role is given) rolestored. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isEnabled boolean - True if personalized crash reports are enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container any - The ship or station whose docking bays to list. |
| Returns | dockingBays table - Array of dockingbay components; empty when the container has none. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | activity 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | className string - The class name of the context to retrieve (e.g., "container"). |
| Returns | contextID any - The ID of the context object. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | inventory table<string, InventoryWare> |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | money number - The player's current money. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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)
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | roomID any - The ID of the player's room. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | playerHull 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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 _.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | actualSpeed 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. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | strength number - The current steering strength. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | targetID any - The ID of the player's target. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| DisplayAdapter | name string - The adapter name.ordinal integer - The adapter ordinal - the value SetAdapterOption takes. |
| Parameters | none documented |
| Returns | adapters DisplayAdapter[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| ProductResource | ware string - The resource ware id.name string - The resource's displayed name.cycle number - The amount consumed per cycle. |
| PossibleProduct | ware 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. |
| Parameters | moduleID any - The production module to ask about. |
| Returns | products PossibleProduct[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| ScreenResolution | width number - Resolution width in pixels.height number - Resolution height in pixels. |
| Parameters | none documented |
| Returns | resolutions ScreenResolution[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component any - The platform component. |
| Returns | npcs table - A table of prioritized NPCs. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | module any - The module identifier. |
| Returns | data table - The data for the processing module. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| ProductionWare | ware 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. |
| ProductionWareList | efficiency number - Efficiency percentage; 100 by default. |
| ProductionModuleData | state 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. |
| Parameters | module any - The production module to inspect. |
| Returns | data ProductionModuleData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | objectID any - The ID of the object (e.g., station). |
| Returns | modules table - A table of production modules, as Lua-side component ids. Every vanilla |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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).
| Kind | function |
|---|---|
| Parameters | object any - The object to ask about. Never read; 9.00 does not check that it is there. |
| Returns | name string - Always "", on both versions. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | up to 8.00, deprecated in 9.00 8.00 present - addons 9.00 deprecated |
| Deprecated | 9.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 usage | unverified - no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | radarOption number - The current radar option. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | shipID 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. |
| Returns | profit number - The calculated reference profit. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| RegisteredModule | id 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. |
| Parameters | includeScenarios boolean optional - If true, includes scenarios in the list. |
| Returns | modules RegisteredModule[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The ID of the UI element.useElementSize boolean optional - Scale to the element's own size instead of 0 to 1. |
| Returns | x number - The relative x-coordinate.y number - The relative y-coordinate.z number - The relative z-coordinate. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | renderTargetID any - The ID of the render target. |
| Returns | x number - The x-coordinate within the render target.y number - The y-coordinate within the render target. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getRenderTargetMousePosition (8.00 :17841, 9.00 :18830) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | renderTargetID any - The ID of the render target. |
| Returns | textureFilename string - The filename of the render target's texture. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getRenderTargetTexture (8.00 :17840, 9.00 :18829) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | fromSettings boolean optional - If true, gets the value from settings rather than the current state. |
| Returns | resolution any - The current resolution setting. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllableID 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. |
| Returns | npcs table - A table of NPCs matching the criteria. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | table any - The data table, as returned by getTable.row number - Row index. |
| Returns | row any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | rumble number - The current rumble value. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| SaveInvalidPatch | id 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. |
| SaveGameEntry | filename 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. |
| Parameters | filter function optional - An optional function to filter the save game list. |
| Returns | savegames SaveGameEntry[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | width numberheight number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | cluster any - The cluster identifier. |
| Returns | sectors table - A table of sectors in the cluster. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The ID of the table. |
| Returns | selectedRows table - A table containing the indices of the selected rows. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getSelectedRows (8.00 :17837, 9.00 :18826) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | rangeID any - The ID of the control range. |
| Returns | sensitivity number - The current sensitivity value. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | qualityOption number - The current shader quality setting. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | option integer - 0 off, 1 low, 2 medium, 3 high. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget. |
| Returns | range 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. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getShiftStartEndRow (8.00 :17862, 9.00 :18852)maps to widgetSystem.getShiftStartEndRow |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The widget or element to measure. |
| Returns | width numberheight number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | enabled boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | enabled boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | ssaoOption number - The current SSAO option. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | frame any - The frame element. |
| Returns | back anyclose anyminimize anyhelp any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | macro string - The macro name of the ship to ask about. |
| Returns | macros string[] - The standard unit macros, empty when the macro carries none. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | stat string - The statistic ID, one of those GetAllStatIDs returns. |
| Returns | any ... - One value per requested property, in order; nothing at all if the ID is unknown. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | enabled boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | enabled boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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).
| Kind | function |
|---|---|
| StorageWare | ware 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. |
| StorageModule | name 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. |
| StorageData | capacity 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. |
| Parameters | object any - The container to inspect. |
| Returns | StorageData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component any - The commander.unknown any optional - Unidentified in 9.00 vanilla usage; always nil.checkRendered boolean optional - Restrict the result to subordinates currently rendered. |
| Returns | subordinates table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | option any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | name string - The table name. |
| Returns | table any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget.row number - 1-based row index.col number - 1-based column index. |
| Returns | colspan number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget.row number - 1-based row index.col number - 1-based column index. |
| Returns | r numberg numberb numbera number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget.row number - 1-based row index.col number - 1-based column index. |
| Returns | colspan number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget. |
| Returns | widths table - One entry per column. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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 presencefunction 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | does not exist no vanilla call site in either version |
| Game versions | in none of 8.00, 9.00 8.00 absent 9.00 absent |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget. |
| Returns | height number - In pixels. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget. |
| Returns | numfixedrows number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget. |
| Returns | numrows number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget.row number - 1-based row index. |
| Returns | height number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | targetElementQuery any - The query descriptor. |
| Returns | info any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component 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. |
| Returns | details table - The display template, empty for an invalid component. |
| Origin | addonui/addons/ego_targetmonitor/targetmonitor.lua - top-level function (8.00 :416, 9.00 :415) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | details table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | fontStringID any - The font-string element. |
| Returns | text string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | text string - The text to wrap.font string - Font name.fontsize number - Font size, already scaled.width number - Available width in pixels. |
| Returns | lines table - One string per line. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | text string - The text to measure.fontName string - Font name.fontSize number - Font size, already scaled.maxWidth number - Available width in pixels. |
| Returns | numlines numbertextwidth number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | time number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The table widget. |
| Returns | toprow 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. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getTopRow (8.00 :17834, 9.00 :18823)maps to widgetSystem.getTopRow |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | category string - Message category, e.g. basic or fastobject.maxMessages number - Maximum number of messages to return. |
| Returns | messages table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | ship any - The ship to price.unknown boolean - Unidentified in 9.00 vanilla usage; always true.shipyard any - The shipyard whose prices apply. |
| Returns | value number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| TradePriceModifier | name string - The modifier name.level any - The modifier level.amount number - The modifier amount.expire number - When the modifier expires. |
| TradeData | id 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. |
| Parameters | tradeID any - The trade to read.component any optional - Container the trade is viewed from, which decides the buy/sell direction. |
| Returns | tradedata TradeData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tradeOfferContainer 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. |
| Returns | tradeoffers TradeData[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container any - The ship or station whose orders to report. |
| Returns | orders table - Array of { amount, minamount, name, price, averageprice, id, station, stationname, isbuyoffer, isselloffer, ispassive, isshiptoship, iswareexchange }. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| TradeRestrictions | faction boolean - The global restriction on trading with other factions.overrides table<string, boolean> - Per-ware overrides of that global restriction. |
| Parameters | containerID any - The container to ask about. |
| Returns | restrictions TradeRestrictions |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | deprecated in every covered version (8.00, 9.00) 8.00 deprecated 9.00 deprecated |
| Deprecated | 3.20 - the engine answers every call with Obsolete since version 3.20, returns empty data! and an empty table, on both versions |
| Vanilla usage | unverified - no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | component any - The container the connection belongs to.templateConnectionName string - The name of the template connection. |
| Returns | trades table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | component 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. |
| Returns | tradeoffers table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| TradeShipCargo | ware 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. |
| TradeShipQueueEntry | id 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. |
| TradeShipData | shipid 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. |
| Parameters | shipID any - The ship to ask about. |
| Returns | shipdata TradeShipData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | ships TradeShipData[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | density number - Traffic density. 0 to 1 by convention; the setter does not clamp. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | macro string - The ship macro name. |
| Returns | macros table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | posID any - The element position ID.minSize number - Minimum rectangle size.maxScale number optional - Maximum rectangle scale. |
| Returns | x numbery numberz numberonScreen booleanwidth numberheight number |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | posID 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. |
| Returns | x numbery numberz numberonScreen boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | id any - The faction ID. |
| Returns | relation number - Roughly -30 to +30; at or below -25 the faction is hostile. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| UnitStorageEntry | macro 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. |
| UnitStorageData | capacity number - Total unit capacity.stored number - Total units stored.categorystored number optional - Units stored of the requested category, where one was given. |
| Parameters | objectID 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. |
| Returns | data UnitStorageData |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | width 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. |
| Returns | usableWidth number |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getUsableTableWidth (8.00 :17842, 9.00 :18831) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | table any - The data table, as returned by getTable.row number - Row index.column any - Column name or index. |
| Returns | value any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | outcomes table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | ventures any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | chance any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | string - The version string. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | sfxType any - The sound category, as passed to SetVolumeOption. |
| Returns | volume number - In the 0-1 range. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | capacity number - The total capacity for the specified ware. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | wareID string - The ID of the ware. |
| Returns | any ... - One value per name, in the order asked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tradingShipID 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. |
| Returns | tradeList TradeData[] |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID any - The component (station or storage) to query.wareID string - The ID of the ware. |
| Returns | limit number - The production limit for the ware. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | width number - The width of the widget system.height number - The height of the widget system. |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getWidgetSystemSize (8.00 :17860, 9.00 :18849) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | sizes table - width, height, table_borderSize, tableRowGroups_borderSize, scrollBar_width, scrollBar_sliderWidth, scrollBar_borderSize |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.getWidgetSystemSizes (9.00 :18850) |
| Availability | addons only vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | fontStringID any - The ID of the font string. |
| Returns | isWordWrapEnabled boolean - True if word wrap is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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").
| Kind | function |
|---|---|
| Parameters | raceID string - The ID of the race. |
| Returns | resources table - A table of workforce resources for the race. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.slide string - The slide name, e.g. "active". |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.time number - The target time. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | hasResources boolean - True if all resources are available. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.attribute string - Attribute path, e.g. position.x. |
| Returns | has boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | containerID any - The ID of the container.wareID string - The ID of the ware. |
| Returns | hasOverride boolean - True if a stock limit override is set. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | containerID 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. |
| Returns | hasOverride boolean - True if a price override is set. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID any optional - Optional component to ask about. No vanilla code passes one. |
| Returns | hasFlightControl boolean - True if flight control is held. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | factionID string - The ID of the faction.licenceID string - The ID of the licence.otherFactionID string optional - The faction the licence applies to. |
| Returns | hasLicence boolean - True if the faction holds the licence. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | spaceID any - The cluster, sector or zone to ask about. |
| Returns | isShipyard boolean? - true, or no value at all when there is none. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component.connectionName string - The connection on the component to check.tag string - The tag to check for. |
| Returns | hasTag boolean - True if the component has the tag. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | spaceID any - The cluster, sector or zone to ask about. |
| Returns | hasWharf boolean? - true, or no value at all when there is none. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | haveChanged boolean - True if settings have changed. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | table |
|---|---|
| Origin | addonui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideCircles (8.00 :17851, 9.00 :18840) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideRects (8.00 :17848, 9.00 :18837) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideAllShapes (8.00 :17855, 9.00 :18844) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideTriangles (8.00 :17854, 9.00 :18843) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | circleID any - The ID of the circle to hide. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideCircle (8.00 :17850, 9.00 :18839) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | clusterID any optional - Optional presentation cluster to hide. No vanilla code passes one. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | rectID any - The ID of the rectangle to hide. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideRect (8.00 :17847, 9.00 :18836) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | triangleID any - The ID of the triangle to hide. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.hideTriangle (8.00 :17853, 9.00 :18842) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | viewID any optional - Optional view to hide. No vanilla code passes one. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | statID string - The ID of the statistic to increment.addvalue number optional - The value to add. Defaults to 1. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :2500, 9.00 :2506) |
| Availability | core only vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | appid any - The AppID of the DLC to install. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | tableID any - The ID of the table. |
| Returns | isBorderEnabled boolean - True if the border is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID any - The ID of the button. |
| Returns | isActive boolean - True if the button is active. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isCheatVersion boolean - True if it is a cheat version. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component.className string - The name of the class to check against. |
| Returns | isClass boolean - True if the component is of the specified class. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component. |
| Returns | isConstructing boolean - True if the component is under construction. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component. |
| Returns | isOperational boolean - True if the component is operational. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | containerID any - The container to ask about.spaceID any - The space to test the range against: a cluster, sector or zone. |
| Returns | isSufficient boolean - True if the range is sufficient. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isActive boolean - True if a dialog is active. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | shipID 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. |
| Returns | isPossible boolean - True if docking is possible. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | factionID string - The ID of the faction. |
| Returns | isKnown boolean - True if the faction is known. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isFirstPerson boolean - True if in first-person mode. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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 runtimefunction 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.isFullscreenMode (8.00 :17856, 9.00 :18845) |
| Availability | does not exist no vanilla call site in either version |
| Game versions | in none of 8.00, 9.00 8.00 absent 9.00 absent |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isGamepadActive boolean - True if a gamepad is active. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | cell any - The cell the property belongs to.iconproperty table - The icon property. |
| Returns | isfunctioncell boolean|nil |
| Origin | addonui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3470, 9.00 :3654) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | componentid any - The component the information belongs to.infoString string - The information key, e.g. "name", "storage_amounts". |
| Returns | isUnlocked boolean - True if the information is unlocked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The ID of the UI element. |
| Returns | isInteractive boolean - True if the element is interactive. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | category string - The category of the item.itemID string - The ID of the item. |
| Returns | isKnown boolean - True if the item is known. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isEnabled boolean - True if debug input is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | macroName string - The name of the macro.className string - The class name to check against. |
| Returns | isClass boolean - True if the macro belongs to the class. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | position 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. |
| Returns | isObstructed boolean - True if the position is obstructed. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isPossible boolean - True if an online save is possible. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isFirstPerson boolean - True if in first-person mode. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | componentA any - The first component.componentB any - The second component. |
| Returns | areSame boolean - True if the components are the same. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tradeA any - The first trade.tradeB any - The second trade. |
| Returns | areSame boolean - True if the trades are the same. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | arg1 boolean optional - Unidentified in 9.00 vanilla usage; true or false. |
| Returns | isPossible boolean - True if saving is possible. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The ID of the UI element. |
| Returns | isSelectable boolean - True if the element is selectable. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isLocked boolean - True if the soft target is locked. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | isEnabled boolean - True if Steamworks is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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-game | 8.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.
| Kind | function |
|---|---|
| Parameters | tableID any - The ID of the table. |
| Returns | isPercentage boolean - True if column widths are percentages. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The ID of the table.row number - The row index. |
| Returns | isSelectable boolean - True if the row is selectable. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID any - The ID of the table. |
| Returns | isWrapAround boolean - True if wrap-around is enabled. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | cell any - The cell the property belongs to.textproperty table - The text property. |
| Returns | isfunctioncell boolean|nil |
| Origin | addonui/addons/ego_detailmonitorhelper/helper.lua - top-level function (8.00 :3416, 9.00 :3599) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component.typeName string - The type name to check against. |
| Returns | isType boolean - True if the component is of the specified type. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentID any - The ID of the component. |
| Returns | isValid boolean - True if the component is valid. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tradeID any - The ID of the trade. |
| Returns | isValid boolean - True if the trade is valid. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The ID of the widget element. |
| Returns | isValid boolean - True if the element is valid. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | wareID 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. |
| Returns | isIllegal boolean - True if the ware is illegal. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | actionName string - The name of the input action to listen for. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | filename string - The name of the save file to load. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | profileName string - The name of the input profile to load.personal boolean optional - Whether the profile is a personal (user) profile. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | objectname string - The name of a global already present in _G. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :348, 9.00 :432) |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | entityID any - The entity whose repair queue is reordered.componentID any - The component to move to the top of that queue. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | table |
|---|---|
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | table |
|---|---|
| Origin | addonui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from 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.
| Kind | function |
|---|---|
| Parameters | frame 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | moduleName 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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").
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The contract element, commonly getElement("Scene.UIContract"). |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The ID of the element that was hidden. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | elementID any - The ID of the element that was shown. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | contract any - The UI contract to notify. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :1034, 9.00 :1034) |
| Availability | core only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :1048, 9.00 :1048) |
| Availability | core only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | userID any - The ID of the user.block boolean - true to block the user, false to add as a contact. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean - true if the team name can be changed, otherwise false. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean - true if a user can be invited, otherwise false. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean - true if access can be unlocked, otherwise false. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | newName string - The new name for the team. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | username string - The username to check. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | teamName string - The name of the team to create. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | userID any - The ID of the user to find. |
| Returns | any - The contact object if found, otherwise nil. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | number - The conversion rate. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | groupID string - The ID of the chat group. |
| Returns | table - A list of user objects in the group. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A list of chat message objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of coalition objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | pageSize 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. |
| Returns | table - A table of contact objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - The current coalition object. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - The current operation object. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - The current season object. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - The current team object. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | string - The language code (e.g., "en"). |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of reward objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table representing the mission order. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | component userdata - The component to get information for. |
| Returns | table|nil - A table with patron information, or nil if not found. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | blocked boolean - true to count blocked users, false to count contacts. |
| Returns | integer - The number of contacts or blocked users. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | integer - The number of unread messages. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | missions any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of friend objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | teaminfo any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | scenarioID any - The ID of the scenario. |
| Returns | table - A table of ranking data. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | any - The success impact data. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table representing the team's inventory. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of team invitation objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of open invitation objects. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of venture information. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | table - A table of inbox messages. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | ware string - The ware ID. |
| Returns | amount integer |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | items table |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | name string |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | chance any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | bonuses any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | key string - The configuration key, e.g. "allow_update". |
| Returns | value any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | duration any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | logbook any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | amount any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | risk any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | order any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | wareinfo any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | state any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | friends table - The platform friend list. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | unlocked any |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | username string - The user name.remember boolean - Whether to store the session token. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | userID any - The contact user ID.mute boolean - Whether to mute. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | userID any - The contact user ID. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | scenarioID any - The ID of the scenario.displayMode any optional - The ladder display mode to request. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | text string - The message text.userID string|nil - The ID of the recipient user or nil for the current group. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | isPublic boolean - Whether the team should be public. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | languageID number - The ID of the language to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | configName string - The name of the configuration value (e.g., "allow_validation", "disable_popup").value any optional - The value to set. |
| Returns | any - The value of the configuration setting. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | ventureID string - The ID of the venture to start. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | scenarioID string - The ID of the scenario. |
| Returns | boolean - True if the upload was successful. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | allow boolean - Whether attribution is allowed. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | allow boolean - True to allow invitations, false to disallow. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | allow boolean - True to allow private messages, false to disallow. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | boolean - True if private messages are allowed, false otherwise. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | _ any - Unused event sender.notificationID any - The notification that was freed. |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :1008, 9.00 :1008) |
| Availability | core only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| 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. |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :1280, 9.00 :1282) |
| Availability | core only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | _ any - Unused event sender.enabled boolean - Whether ticker-only mode is on.showpermanently boolean - Whether the ticker stays visible rather than fading. |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :1310, 9.00 :1312) |
| Availability | core only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | addonui/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) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | menuName 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | appID number optional - The Steam AppID of the page to open. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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-game | 8.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.
| Kind | function |
|---|---|
| Parameters | url string - The URL to open. Not validated: a number is coerced, an empty or non-URL string is accepted and opens nothing. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | id string optional - The ID of the workshop item.personal boolean optional - Whether the item is personal. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | unpause boolean optional - If true, unpauses the game.force boolean optional - If true, forces the pause/unpause action. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | messageID any - The ID of the message associated with the action.actionType integer - The type of action to perform (e.g., 1). |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | soundName string - The name of the sound to play. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | option any optional - An optional parameter for the credits display. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | soundName string - The name of the sound to play (e.g., "ui_positive_select"). |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | iconName string - The name of the icon to prepare. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | meshName string - The name of the mesh to prepare. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | renderTargetName string - The name of the render target texture. |
| Returns | success boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | textureName string - The name of the texture to prepare. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | nextSection stringchoiceParam any optionalbaseParam any optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | interactionID integer - An id from CreateInteractionDescriptor2, not yet released. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | string - The user input string. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | pageID integer - The ID of the text page.textID integer - The ID of the text entry within that page. |
| Returns | string - The text content. |
| Origin | engineui/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 |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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).
| Kind | function |
|---|---|
| Parameters | pageID 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. |
| Returns | string - The text, or "=ReadText<page>-<line>=" when it is missing. Nothing at all if the call is refused. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | addonName string - The name of the addon.bindingName string optional - The name of the binding. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | eventName stringscriptFunction function |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.attribute string - The attribute to watch.callback function - The handler to invoke. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | event string - The event name, e.g. "inputModeChanged".element any - The element raising the event, commonly getElement("Scene.UIContract").callback function? - The handler to invoke. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element userdata |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | cutsceneDesc userdata |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | descriptor userdata |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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**.
| Kind | function |
|---|---|
| Parameters | descriptor userdata - A descriptor from CreateInteractionDescriptor. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | notificationID any |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | viewDescriptor userdata |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component userdataware stringamount integerfromPlayer boolean optionalnotify boolean optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component userdataware stringamount integerfromPlayer boolean optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | id string |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.removeHelpOverlay (8.00 :17869, 9.00 :18859) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.removeInputBar (9.00 :18865) |
| Availability | addons only vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | container userdata optionalware stringamount integer |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | index integer |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | controllable userdataorderIndex integerparamID stringlistIndex integer |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widget userdata optionalhandleType stringscriptFunction function |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | requester string - The name that took the lock. |
| Returns | requesterRemoved boolean - Whether this requester's request was found, not whether the lock was lifted. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | destructible any - A destructible: an object, or one of its surface elements. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | requester string - The name holding the lock. |
| Returns | success boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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().
| Kind | function |
|---|---|
| Parameters | frame userdatahasPlayerControls boolean |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | returnParam any optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | table |
|---|---|
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | price number |
| Returns | integer |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | filename stringname string |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | filename stringid stringcustomName stringisNew boolean optional |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | actions table<integer, InputBinding[]> - As returned by GetInputActionMap.states table<integer, InputBinding[]> - As returned by GetInputStateMap.ranges table<integer, InputBinding[]> - As returned by GetInputRangeMap. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | selected boolean - false in every call measured, with no dialog open. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | tableID stringcolumn integer |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.selectColumn (8.00 :17835, 9.00 :18824) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | button userdata |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | graphID stringrecordIdx integerdataIdx integerselected boolean |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.selectGraphDataPoint (8.00 :17867, 9.00 :18857) |
| Availability | addons only vanilla calls it from addons + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | tableID stringrow integermodified boolean optionalinput any optionalsource any optionalsettableinteractive boolean optional |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.selectRowExternal (8.00 :17836, 9.00 :18825) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | table |
|---|---|
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option number |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.attribute string - Attribute path, e.g. "position.x", "opacity", "scale.x".value any - The value to assign. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID stringr numberg numberb numbera number |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | buttonID stringtext string |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID stringdescriptor userdatarow integercolumn integer |
| Returns | boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | density number - Characters on platforms. 0 to 1 by convention; not clamped. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | component userdataname string |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container userdataware stringlimit integer |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | container userdataware stringisBuy booleanprice integer |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | value number |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | material userdatar numberg numberb number |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | distance number - The effect distance. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | env table - The environment table to populate with globals. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - top-level function (8.00 :357, 9.00 :441) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | id 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | value number - The FOV value to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | setting integer - The setting value (e.g., 0 for windowed, 1 for fullscreen). |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The gamepad mode to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | value number - The gamma value to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The graphics quality option to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The glow option to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | material 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | uiRangeID 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). |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | slot integer - The slot number to set.guid string - The GUID of the joystick. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | value number - The LOD value to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | message string - The debug message to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | posid any - Position id. Named by the engine, type unmeasured.messageid any - Message id. Named by the engine, type unmeasured. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | station userdata - The station to set the budget for.budget integer - The budget amount. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | positioned boolean - false when the parameters are rejected. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | station userdata - The station to set the budget for.budget integer - The budget amount. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | cursorIcon string optional - The icon to use as the cursor. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setMouseCursorOverride (8.00 :17857, 9.00 :18846) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widgetID 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. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setMouseOverOverride (8.00 :17858, 9.00 :18847) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | entity 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 1 vanilla call site, 3 arguments Seen at ui/addons/ego_detailmonitor/menu_trader_inventory.lua:538 |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | entityID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | controllable 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element userdata - The UI element to override the pointer for.pointerID string - The ID of the pointer to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | position integer - The position to set.id string - The ID of the presentation element. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | posID any optional - Optional position ID.messageID any optional - Optional message ID. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The radar option to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | renderTargetID string - The ID of the render target.active boolean - true to activate noise, false to deactivate. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setRenderTargetNoise (8.00 :17870, 9.00 :18860) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | textureString string - The texture string of the render target.width number - The width to set.height number - The height to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | width number - The width of the resolution.height number - The height of the resolution. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | value number - The rumble value to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widget 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. |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | tableID string - The ID of the table.rows table - A table of row indices to select.curRow integer - The current row index. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setSelectedRows (8.00 :17838, 9.00 :18827) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | rangeID string - The ID of the range to set.configName string - The name of the configuration to set.value number - The value to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The shader quality option to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The shadow option to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | sliderCellID string - The ID of the slider cell.value number - The value to set.newMaxSelect number optional - Optional new maximum select value. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setSliderCellValue (8.00 :17861, 9.00 :18851) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | componentid userdata - The ID of the component.connectionname string optional - Optional connection name.forceSet boolean optional - Optional flag to force the set action. |
| Returns | boolean, boolean |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option integer - The SSAO option to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | statID string - The ID of the statistic to set.value number - The value to set it to. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | option any |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widgetID any - The ID of the text widget or table cell.text string - The text to set. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | elementID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | lefttext 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. |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :2953, 9.00 :2959) |
| Availability | core only vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | element number - The ID of the element.useColor boolean - true to use the color, false to use the texture. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | tableID number - The ID of the table.row number - The index of the row to set as the top row. |
| Returns | nil, number, string - @nil, errorcode, errormessage |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.setTopRow (8.00 :17839, 9.00 :18828) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | density number - Traffic density. 0 to 1 by convention; not clamped. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | enable boolean - true to enable safe mode, false to disable. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | table any - The data table, as returned by getTable.row number - Row index.column any - Column name or index.value any - The value to store. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | componentID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | sfxType string - The sound category.value number - Volume in the 0-1 range. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | widgetID any - The boxtext or fontstring widget ID.width number - The width in pixels. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | id string - The ID of the highlight overlay.style string optional - The style of the highlight overlay. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.showHighlightOverlay (8.00 :17868, 9.00 :18858) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | objectID 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | targetID any - The object to fly to. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | conversationName 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | descriptor 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. |
| Returns | cutsceneHandle any - The handle for the started cutscene. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | actionID any - The diplomatic action ID.agentID any - The agent carrying out the operation.parameters table - The operation parameters.giftWare any optional - Optional gift ware. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | soundName string - The name of the sound to play. |
| Returns | soundHandle any - The handle for the playing sound. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | conversationName 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | cutsceneID number - The ID of the cutscene to stop. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | soundHandle number - The handle of the sound to stop. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | newWidgetID number - The ID of the new interactive widget. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | interactionID integer - The id of the interaction to hide. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - in-game probe, no vanilla call site |
| Probed in-game | 8.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.
| Kind | function |
|---|---|
| Parameters | interactionID integer - The id from CreateInteractionDescriptor2.interactionText string - The text of the interaction.isNotification boolean - Whether the interaction is a notification. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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 versionfunction 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.
| Kind | function |
|---|---|
| Parameters | name string - The callback name. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | does not exist vanilla calls it from core |
| Game versions | in none of 8.00, 9.00 8.00 absent 9.00 absent |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | factionID string - The ID of the faction.restrictionID string - The ID of the trade restriction to toggle. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | factionID string - The ID of the faction.wareID string - The ID of the ware to toggle the override for. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | unverified - 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.
| Kind | function |
|---|---|
| Parameters | value 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. |
| Returns | repr string - The string representation of the value. |
| Origin | addonui/addons/ego_debug/debug.lua - top-level function (8.00 :20, 9.00 :20) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | string - The stack traceback. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | wareID any - The ware to transfer.amount number - The amount to transfer.container any - The source container. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | amount number - The amount of money to transfer.sourceComponent any - The source component to transfer money from.reason string optional - Transaction category, e.g. "sellship". |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | wareID any - The ware to transfer.amount number - The amount to transfer (negative in vanilla usage).container any - The destination container. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | amount number - The amount of money to transfer.destinationComponent userdata - The destination component to transfer money to. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | text 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. |
| Returns | string - The truncated text. |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core + widget |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | dlcID string - The ID of the DLC to uninstall. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | arg1 boolean optional - Unidentified in 9.00 vanilla usage; true. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | addonName 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | eventName string - The name of the event.scriptFunction function - The callback function to unregister. |
| Returns | none documented |
| Origin | widget_fullscreenui/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) |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | element any - The scene element.attribute string - The watched attribute.callback function - The handler to remove. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | event string - The event name.element any - The element raising the event.callback function - The handler to remove. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons + core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any optional - The element whose mouse interactions are unregistered. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | element any optional - The element whose pointer override is removed. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | frameDesc 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. |
| Returns | none documented |
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | addons only vanilla calls it from addons |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Vanilla usage | confirmed - 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.
| Kind | function |
|---|---|
| Parameters | inputsLeft table - Input descriptors shown on the left.inputsRight table - Input descriptors shown on the right. |
| Returns | none documented |
| Origin | widget_fullscreenui/widget/lua/widget_fullscreen.lua - AddGlobalAccess → widgetSystem.updateInputBar (9.00 :18864) |
| Availability | addons only vanilla calls it from addons |
| Game versions | new in 9.00 8.00 absent 9.00 NEW in 9.00 - addons |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :2735, 9.00 :2741) |
| Availability | core only vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | function |
|---|---|
| Parameters | none documented |
| Returns | none documented |
| Origin | coreui/core/lua/monitors.lua - top-level function (8.00 :2042, 9.00 :2048) |
| Availability | core only vanilla calls it from core |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - core 9.00 present - core |
| Signature | from 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.
| Kind | table |
|---|---|
| Origin | engine injected by the executable; defined in no .lua file |
| Availability | all (addons + core) no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons + core 9.00 present - addons + core |
| Vanilla usage | confirmed - 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.
| Kind | table |
|---|---|
| View | currentFrames 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. |
| Origin | addonui/addons/ego_viewhelper/viewhelper.lua - table assignment (8.00 :12, 9.00 :12) |
| Availability | addons only no vanilla call site in either version |
| Game versions | in every covered version (8.00, 9.00) 8.00 present - addons 9.00 present - addons |
| Declaration | from source - taken from the definition the Origin row names, so nothing has to be inferred from call sites. |