Game Studio / Tools / IFF compilation

SWG IFF Creator

Compile SWG DataTable .tab or supported XML source into DTII .iff files with single-file and immediate-folder commands.

Version1.0.4
RequiresVS Code 1.80.0+
LicenseMIT
Package1.50 MB VSIX

Visual Studio Code extension

Install, use, and troubleshoot SWG IFF Creator.

Use this guide to install version 1.0.4, 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.4 VSIX from WPS.
  2. In VS Code, run Extensions: Install from VSIX... from the Command Palette.
  3. Select wps-swg-iff-creator-1.0.4.vsix.
  4. Reload Visual Studio Code if prompted.
Download VSIX
code --install-extension wps-swg-iff-creator-1.0.4.vsix

SHA-2566949B88403C92AA41B293D0886F49ED15C33A495CC9B098635B60A08C2D6B993

Compile a DataTable source file

The compiler is included in the extension. It does not require DataTableTool.exe or a separate runtime path.

  1. Keep the source under version control and confirm that its header, types, and row shape are intentional.
  2. Right-click a .tab or supported DataTable .xml file and choose SWG: Compile to IFF.
  3. Wait for the completion message. Version 1.0.4 writes the same base filename with an .iff extension beside the source.
  4. Inspect the result with SWG IFF Viewer or deconstruct it back to .tab/.xml as a round-trip check before shipping it.

Commands

CommandWhereWhat it does
SWG: Compile to IFFswg-iff-creator.compileToIFF .tab and .xml Explorer/editor context menus Compiles one selected DataTable source file and writes a same-name .iff beside it.
SWG: Compile All DataTable Files in Folderswg-iff-creator.compileFolderToIFF Folder Explorer context menu Compiles immediate .tab and .xml children of the selected folder; subfolders are not scanned.

Settings

Open VS Code Settings and search for the extension name or paste a setting key into the search box.

SettingType / defaultPurpose
swg-iff-creator.showNotifications Boolean
Default: true
Shows compilation progress, success, and failure messages.

Supported source structure

TAB source requires a tab-separated column-name row, a matching type row, and at least one data row. Every data row must contain the same number of fields as the header.

XML source uses self-closing column definitions followed by row blocks and named cells. Version 1.0.4 expects the name attribute before type on each column, as shown. It decodes the standard <, >, ", ', and & XML entities in cell text.

<datatable>
  <column name="template_name" type="s" />
  <column name="level" type="i" />
  <row>
    <cell name="template_name">object/example.iff</cell>
    <cell name="level">12</cell>
  </row>
</datatable>

Output types

Creates DTII DataTable IFF files; it is not a generic IFF authoring tool.

Source typeAccepted valuesBinary treatment
s, h, vTextString value
c, i, l, eInteger-like text32-bit integer; l is also accepted by this compiler
fFloating-point text32-bit float
bInteger-like textFour-byte Boolean integer

Note: Review numeric source values before compilation.

Folder compilation behavior

  • The folder command processes .tab and .xml files directly inside the selected folder.
  • The scan is not recursive; run the command separately for nested folders.
  • Each .iff is written beside its matching source file.

Troubleshooting

  • If no file is created, confirm the source is a .tab or .xml DataTable and that its folder is writable.
  • Check the notification text for a missing header, type mismatch, unsupported type, or XML parse error.
  • Binary .iff output will appear unreadable in a normal text editor; use SWG IFF Viewer instead.
  • Large immediate-folder batches can take longer; nested folders require their own command.

Privacy & license

This extension does not send extension data or telemetry to WPS.

SWG IFF Creator version 1.0.4 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.4 as a VSIX, or get the bundle with all six tools.