I’m trying to make a mod that edits the monster groups but I can’t get it working.
Lets for example reduce child zombies in schools and add cocroaches instead.
So I add a json file in the mod with the following contents (reduced child freq, added cocroach).
[
{
"type":"monstergroup",
"name": "GROUP_SCHOOL",
"default": "mon_null",
"//": "School monster spawns.",
"monsters": [
{ "monster": "mon_zombie_child", "freq": 50, "cost_multiplier": 1 },
{ "monster": "mon_zombie_fat", "freq": 50, "cost_multiplier": 1 },
{ "monster": "mon_zombie_tough", "freq": 50, "cost_multiplier": 1 },
{ "monster": "mon_zombie", "freq": 150, "cost_multiplier": 1 },
{ "monster": "mon_zombie_anklebiter", "freq": 5, "cost_multiplier": 5 },
{ "monster": "mon_zombie_sproglodyte", "freq": 5, "cost_multiplier": 3 },
{ "monster": "mon_zombie_shriekling", "freq": 5, "cost_multiplier": 5 },
{ "monster": "mon_zombie_creepy", "freq": 5, "cost_multiplier": 3 },
{ "monster": "mon_zombie_snotgobbler", "freq": 5, "cost_multiplier": 3 },
{ "monster": "mon_zombie_waif", "freq": 5, "cost_multiplier": 3 },
{ "monster": "mon_giant_cockroach", "freq": 610, "cost_multiplier": 1 }
]
}
]
And nothing changes. I also tried copying the whole monstergroups.json into the mod folder and changing the lines in it to make sure nothign was wrong with the formatting and still nothing changes.
I then just edited the monstergroups.json in its right place and then it works. But that isn’t a mod anymore so that isn’t good enough.
The mod itself works other than the monster group thing. The new item in the mod is visible in game.