Back to Node List

Rule Set Preset

rule_set_preset

Builds a RuleTileSet and RuleSet from a preset.

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
タイル画像一覧
tiles
List<Image>
プリセットに使う任意のタイル画像一覧です。

Output Ports

NameTypeDescription
ルールタイル素材
asset
RuleTileAsset
タイルセットとルールセットを束ねた1本のワイヤーです。
ルールグリッド
grid
RuleGridSpec
生成したルールタイルセットのグリッドです。
ルールタイルセット
tile_set
RuleTileSet
生成したルールタイルセットです。
ルールセット
rule_set
RuleSet
生成したルールセットです。
プレビュー
preview
Image
プリセットの確認画像です。
タイル数
tile_count
Int
生成したタイル数です。
ルール数
rule_count
Int
生成したルール数です。
警告
warnings
Text
生成時の警告です。
概要
summary
Text
生成結果の短いまとめです。

Parameters

NameTypeDefaultRangeDescription / Options
方式
mode
Enum
Wang16

プリセット方式です。

  • Wang16Wang16
    上下左右のつながり方16通りの方式です。
  • Blob47Blob47
    斜めも見て内角を区別する47通りの方式です。タイル画像は「オートタイル作成」ノードで作れます。
  • 配管Pipe4
    上下左右16通りを配管風に描くプリセットです。ルールラインと相性が良いです。
  • 道路Road4
    上下左右16通りを道路風(舗装+中央線)に描くプリセットです。
  • 壁(矩形)WallRect
    矩形操作の領域(角/縁/内側)でタイルを選ぶ壁向けプリセットです。ルール矩形と組み合わせます。
  • 床(重み)FloorFill
    近傍を見ず、重み付きで床タイルを散らすプリセットです。
素材ID
material_id
Text
terrain

RuleCanvas のセルに塗る素材IDです。例: grass、water、pipe。

タイルセット名
tileset_name
Text
Wang16 Rule Tiles

生成するルールタイルセット名です。

ルールセット名
rule_set_name
Text
Wang16 RuleSet

生成するルールセット名です。

セル幅
cell_width
Int
161–2048

ルールタイルのセル幅です。

セル高さ
cell_height
Int
161–2048

ルールタイルのセル高さです。

不足時
missing_policy
Enum
Fallback

必要なタイル画像が足りない時、仮画像を作るか警告だけ出すかです。

  • 代替生成Fallback
  • 警告のみError

Overview

Generates a standard autotile arrangement (Wang16 / Blob47) as a tile set and matching rules in one step. Start here when learning rule tiles. Placeholder images work too, so you can test the mechanism before replacing the artwork.

Usage tips

  • The shortest beginner route is rule_set_preset → rule_canvas. Even without an image input, placeholder tiles demonstrate the behavior.
  • Wang16 considers only up/down/left/right and is simple. Blob47 also distinguishes inner corners for cleaner results. In practice, create its 47 tile images with autotile_from_parts / autotile_from_template.
  • When you need custom rules, import the preset into rule_set_editor and extend it.

Related nodes

  • rule_canvas / rule_render — consume the outputs
  • autotile_from_parts / autotile_from_template — batch-produce tile images
  • rule_set_editor — customizes rules
  • rule_tile_pack — creates a tile set from existing images

What this node does

Generates standard autotile arrangements as presets. When a tile-image list is connected, it builds from those images; otherwise it uses placeholders for testing. It outputs both the tile set and the corresponding neighborhood rules (RuleSet).

Key settings

ID Name Description
mode Mode Wang16 (16 up/down/left/right combinations) or Blob47 (47 combinations that also inspect diagonals and distinguish inner corners). The Autotile creation nodes are the easiest way to make Blob47 images.
material_id Terrain name Material ID painted on the rule canvas.
cell_width / cell_height Cell width/height Dimensions of one tile.

Example wiring

RuleSetPreset.tile_set -> RuleCanvas.tile_set
RuleSetPreset.rule_set -> RuleCanvas.rule_set
Back to Node List
Rule Set Preset — PixPipeline Node Reference