ssconverter_dart

Turn SpriteStudio projects (.sspj) into the optimized runtime packs (.ssab) the player loads — a dart:ffi wrapper and an ssconvert CLI over the SpriteStudio-SDK converter (libssconverter).

A host tool, desktop only (macOS / Windows / Linux). Conversion happens on your machine or in CI; the app ships the .ssab. Its native library is downloaded by the package build hook, so this works out of the box — no Rust toolchain, no separate binary to install.

Install

dart pub add --dev ssconverter_dart

A dev_dependency is usually right: nothing in a shipped app calls the converter.

Use

dart run ssconverter_dart:ssconvert    -o out/     path/to/project.sspj  # reference textures
dart run ssconverter_dart:ssconvert -e -o out_emb/ path/to/project.sspj  # embedded

Because it is a plain dart run, it drops into any Dart/Flutter CI job with no extra binaries — convert straight into the app's assets/ as a build step.

The same engine is available programmatically for custom tooling:

import 'package:ssconverter_dart/ssconverter_dart.dart';

// Returns the output directory; throws SsConverterException on a converter error.
final out = await const SsConverter()
    .convert('path/to/project.sspj', outputDir: 'out', embedded: true);

Notes

  • -e / embedded produces a single self-contained .ssab with its textures inside — the recommended form for device and OTA distribution. The default reference form keeps the PNG / WebP files beside the pack.
  • The sources stay out of the app. Only the folders listed under flutter: assets: are bundled, so a SpriteStudio_Source/ beside them never ships.
  • Reconverting a whole directory on every source save is a different job — see ssgen_dart, which reconverts only what went stale.
  • Other front-ends for the same converter: the SSConverterGUI desktop app and the SDK's own ssconverter-cli.

More

Libraries

ssconverter_dart
Host-side SpriteStudio converter for the Flutter ecosystem.