Protected and damaged maps
A protected map is one written to be played but not edited: sections repeated, resized or
given nonsense names, the archive's file list removed, the scenario member renamed or
duplicated, or VCOD and ISOM stripped. Nothing about the format is secret, so every
trick depends on an editor reading the file differently from the game. The editor reads
what the game would play. If the archive is damaged so badly that the scenario cannot be
read, the error says so.
When the scenario is readable, the Repair plugin, on by default, checks it on every open. It looks for:
- a missing required section, a repeated section, or one of the wrong size;
- a stripped isometric record;
- files in the archive that nothing names, which the game never opens. Protectors add them to fill the archive's index, the hash table, so an editor has no room for its own files;
- content problems, such as strings whose colours look different in Remastered, which changed how a line break resets the colour.
What happens to a finding depends on what the repair would change:
- A safe repair, one that only writes what the game already does with the file or puts back what the editor needs, is made as the map opens. The map does not count as changed for it.
- Anything else waits in the status bar. Each finding says what the game does with the file as it is and what the repair would change, and nothing changes until you say so. The original bytes stay available to restore.
Preferences ▸ Plugins ▸ Repair can make the plugin ask before every repair. Tools ▸ Repair Map… runs the same check by hand.
The editor does not add protection. The Save dialog can strip the editor-only sections, which is the part of protection that costs an editor something, and that is as far as it goes.