Studio Yotsuba
Back to Node List

Tile Canvas Save

tile_canvas_save

Saves a .pxntilemap and aligns pinned project snapshots.

Reviewed
Guide available

Input Ports

NameTypeDescription
Tile Canvas
canvas
TileCanvas
Required
TileCanvas refs/map document. Every requirement must have an exact runtime asset before map save; snapshots publish before the map.

Output Ports

NameTypeDescription
Summary
summary
Text
Short save result summary.

Parameters

NameTypeDefaultRangeDescription / Options
Path
path
FilePath
——

Destination .pxntilemap file.

Save Mode
save_mode
Enum
Disabled—

CreateIfMissing protects any existing regular file without reading it. Overwrite replaces only a parseable, supported artifact.

  • DisabledDisabled
  • CreateIfMissingCreateIfMissing
  • OverwriteOverwrite

Overview

Saves a TileCanvas document together with pinned snapshots of the assets it uses, keeping them consistent — the save path that makes a project folder reproducible offline on its own.

Usage tips

  • Connect canvas from the tile-canvas editing node, and enable save_mode only for explicit saves.
  • The saved .pxntilemap carries a project-relative fallback key referencing the same exact hashes as the snapshot index.
  • Snapshot and index publication can happen before the main map file is written. If that final write fails, an unreferenced content-addressed snapshot may remain; this is safe and it can be reused by a later save or cleanup pass.

Common pitfalls

  • A .pxntilemap alone is refs-only. It is not a self-contained distribution — keep the project assets with it.
  • If a runtime asset at the exact pinned hash is missing, the snapshot cannot be pinned and the save fails; resolve the missing asset and retry.

Related nodes

  • tile_canvas_load
  • tile_palette_save
  • tile_asset_save
Back to Node List