Modding: FnF Packs

This is a guide to adding species to FnF (Flora and Fauna) packs

FnF Lua Files
When you want to add a new species to an FnF pack, you need to add a new lua file with the name of the species in question. This file has the following structure:

local r = data:NewAnimalSpecies

r.name = "deer" -- Name of the species

r.numberPerUnit = 5 -- Rarity

r.predictability = 5 -- Predictability of finding it (Nests, ect..)

r.clustering = 10 -- Gregariousness

r.speed = 40 -- Speed of flight km/h – ONLY ANIMALS

r.visibility = 5 -- How difficult it is to spot it

r.senses = 20 -- How likely to find traps and spot hunters – ONLY ANIMALS

r.intelligence = 10 -- Trap Detection – ONLY ANIMALS

r.ferocity = 0.1 -- Probability Animal fights back instead of escaping – ONLY ANIMALS

r.dangerousness = 1 -- Stat about messing you up – ONLY ANIMALS

r.endurance = 10 – Stamina – ONLY ANIMALS

r.constitution = 10 -- HP– ONLY ANIMALS

data.animals[r.name] = r

Tip: Apart from ferocity which is a probability (0-1), all values are arbitrary and therefore subject to comparison to other species to give yourself

Placing the File
Once you are done with the species Lua file, place it in:

For animal species:

For plant species:

modifying _all.lua
The next step is to modify the _all.lua file in the respective folder you added the species to. The line should look like this:

For animal species:

For plant species:

Replace name with the name of the species you're adding.

Adding the Species to \fnfs\_all.lua
Navigate to and open

Insert the species you are adding into the right category, those categories are