Spawn Editor
The spawn editor opens and inspects ALife spawn data. It can read packed spawn files, import unpacked spawn folders, export unpacked data, and save packed spawn files.
Screens
| Screen | Route | Purpose |
|---|---|---|
| Navigator | /spawn_editor | Choose Open, Unpack, or Pack. |
| Editor | /spawn_editor/editor | Open and inspect the current spawn file. |
| Unpack | /spawn_editor/unpack | Unpack a spawn file into a folder. |
| Pack | /spawn_editor/pack | Pack an unpacked spawn folder into a spawn file. |
Data views
The backend exposes accessors for:
- header data;
- graph data;
- ALife spawn objects;
- artefact spawn points;
- patrols;
- full loaded spawn file data.
Backend commands
The Tauri spawns-editor plugin exposes:
open_spawn_file;import_spawn_file;export_spawn_file;save_spawn_file;close_spawn_file;get_spawn_file;get_spawn_file_header;get_spawn_file_graphs;get_spawn_file_alife_spawns;get_spawn_file_artefact_spawns;get_spawn_file_patrols;has_spawn_file.
Workflow
- Use Open for a packed
all.spawnfile. - Inspect header, graph, ALife, artefact, and patrol chunks in the editor.
- Use Unpack to export a packed spawn file into editable structured data.
- Use Pack to rebuild a packed spawn file from an unpacked folder.
When an XRF project path is configured, default paths point at target/gamedata/spawns/all.spawn,
target/spawns/unpacked, and target/spawns/repacked/repacked.spawn.
Safety note
Spawn files are binary game data. Keep a backup before saving or replacing a spawn file.