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.

Version1.0.0
RequiresVS Code 1.85.0+
LicenseMIT
Package1.42 MB VSIX

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

  1. Open the extension's Marketplace page.
  2. Choose Install and allow Visual Studio Code to open.
  3. Confirm the publisher is Wasted Potential Studios LLC and the extension ID matches the value on this page.
  4. Reload Visual Studio Code if prompted.
Open Marketplace

Manual install

Manual VSIX

  1. Download the version 1.0.0 VSIX from WPS.
  2. In VS Code, run Extensions: Install from VSIX... from the Command Palette.
  3. Select wps-swg-datatable-editor-1.0.0.vsix.
  4. Reload Visual Studio Code if prompted.
Download VSIX
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.

  1. Keep the file under source control or make a backup before changing game data.
  2. Right-click a .tab file and choose Open SWG DataTable, or run the same command from the Command Palette and select a file.
  3. Edit cells in the grid. Use Add Row or Delete Selected Row when the table structure needs to change.
  4. Choose Save in the grid. The extension checks the declared column types before writing the same .tab file.
  5. 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

CommandWhereWhat 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
LinePurposeExample
1Column namestemplate_name level enabled
2Column type codess i b
3+Data rowsobject/example.iff 12 1

Recognized column types

CodeMeaningAccepted values
iIntegerSigned whole-number text
fFloatSigned decimal-number text
sStringAny text
hHash stored as an integerSigned whole-number text
bBoolean-like integerInteger value
eEnum labelText
pPacked ObjVarsAny text
cComment/string columnAny 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.