Copy the save aside
save_snapshotCopy the current world and character files to a labeled backup before a mutating run, so the state can be restored later. Use it before commands that change game data; it refuses while the game is running to avoid copying mid-write files.
Instructions
Copy this world and its characters aside, so a run can be undone.
WHAT THIS IS FOR. The mutating verbs write to a real install and none of
that FAILS — it accumulates. Enemy NPCs do not survive a reload, so spawn
looks harmless, but give writes the character file, time and weather
live in the world, and settile changes it for good. The damage is
invisible when it is done and shows up later as a measurement nobody
doubts.
Take one before a run that mutates, and save_restore after it.
REFUSES WHILE THE GAME IS RUNNING, naming the pids. A running tModLoader owns these files and writes them out on its own schedule, so a copy taken now is mid-write. Stop the session first.
Copies the configured world's .wld and .twld and every .plr/.tplr —
not the whole Worlds directory, which measured 41MB against 3MB for one
world, and not .bak files, which are the game's own safety net.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| files | Yes | ||
| label | Yes | ||
| taken | Yes |