I have released kobopatch v0.11.0 (which will be included in the next release of the patches).
This release adds a new ReplaceZlibGroup (as requested by jcn363). This instruction replaces multiple strings in a zlib string, then compresses the result (instead of compressing at each replacement). This is useful when making many tiny changes to a zlib stream, and one temporarily makes the stream too long.
Usage example for ReplaceZlibGroup:
Code:
Example for ReplaceZlibGroup:
- Enabled: yes
- Description: An example patch for the new ReplaceZlibGroup instruction.
- FindZlib: "#someRandomID"
- ReplaceZlibGroup:
Offset: 0
Replacements:
- {Find: "#someRandomID", Replace: "#someRandomIDThatMakesTheZlibStreamTooLongWhichWouldHaveErroredWithReplaceZlib"}
- {Find: "#someRandomIDThatMakesTheZlibStreamTooLongWhichWouldHaveErroredWithReplaceZlib", Replace: "#someRandomIDThatIsNowShortEnough"}