# 🔄 Converting Assets

Before playback, a SpriteStudio project (`.sspj` + images) is converted once into the compact runtime format (`.ssab` / `.ssqb`). Every path below runs the **same `libssconverter`** from [SpriteStudio-SDK](<https://cri-middleware.github.io/SpriteStudio-Docs/sdk/concepts/index.md>) and produces the **same output** - pick whichever fits your engine and workflow.

The input is a project authored in **SpriteStudio 7.6 or later**: the `.ssab` / `.ssqb` formats are defined against that version, and conversion does not upgrade an older project to it.

> [!TIP]
>
> **No SpriteStudio project of your own yet?**
>
> CRI Middleware publishes free [sample data](<https://www.webtech.co.jp/help/ja/spritestudio7/download/sample/>) - complete `.sspj` projects (characters, effects, UI, shaders) you can feed straight into any path below. Each download carries its own readme with the terms of use. (Help Center page, in Japanese.)

## 🔀 Two ways to convert

Either the player converts for you, or you convert with a standalone tool. A player that converts carries `libssconverter` in its package, so there is nothing else to install (Flutter adds its converter as a dev dependency).

| You use | What converts | When |
| --- | --- | --- |
| **Unity** | [SpriteStudio Player for Unity](<https://cri-middleware.github.io/SpriteStudio-Docs/players/unity/index.md>)'s bundled Importer | On drag & drop into a Windows or macOS Editor. On a Linux Editor, use [`ssconverter-cli`](<https://cri-middleware.github.io/SpriteStudio-Docs/overview/convert-with-a-standalone-tool/index.md>) instead |
| **RPG Maker MZ** | [SpriteStudio Player for Web](<https://cri-middleware.github.io/SpriteStudio-Docs/players/web/index.md>)'s `ssplayer-rmmz` plugin | When a test play starts, before the title appears |
| **TyranoBuilder** | [SpriteStudio Player for Web](<https://cri-middleware.github.io/SpriteStudio-Docs/players/web/index.md>)'s `ssplayer-tyranobuilder` plugin | When the project is opened, inside the editor. The result then appears in the component's dropdowns |
| **Godot** | [SpriteStudio Player for Godot](<https://cri-middleware.github.io/SpriteStudio-Docs/players/godot/index.md>)'s SS Importer dock | On drag & drop |
| **Flutter** | [SpriteStudio Player for Flutter](<https://cri-middleware.github.io/SpriteStudio-Docs/players/flutter/index.md>)'s `ssconvert` CLI (dev dependency `ssconverter_dart`) | When you run it, by hand or in CI - one `.sspj` per run. With Live Reload (dev dependency `ssgen_flutter`), `sswatch` re-converts on save and pushes the result into the running debug app |
| **Ren'Py** | [SpriteStudio Player for Ren'Py](<https://cri-middleware.github.io/SpriteStudio-Docs/players/renpy/index.md>) | On startup (auto-import) |
| [SpriteStudio Player for Web](<https://cri-middleware.github.io/SpriteStudio-Docs/players/web/index.md>)'s renderers and its TyranoScript plugin, [SpriteStudio Player for wgpu](<https://cri-middleware.github.io/SpriteStudio-Docs/players/wgpu/index.md>), [SpriteStudio Player for React Native](<https://cri-middleware.github.io/SpriteStudio-Docs/players/react-native/index.md>) | A [standalone tool](<https://cri-middleware.github.io/SpriteStudio-Docs/overview/convert-with-a-standalone-tool/index.md>) | When you run it |

For RPG Maker MZ, TyranoBuilder, Flutter and Ren'Py, drop the sources into `SpriteStudio_Source/`.

On an engine not listed here, or in a CI/CD pipeline, convert with a standalone tool too. There are three - a desktop GUI, a CLI and a browser tool - and which one to pick and how to run each is covered in **[Converting with a Standalone Tool](<https://cri-middleware.github.io/SpriteStudio-Docs/overview/convert-with-a-standalone-tool/index.md>)**.

Each player's own docs walk through its workflow - see [Choose Your Platform](<https://cri-middleware.github.io/SpriteStudio-Docs/overview/choose-your-platform/index.md>).

## 📦 What you get

Both paths emit `.ssab` (animation) / `.ssqb` (sequence) plus the referenced textures, which `libssruntime` then plays back. See [SDK Concepts](<https://cri-middleware.github.io/SpriteStudio-Docs/sdk/concepts/index.md>) for the pipeline and the [Format Specification](<https://cri-middleware.github.io/SpriteStudio-Docs/sdk/format-spec/index.md>) for on-disk details.

Conversion runs one way only: `.ssab` is a playback format, and there is no route back to `.sspj`. Keep editing the SpriteStudio project and convert again.

### How a project's files map to the output

A SpriteStudio project is made up of several files. If you have been handed a `.sspj` and asked to implement against it, this mapping is the first thing to know - and it is **the same whichever conversion path you take**.

| SpriteStudio file | Role | On conversion |
| --- | --- | --- |
| `.sspj` | The project itself; holds the list of `.ssae` / `.ssce` / `.ssqe` it references | **Not emitted.** It is used only to resolve resources during conversion |
| `.ssae` (animation pack) | Part structure and keyframes | Becomes one `.ssab` |
| `.ssce` (cell map) | The image used, and the cells cut out of it (position, size, pivot) | **Never becomes a file of its own - it is folded into the `.ssab`** |
| `.ssqe` (sequence) | A playlist of animations | Becomes one `.ssqb` |
| `.ssee` (effect), `.ssse` (sound), `.fnt` (bitmap font) | Effects, sound settings and fonts the animations use | **Folded into the `.ssab`**, like the `.ssce`. The sound files they name are copied to the output location like images (inside the `.ssab` when [embedded](<#reference-and-embedded>)) |
| Images (`.png` and so on) | The artwork itself | Copied to the output location and referenced by the `.ssab` (inside the `.ssab` when [embedded](<#reference-and-embedded>)) |

See the [Glossary](<https://cri-middleware.github.io/SpriteStudio-Docs/sdk/glossary/index.md>) for the terms and the [Format Specification](<https://cri-middleware.github.io/SpriteStudio-Docs/sdk/format-spec/index.md>) for the design decisions behind the conversion unit.

> [!WARNING]
>
> **When you can swap the image alone**
>
> Cell positions and sizes are **baked from the `.ssce` into the `.ssab`**. Repainting the artwork is reflected by replacing the image file alone, but if you add, move or resize cells - or change the overall image size - **rebuild the `.ssab` and ship it alongside**. Shipping only the new image renders it against the old cut-out rectangles, so the artwork shifts.

### Reference and embedded

A `.ssab` comes in two kinds, which differ in where the images and sounds live.

| Kind | Where images and sounds live | Players that read it | Where it fits |
| --- | --- | --- | --- |
| **Reference** | Outside the `.ssab`, copied to the output location on conversion | All | Handing the files to the engine's own asset management. Images can be swapped, and shared by several `.ssab` |
| **Embedded** | Inside the `.ssab` | Web, Flutter, React Native, wgpu | Shipping a single file, as with web ads or small apps |

Conversion by a player produces reference by default. Embedded comes from an embedded mode: `--embedded` on the CLI and on Flutter's `ssconvert`, **Embedded Assets** in the GUI and the browser tool. Unity, Godot and Ren'Py do not read embedded, so give them reference. Embedded's constraints are in [Shared Limitations](<https://cri-middleware.github.io/SpriteStudio-Docs/sdk/limitations/index.md>).
