animals spawning in specific biomes

Started by Redfire1200, October 31, 2017, 06:26:06 AM

Previous topic - Next topic

Redfire1200

Question how can you make an animal spawn in a specific biome eg-desert = lion
i looked into biomedefs it seems to do with that but cant figure out how to do it
The Red Empire shall rise, The Red Empire shall grow... POTATOES!!!

CannibarRechter

In the specific Biome, there is a <wildAnimals></wildAnimals> stanza. Are you saying you put your lion in there, and it did not work? I believe the only places in the RW XMl that a specific animal is mentioned is either in its Def (under ThingDefs_Races) or in the various Biomes it appears under (in BiomeDefs). Can you copy and past the complete wildAnimals section from the Desert Biome here, please?
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Redfire1200

Yeh i saw the animal stanza but how do you make them spawn, do i just make folder in my mod saying
Defs/BiomeDefs/Biomes_Arid
And then just add my animal name to it to the correct spot?
The Red Empire shall rise, The Red Empire shall grow... POTATOES!!!

kaptain_kavern

If you need an example, have a look at my mod, here : https://ludeon.com/forums/index.php?topic=20171.msg359881#msg359881

It's a simple mod that add one animal and with a patch to add them to some biomes.

Hope it can help

Redfire1200

@kaptain_kavern thx yeh i found it, also noticed a small spelling mistake on your mod(unless intended)
       <labelPlural>warg puppies</labelPlural>
but yeh thx any way i found how to do it
The Red Empire shall rise, The Red Empire shall grow... POTATOES!!!

CannibarRechter

> Yeh i saw the animal stanza but how do you make them spawn, do i just make folder in my mod saying Defs/BiomeDefs/Biomes_Arid and then just add my animal name to it to the correct spot?

Lazy mode:

1. Copy Biomes_Arid to your mod at the location your described, and simply add an element to the animals list. This overrides EVERYTHING in the Biome with your new copy.

2. Learn the xpath based Patching system. That's more complex, but would only add a single line to the Biome, and leave the rest of it unchanged.

#2 is the proper way, and is far more maintainable, but does require a bit of extra learning.

CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Redfire1200

@CannibarRechter K thx I'll look into it
The Red Empire shall rise, The Red Empire shall grow... POTATOES!!!

kaptain_kavern

Hey, thanks for the typo  :P. I will correct that for A18 release then.

Good luck on your mod, BTW