Turns out I was trying to patch an already patched file (I thought XML Sandbox always used a "fresh copy" as the reference file - nope).
You can disregard the rest of this post. I'm leaving it up in case someone else does the same silly mistake and comes a-looking.
(Why is there no spoiler tag on this forum grr)
Code: Select all
<mod:findName type="droneBlueprint" name="DEFENSE_2" panic="true">
<mod:findLike type="target" panic="true">
When I plug the above code into the XML Sandbox (with or without mod:selector) I get this error:
java.util.NoSuchElementException: <findLike> was set to require results but found none (/wrapper/findName(DEFENSE_2)/findLike).
Does the panic argument only work for top-level searches?
Also, when I remove the panic arg, the code executes, but <mod:selector> doesn't seem to do anything... It removes the <target> tag regardless of what I put inside the tag (where it says LASERS). Am I using it incorrectly in this case? Or is it because there is only one <target> tag so the selector is ignored?