Skip to content

Preparing assets (.sspj → .ssab) ​

SpriteStudio saves a .sspj project; what this package plays is a .ssab. Converting between them is a step you run, on your own machine, once at build time. React Native has no editor to host an importer in, so there is no automatic path and nothing converts at runtime — the conversion is a step you own.

The middle stage is the one that is easy to underestimate, and the rest of this page is that stage in detail: a pack is a directory, it travels as a native app asset, and changing it means building the app again.

Choosing a converter ​

Three tools, one converter behind them. Pick by how you work rather than by capability — the output is the same.

No .sspj of your own yet?

The official SpriteStudio sample data works as-is — that page is only available in Japanese, but the downloads themselves are language-neutral. Ringo is a good character sample, and Particle is a good one if you want effects. The downloaded project feeds any of the converters below as-is.

ToolBest forGetting it
ssconverter-webconverting a few projects by hand, nothing installedopen the hosted converter (it downloads a ZIP — unzip it)
SSConverter GUIa desktop GUI (macOS, Windows), used repeatedlya binary from its Releases
ssconverter-cliCI, batch, reproducibilitya binary from the SpriteStudio-SDK Releases

Dropping a folder onto ssconverter-web needs a Chromium browser

It reads a dropped folder through the File System Access API, which Chrome and Edge have; in Firefox and Safari, pick the folder with Browse.... A pack is a directory on the way in as well as on the way out.

The conversion itself is documented once, for every player

Converting with a standalone tool is the path this package takes, and covers picking a tool and wiring it into a build or CI pipeline. Converting assets is the overview of every conversion path.

A pack is a directory, not a file ​

A .ssab names its textures, the external packs its Instance parts reach, and — through a .ssqb — the packs it sequences, all by paths relative to itself. So the converter's output directory is what has to reach the device intact.

Metro cannot carry one. It bundles what a require() names and never walks a directory, and Android's packager then flattens what it did name into res/. Two consequences follow, and both are load-bearing:

  • A require()d module is not a valid source. It is the one form with no directory behind it.
  • assetExts must stay clean of ssab / ssqb. Teaching Metro about them would produce exactly the flattened copy, cut off from what it names, that cannot work.

Pack directories ship as native app assets instead:

json
{
  "expo": {
    "plugins": [["react-native-spritestudio", { "assets": ["./assets/ss"] }]]
  }
}

The plugin re-copies on every build, so re-running the converter needs only a rebuild — not a fresh prebuild.

Assets do not Fast Refresh

Changing a shipped pack means a native build: the file is an app asset, not a bundle entry. A pack read from an http(s) URL is the exception — it is fetched from there and needs no rebuild (Basic playback).

Reference and Embedded packs ​

The converter emits one of two kinds, and these are the SDK's names for them. ssconverter-cli --embedded, or the Embedded Assets checkbox in ssconverter-web and SSConverter GUI, produces an Embedded pack, in a folder named <project>_emb/; without it you get a Reference one.

KindShips asTrade
Referencethe .ssab plus its .png files beside itone file per texture, shared between packs naming the same cellmap
Embeddedone self-contained .ssabnothing to lose in transit; the encoded bytes stay resident for the life of the resource

Both work here. The loader picks per texture, with Embedded winning, so a pack that mixes the two is fine.