Skip to content
SheetForge

Export

Export writes baked ScriptableObject (SO) values back into sheet files. It is the return half of the round-trip.

Run an export

In the Data Studio toolbar, open Download ▾. It is the same download menu the web app has:

  1. Tick one of four formats: TSV, CSV, JSON or Excel workbook. Ticking a format keeps the menu open.
  2. Pick this sheet, every sheet that can go, or one sheet from the list.

A sheet that cannot go, such as an enum or localization sheet that has nothing baked, stays listed with the reason under it.

Each sheet is written through the workbook that owns it, into that workbook's export folder. It is written as last imported. To include staged edits, write them to the source with ↑ Send first, as How an edit reaches the sheet describes.

While a localization sheet is open, the menu also carries Export translations… and Import translations….

The settings Inspector's Run Export button, and SheetForgeActions.RunExport(), export with the settings asset's own format. They cover the open workbook. They cover every active workbook when Export and Push apply to in ⚙ Settings says so. In that case each workbook exports to its own folder, and one summary is logged. See Export and Push scope.

What export preserves

Structure comes from the baseline, and values come from the SOs. Export swaps the current values into the baseline snapshot of your sheet's structure.

Marker rows, column order, comments and human-written text are preserved 100%.

How values round-trip

The round-trip is semantic. It preserves the value, not the exact text.

  • 1.0 and 1 are the identical value, so normalizing one to the other is allowed.
  • Floats use the shortest round-trip format.
  • The decimal separator is always ..

Asset references

An AssetRef cell exports back as the address text the sheet uses, never as a GUID. That text is the key, or parent[sub] for a sub-asset. The group is the column's.

Typed columns, written AssetRef@Group<Type>, round-trip the same way.

A DirectRef cell keeps the spelling it already had. A cell that named its asset by path gets the path back, and a cell that named it by GUID gets the GUID back. Canonical spellings has the rules.

Visual values

Color, AnimationCurve and Gradient values come back in their canonical text form. Visual types describes that form.

  • A curve with no keys exports as an empty cell.
  • A color is clamped to 0…1, with no HDR.

Formats

The export format is one of Tsv, Csv, Xlsx, Json or MatchSource.

FormatWhat it writes
Tsv, CsvOne file per tab
XlsxEvery exported tab in one xlsx file per run
JsonOne file per tab, for machines rather than spreadsheets
MatchSourceEach tab in the format it was imported from

MatchSource

Each tab returns to the format it was imported from. A tab of Google origin or of unknown origin falls back to Tsv.

The xlsx-backed tabs gather into the one xlsx file. The other tabs return to their own files.

Xlsx

Xlsx writes every exported tab into one xlsx file per run. Each tab is its own sheet, in tab order.

The file is named by what it holds:

  • A book that holds one sheet is named after that sheet, such as Items.xlsx. Characters that a file name cannot hold become _. Exporting a single sheet therefore never overwrites the file that holds every sheet.
  • A book that holds several sheets is SheetForge.xlsx.

When one run exports several workbooks, the sheets of every workbook set to Excel still go into one book. It is saved in the export folder those workbooks share, or else in the export folder of the open workbook. If one of those workbooks fails, the book is not written at all, because a book never goes out with sheets missing.

An xlsx file is the format made to hold several sheets. Keeping the tabs together also lets reference dropdowns point across sheets. See Dropdowns written into the sheet.

The rules of the xlsx format cannot hold every sheet name. A name can be too long, or it can contain a forbidden character. Export adjusts such a name and reports it by name. It never renames a sheet silently.

Json

Json is an outbound-only format, for machines rather than spreadsheets. A server or an external tool can consume game data without parsing sheet text.

ValueWritten as
RecordAn object
int, floatA real JSON number
boolA real JSON boolean
Every other valueThe exact canonical cell text the sheet holds

Every other value means references, lists, colors, curves and custom types.

JSON is not an import source. A JSON file carries no sheet structure to round-trip, so the sheet stays canonical.

Stale bakes

Freshness is enforced. If you export with a stale bake after a schema change, the export fails with ExportSchemaMismatch.

The baked SchemaFingerprint must match the baseline's. Run an import first, then export.

Next steps