This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
designer_tutorials:xml:xml [2018/05/15 15:10] Kjeld formatting changes |
designer_tutorials:xml:xml [2018/05/16 09:44] (current) Kjeld |
||
---|---|---|---|
Line 3: | Line 3: | ||
The designer allows you to download and upload XML versions of your boards. This feature can be very helpful when designing boards with complex game mechanics that require hundreds (or thousands) of continents, borders, or border modifiers, as you can use scripts to automate much of the process. | The designer allows you to download and upload XML versions of your boards. This feature can be very helpful when designing boards with complex game mechanics that require hundreds (or thousands) of continents, borders, or border modifiers, as you can use scripts to automate much of the process. | ||
- | Even if you are not automating via script, it can still be quicker to make edits directly in an XML than in the board designer. | + | Even if you are not automating via script, it can still be quicker to make edits directly in an XML (using a text editor) rather |
- | ==== What is an XML file and how to view XML ==== | + | ==== What is an XML file? ==== |
- | You can look it up XML on Wikipedia, but the [[https:// | + | You can look up XML on Wikipedia, but the [[https:// |
- | For WarGear purposes, what you most need to know is how territories, | + | What you most need to know is how territories, |
- | One good free option is [[https:// | + | ==== How to view and edit an XML file ==== |
+ | |||
+ | Most browsers will display an XML file, but to edit an XML you will generally want to use a specialized application. | ||
+ | |||
+ | It is recommended that you also install the [[https:// | ||
==== Territories, | ==== Territories, | ||
Line 28: | Line 32: | ||
- **tid**: Start with 0 and goes up to the number of total territories minus one. Have to be unique. Again, WarGear will create these automatically. | - **tid**: Start with 0 and goes up to the number of total territories minus one. Have to be unique. Again, WarGear will create these automatically. | ||
- **boardid**: | - **boardid**: | ||
- | - **name**: Territory name, spaces and special characters are generally OK, though many special characters won't display properly in the game engine. | + | - **name**: Territory name; spaces and special characters are generally OK, though many special characters won't display properly in the game engine. |
- **max_units**: | - **max_units**: | ||
- **scenario_type**: | - **scenario_type**: | ||
Line 45: | Line 49: | ||
- **continentid**: | - **continentid**: | ||
- **boardid**: | - **boardid**: | ||
- | - **name**: Continent name, spaces and special characters are generally OK, though many special characters won't display properly in the game engine. | + | - **name**: Continent name; spaces and special characters are generally OK, though many special characters won't display properly in the game engine. |
- **bonus**: The continent bonus value. | - **bonus**: The continent bonus value. | ||
- **members**: | - **members**: | ||
Line 60: | Line 64: | ||
You can see that a border element also comprises a list of attributes: | You can see that a border element also comprises a list of attributes: | ||
- | - **borderid**: continentid: Don't worry about these. WarGear will create these automatically when you upload the XML. | + | - **borderid**: |
- **boardid**: | - **boardid**: | ||
- **fromid**: The tid value of the territory the border starts from | - **fromid**: The tid value of the territory the border starts from |