diff --git a/bootstrapper-manual.html b/bootstrapper-manual.html index fae23c9..366b708 100644 --- a/bootstrapper-manual.html +++ b/bootstrapper-manual.html @@ -134,16 +134,14 @@
Metadata Patches are loaded from .txt
files in the OpenWF/Metadata Patches/
folder.
They are generally parsed line by line, with roughly the following steps being taken for each line:
-/
, a new patch for the given absolute path is started. If the line ends on &
, the next line that also starts with /
will be added to this patch instead of creating a new patch.&
, that character is removed from the line and the rest of the line is assumed to be an absolute path to be added to the current patch.>
, that character is removed from the line and the rest of the line is assumed to be an absolute path for which a new patch is created.r|
, a replacement is added to the current patch in the form r|A|Z
which means A
in the metadata will be replaced with Z
.s|
, a regex substitution is added to the current patch, e.g. s|(.+)=1|$1=0
would change HasCooldown=1
to be HasCooldown=0
.They are parsed line by line, with leading and trailing spaces and tabs being ignored:
+> /Path/Here
starts a patch that will be applied to /Path/Here
.> /First/Path & /Second/Path
starts a patch that will be applied to /First/Path
and /Second/Path
. It is possible to stretch this over multiple lines by either ending a line with &
or starting the new line &
.>
, r|
, ...) is added as a prefix to all affected metadata. This works to add top-level properties but also to replace them because the game resolves duplicates by ignoring subsequent entries.r|
create replacements, e.g. r|A|Z
replaces all instances of A
with Z
in affected metadata.s|
create regex substitutions, e.g. s|(.+)=1|$1=0
would change HasCooldown=1
to be HasCooldown=0
.If multiple patches affect the same absolute path, they are combined.