Skip to content

Instantly share code, notes, and snippets.

@Zhentar
Zhentar / patchoperation.md
Last active November 12, 2023 23:06
Introduction to PatchOperation

There are 11 new "PatchOperation" actions we can perform to modify Defs without copying the whole thing. This in turn improves mod compatability dramatically - it allows two mods to modify different parts of the same Def without conflict. This guide only describes the basics of each operation available to us.

Patches go in xml files in a subfolder named "Patches" in your mod folder (So "MyMod\Patches", just like you might have "MyMod\Defs" or "MyMod\Textures"). Example.

Each PatchOperation has an "xpath" node, which should contain an xpath selector for the xml node(s) that the operation should affect. This is not an xpath tutorial. If you don't know xpath, not my problem. But minimurgle has you covered!

To illustrate the operations, I'll use this simple example def:

  <DesignationCategoryDef>
@braingineer
braingineer / pokemon go analysis.ipynb
Last active February 6, 2018 10:42 — forked from anonymous/pokemon go analysis.ipynb
pokemon go data analysis
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Antnee's Classy Filter! v3.0a
# https://www.pathofexile.com/forum/view-thread/1245785
# Instructions for use:
# Right-click this page, click "select all"
# Right click again, click "Copy"
# Open a new .txt document and paste the contents of this page into it
# USE ANSI ENCODING IF YOU USE NOTEPAD++ OR ANY OTHER TEXT EDITOR
# Click File/Save As
# Select "All Files" from the dropdown menu at the bottom