Studio Yotsuba
Back to Node List

Rule Tile Asset Save

rule_tile_asset_save

Saves a rule tile asset (tiles + rules) as a .pxnrule JSON file for reuse.

Reviewed
Guide available

Input Ports

NameTypeDescription
Rule Tile Asset
asset
RuleTileAsset
Required
Asset to save.

Output Ports

NameTypeDescription
Summary
summary
Text
Short result summary.

Parameters

NameTypeDefaultRangeDescription / Options
Path
path
FilePath
——

Save path (.pxnrule).

Save Mode
save_mode
Enum
Disabled—

Controls when this node writes the file.

  • DisabledDisabled
  • CreateIfMissingCreateIfMissing
  • OverwriteOverwrite

Overview

Saves a complete rule-tile asset (tiles and rules) as a .pxnrule file. After creating a terrain asset once, reuse it in another project with rule_tile_asset_load.

Usage tips

  • Saving has the side effect of file I/O. Keep save_mode disabled to prevent accidental saves, enabling it only when you intend to write.
  • This is the starting point for growing a terrain-asset library. Store grass, water, and roads as .pxnrule files, and begin a new map with three Load nodes.

Related nodes

  • rule_tile_asset_load — the loading counterpart
  • autotile_from_parts / autotile_from_template — generate assets to save
  • rule_tile_merge — combines assets before or after saving

This saving feature lets autotiles and rule tiles be reused in another project. The payload is the RuleTileAsset JSON itself. Load the resulting .pxnrule with rule_tile_asset_load in another project. Direct Part Composer import is a future candidate and is not currently available.

Kind ID Description
Input asset Rule-tile asset to save (required).
Setting path Save destination (.pxnrule).
Setting save_mode Disabled / create only / overwrite.
Output _saved / _path / _effect_outcome / summary Whether a save occurred, its destination, the skipped / already-exists / unchanged / written outcome, and a summary.

Use Rule Tile Asset Load to load the result.

Back to Node List