Using a Content Pack

The structure of a NITV content pack generally consists of a [NV] content pack and another mod (such as a content patcher mod) to load the assets related to the creatures you are adding.

In the optional files for this mod you will find two example files for what a content pack for NITV looks like. In this example the content pack adds in two textures for a creature (A Fly), one being its sprite texture and the other its for its item texture. The images were put into the PNGS subfolder, and loaded in the [CP]ExamplePackContent/content.json here;

{
   "Format": "2.0.6",
   "Changes": [
        {
            "Action": "Load",
            "Target": "Mods/NITVExample/Fly, Mods/NITVExample/FlyItem",
            "FromFile": "PNGs/{{TargetWithoutPath}}.png"
        }
   ]
}

This is the manifest of the [CP]ExamplePackContent

{
    "Name": "ExamplePackContent",
    "Author": "Nature",
    "Version": "1.0.0",
    "Description": "",
    "UniqueID": "Nature.ExamplePackContent",
    "UpdateKeys": [""],
    "ContentPackFor": {
        "UniqueID": "Pathoschild.ContentPatcher"
    }
}

The Actual Content Pack Pack

This is the manifest of the [NV]ExamplePackContent

{
    "Name": "NVExamplePack",
    "Author": "Nature",
    "Version": "1.0.0",
    "Description": "Example content pack for NITV",
    "UniqueID": "Nature.ExamplePackNITV",
    "UpdateKeys": [""],
    "ContentPackFor": {
        "UniqueID": "Nature.NatureInTheValley"
    }
}

[NV]ExamplePackContent/content.json is the main file for a NITV pack, within it will contain a string, string dictionary of creature data, example shown below.

{
    "Fly": "0/false/0.004/0/1.1/true/true/0/false/spring,summer,fall,winter/
    0/0,1,SeedShop/1200/2600/4/Mods\\NITVExample\\Fly/0/0/0/40/0/30/11/
    Mods\\NITVExample\\FlyItem/Fly/A simple fly/32/32/ /1/false"
}

This will look like a lot, but really its a single string with each piece of creature data seperated by a slash. Note that when made using a content pack, each piece of data HAS TO BE GIVEN A VALUE. There are no defaults in this format!

Last updated