no edit summary
No edit summary Tag: Visual edit: Switched |
No edit summary |
||
\recipes.xml
\ModInfo.xml
=== Using Xpath ===
Before we go further, I want to talk a little bit about xpath.
==== What is Xpath? ====
Xpath is a way of finding information in xml files, and modifying values in those xml files. In the context of our 7 Days to Die mod, it will allow us to change some of the parameters set by the main game, when the game loads up.
Xpath uses a very specific syntax, which I'm not going to document here. (See: "XPath Explained") But to help understand it, think of an XML file as almost being like a folder structure in your computer's file system.
You can have items that contain subitems, and value assignments. For example, a <block> item can have a bunch of attributes under it, which you could think of like:
\block\attribute
Xpath uses that sort of syntax for finding, adding, removing, and changing attributes of things in the game.
You can easily google for more assistance on using Xpath.
|