Mission Editor – Issues
Editor sub-module that **aggregates and displays validation issues** across all missions. Provides a sortable, filterable table window and per-mission issue lists.
Editor sub-module that aggregates and displays validation issues across all missions. Provides a sortable, filterable table window and per-mission issue lists.
Overview
Iterates over every mission, collecting issues from all editor sub-windows (general, objectives, preview, etc.). Stores results in self.issues.list and attaches an _issueList to each mission object for quick icon/color display in the mission list.
Class Methods
| Method | Signature | Description |
|---|---|---|
C:init | (missionEditor) | Initialises the issues list. |
C:setMission | (mission) | Stores current mission reference. |
C:draw | () | Renders inline issue bullets for the current mission. |
C:drawIssuesWindow | () | Renders the full Mission Issues Overview window with sortable table. |
C:showIssuesWindow | () | Shows the issues window via editor.showWindow. |
C:calculateMissionIssues | (missionList, windows, missionTypeWindow) | Scans all missions through all sub-windows, populates _issueList per mission. |
Issues Table Columns
| # | Column | Description |
|---|---|---|
| 0 | # | Sequential index |
| 1 | Type | Severity (error / warning / minor / unknown) |
| 2 | Mission | Mission ID (click to select) |
| 3 | MissionType | Hidden by default |
| 4 | Level | Hidden by default |
| 5 | Availability | Freeroam / Career tags |
| 6 | Label | Human-readable issue text |
Columns are sortable; clicking headers sorts by that field.
Severity Priority
| Severity | Priority |
|---|---|
unknown | -1 |
minor | 1 |
warning | 10 |
error | 50 |
critical | 100 |
Menu Actions
- Attempt to fix all Missiontype issues – runs
checkContainer(mission, true)on every mission. - Attempt to remove all additional data – runs
checkContainer(mission, true, {}).
Usage Example
local issuesTab = require('extensions/editor/missionEditor/issues')(missionEditorRef)
issuesTab:calculateMissionIssues(missionList, subWindows, missionTypeWindow)
issuesTab:drawIssuesWindow()See Also
- Mission Editor - Additional Attributes - Related reference
- Mission Editor - Career Setup - Related reference
- Mission Editor - Conditions - Related reference
- World Editor Guide - Guide
Mission Editor – Generic Type Data
Editor sub-module for editing **mission-type-specific data** (`missionTypeData`). Provides a type selector dropdown, per-type custom editors, a raw JSON fallback editor, and a flowgraph variable synch
Mission Editor – Layers
Editor sub-module for managing a mission's **file-search layer stack**. Layers define an ordered list of directories the mission searches for asset files, checked first-to-last.