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
The node name and summary are available in English. Port, parameter, and article details are currently shown in Japanese.

Input Ports

NameTypeDescription
ルールタイル素材
asset
RuleTileAsset
Required
保存するルールタイル素材です。

Output Ports

NameTypeDescription
概要
summary
Text
結果の短いまとめです。

Parameters

NameTypeDefaultRangeDescription / Options
保存先
path
FilePath

保存先(.pxnrule)です。

保存モード
save_mode
Enum
Disabled

ファイルを保存するか、既存ファイルを上書きするかです。

  • 無効Disabled
  • 新規のみCreateIfMissing
  • 上書きOverwrite

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
Rule Tile Asset Save — PixPipeline Node Reference