From 36c6a1e3d8e4f11e0647d993308e09d04a31dcd3 Mon Sep 17 00:00:00 2001 From: Sainan Date: Wed, 19 Feb 2025 02:59:42 +0100 Subject: [PATCH] Document metadata patches --- bootstrapper-manual.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrapper-manual.html b/bootstrapper-manual.html index fcbd9a9..992a0b5 100644 --- a/bootstrapper-manual.html +++ b/bootstrapper-manual.html @@ -62,5 +62,17 @@
  • login.php requests also have an extra clientMod parameter to indicate that the OpenWF Bootstrapper is being used and what version of it.
  • inventory.php & missionInventoryUpdate.php requests have the extra query parameter xpBasedLevelCapDisabled to indicate that the client has been patched to accept any PlayerLevel and doesn't need XPInfo to match.
  • +

    Metadata Patches

    +

    Metadata patches are generally parsed line by line, with roughly the following steps being taken for each line:

    +
      +
    1. If the line starts with /, 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.
    2. +
    3. Leading and trailing tabs and spaces are removed from the line.
    4. +
    5. If the line starts with &, 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.
    6. +
    7. If the line starts with >, 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.
    8. +
    9. If the line starts with 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.
    10. +
    11. The line is added as a metadata prefix to the current patch. This works to add top-level properties but also to replace them because the game resolves duplicates by ignoring subsequent entries.
    12. +
    +

    If multiple patches affect the same absolute path, they are combined.

    +