Unidiff.xml

Unidiff.xml controls "universe differences", which can be applied to Naev to change various aspects of the universe. For example, it can add or remove an asset from a system, or add an outfit for sale.

The unidiff.xml file can be found at ./naev/dat/unidiff.xml.

Possible Changes
As of this point in time, unidiff.xml only supports adding or removing an asset, adding or removing an outfit from a tech tree, adding or removing jump points, or changing the faction of an asset.

Defining a new unidiff
To define a new unidiff, use , followed by all tags which will be changing things. End the diff with

Adding or Removing an Asset
First define a system to add or remove an asset to, and give which asset to add or remove.

Adding or Removing a Jump Point
First define the system in which to add or remove a jump point. In the node, define the target system which the point will jump to, the x and y coordinates in the system in which to place the jump, and the hidden value.

If removing a jump point, only the target is needed.

Adding or Removing an Outfit from a Tech
First define which tech tree to add or remove the outfit or ship to. Use the tags to add, and  to remove.

Changing the Faction of an Asset
First define which asset you would like to change, then the faction which to change it to.

Example Unidiff File
The following combines all the previous examples into a valid unidiff file.