489
edits
Script 10k (talk | contribs) (→Syntax) |
Script 10k (talk | contribs) (→Sample patch: updating to 2.0) |
||
Line 24: | Line 24: | ||
A simple example of a patch mod is the AE core mod "Unlock All Moves". There are [[Quotes/Moves#Unlockable_moves|nine moves]] in Oni that Konoko learns as the game progresses. A veteran player is used to having those moves, so the AE unlocks them all from the start. To figure out how to unlock a move, you would start by reading about [[TRAM]]s. You would see a note about a flag for a "first level where the animation is available". On the [[XML:TRAM]] page, or by looking at [[OniSplit#XML|XML-exported]] TRAMs, you would observe that the XML tag is "FirstLevel". Thus, you create a text file with the name of each move to unlock, for instance '''TRAMKONCOMcomb_k_k_k.oni-patch''', with the contents: | A simple example of a patch mod is the AE core mod "Unlock All Moves". There are [[Quotes/Moves#Unlockable_moves|nine moves]] in Oni that Konoko learns as the game progresses. A veteran player is used to having those moves, so the AE unlocks them all from the start. To figure out how to unlock a move, you would start by reading about [[TRAM]]s. You would see a note about a flag for a "first level where the animation is available". On the [[XML:TRAM]] page, or by looking at [[OniSplit#XML|XML-exported]] TRAMs, you would observe that the XML tag is "FirstLevel". Thus, you create a text file with the name of each move to unlock, for instance '''TRAMKONCOMcomb_k_k_k.oni-patch''', with the contents: | ||
@COMMAND | @XML_TOOLS Version "2.0" | ||
@COMMAND Options "--replace-all-values --element-name 'Variant' --new-val 'ONCVstriker'" | |||
The AEI will then process this file by retrieving the .oni file whose name matches the .oni-patch file (TRAMKONCOMcomb_k_k_k), exporting it as XML, running XmlTools to apply the patch, then converting the XML file back to an .oni file and combining it with all other selected mods into the new level data in the [[GDF]]. The modder does not have to worry about whether there is a modded form of the .oni file he is patching in some mod the player has installed because the AEI will use the .oni from the highest-numbered mod as the base for the patch. The AEI will use the vanilla resource from Oni if there are no modded versions of the .oni among the player's active mods. | The AEI will then process this file by retrieving the .oni file whose name matches the .oni-patch file (TRAMKONCOMcomb_k_k_k), exporting it as XML, running XmlTools to apply the patch, then converting the XML file back to an .oni file and combining it with all other selected mods into the new level data in the [[GDF]]. The modder does not have to worry about whether there is a modded form of the .oni file he is patching in some mod the player has installed because the AEI will use the .oni from the highest-numbered mod as the base for the patch. The AEI will use the vanilla resource from Oni if there are no modded versions of the .oni among the player's active mods. | ||
[[Category:Modding tutorials]] | [[Category:Modding tutorials]] |
edits