Game Studio / Tools / Table editing
SWG DataTable Editor
Open SWG .tab DataTables in a structured grid, edit cells and rows, validate declared values, and align columns in the text editor.
Visual Studio Code extension
Install, use, and troubleshoot SWG DataTable Editor.
Use this guide to install version 1.0.0, learn its commands and settings, and follow the main workflows.
Installation
Recommended
Visual Studio Marketplace
- Open the extension's Marketplace page.
- Choose Install and allow Visual Studio Code to open.
- Confirm the publisher is Wasted Potential Studios LLC and the extension ID matches the value on this page.
- Reload Visual Studio Code if prompted.
Manual install
Manual VSIX
- Download the version 1.0.0 VSIX from WPS.
- In VS Code, run Extensions: Install from VSIX... from the Command Palette.
- Select
wps-swg-datatable-editor-1.0.0.vsix. - Reload Visual Studio Code if prompted.
code --install-extension wps-swg-datatable-editor-1.0.0.vsix SHA-256A99C2A3881CB120328DB7B7AD7F7BDB47EC7BF1834B6586DC6B753881EF58671
Open and edit a DataTable
The grid keeps the first line as column names, the second line as type declarations, and the remaining lines as data rows. Saving writes the updated tab-delimited content back to the selected .tab file.
- Keep the file under source control or make a backup before changing game data.
- Right-click a .tab file and choose Open SWG DataTable, or run the same command from the Command Palette and select a file.
- Edit cells in the grid. Use Add Row or Delete Selected Row when the table structure needs to change.
- Choose Save in the grid. The extension checks the declared column types before writing the same .tab file.
- For a plain-text view, open the .tab normally and run Format DataTable Columns to realign its visible columns.
Note: A normal click on a .tab file opens VS Code's text editor; it does not automatically launch the grid. Use Open SWG DataTable explicitly.
Commands
| Command | Where | What it does |
|---|---|---|
Open SWG DataTableswg-datatable-editor.openFile | Command Palette and .tab Explorer context menu | Opens the selected DataTable in the structured grid. |
Format DataTable Columnsswg-datatable-editor.formatTable | Command Palette and .tab editor context menu | Pads the tab-delimited text so columns are easier to scan in the normal text editor. |
This version contributes no public extension settings.
DataTable structure
The parser expects at least two tab-separated lines. The number of column names and type declarations must match. Blank data lines are skipped, and short rows are padded with empty cells when loaded.
template_name level enabled
s i b
object/example.iff 12 1 | Line | Purpose | Example |
|---|---|---|
| 1 | Column names | template_name level enabled |
| 2 | Column type codes | s i b |
| 3+ | Data rows | object/example.iff 12 1 |
Recognized column types
| Code | Meaning | Accepted values |
|---|---|---|
| i | Integer | Signed whole-number text |
| f | Float | Signed decimal-number text |
| s | String | Any text |
| h | Hash stored as an integer | Signed whole-number text |
| b | Boolean-like integer | Integer value |
| e | Enum label | Text |
| p | Packed ObjVars | Any text |
| c | Comment/string column | Any text |
Troubleshooting
- If the grid reports a column-count mismatch, compare the tab-separated header and type rows.
- If Save reports an invalid value, check the column's type code and the highlighted cell before trying again.
- Files larger than roughly 10 MB can take longer to load and render.
Privacy & license
This extension does not send extension data or telemetry to WPS.
SWG DataTable Editor version 1.0.0 is distributed under the MIT License. Keep backups when converting or generating files.
Get one tool or the complete suite
Use Marketplace for updates, download version 1.0.0 as a VSIX, or get the bundle with all six tools.