Animal biome spawn

Started by Shinzy, January 07, 2015, 07:35:36 AM

Previous topic - Next topic

Shinzy

so the
<wildBiomes>
<li>
<biome>AridShrubland</biome>
<commonality>0.5</commonality>
</li>
</wildBiomes>

to designate where animals spawn freaks out the game
is there a way to make this work? I mean it doesn't complain in the log when I have that in the animal's <race> bit

or do I just have to suck it up and modify the vanilla Biome defs?
it just doesn't work with other animals then, which I don't like none

unifex

I just grab an entire copy of Biomes.xml from the Core mod and modify that in my mod to add new beasts. I don't think its set to be selectively added to or modified at this stage.

Shinzy

Quote from: unifex on January 07, 2015, 06:14:56 PM
I just grab an entire copy of Biomes.xml from the Core mod and modify that in my mod to add new beasts. I don't think its set to be selectively added to or modified at this stage.

aw shame =/ will have to make some compatibility patches for other animal mods then (thank god there ain't too many yet!)

isistoy

#3
up!

Arrived here through search: anyone to confirm this is used to create BiomeAnimalRecords correctly and that we don't need to create these in biomes.xml directly?

EDIT: confirmed to myself this is the way to go, instead of rewriting the complete biomes.xml in a mod.
It goes like so, in RaceProperties of a pawn in ThingDef (animal is your PawnKindDef):

<race>
      <bodySize>1</bodySize>
      <healthScale>0.9</healthScale>
      <hungerRate>0.4</hungerRate>
      <wildBiomes>
        <li>
          <animal>Shep</animal>
          <biome>BorealForest</biome>
          <commonality>1</commonality>
        </li>
      </wildBiomes>


Thanks in advance
<Stay on the scene like a State machine>

spiritus80

Quote from: isistoy on June 20, 2015, 01:24:16 PM
up!

Arrived here through search: anyone to confirm this is used to create BiomeAnimalRecords correctly and that we don't need to create these in biomes.xml directly?

EDIT: confirmed to myself this is the way to go, instead of rewriting the complete biomes.xml in a mod.
It goes like so, in RaceProperties of a pawn in ThingDef (animal is your PawnKindDef):

<race>
      <bodySize>1</bodySize>
      <healthScale>0.9</healthScale>
      <hungerRate>0.4</hungerRate>
      <wildBiomes>
        <li>
          <animal>Shep</animal>
          <biome>BorealForest</biome>
          <commonality>1</commonality>
        </li>
      </wildBiomes>


Thanks in advance

brilliant , just what I was looking for

Rahjital

I've tried giving this to one of my plants to make it grow in both temperate forest and desert, but the game always freezes on when I try to make a new colony:

<wildBiomes>
    <li>
        <plant>PlantTruffles</plant>
        <biome>TemperateForest</biome>
        <commonality>0.005</commonality>
    </li>
    <li>
        <plant>PlantTruffles</plant>
        <biome>Desert</biome>
        <commonality>0.01</commonality>
    </li>
</wildBiomes>


However, if I delete one list element and leave only a half in like this, it works great:

<wildBiomes>
    <li>
        <plant>PlantTruffles</plant>
        <biome>TemperateForest</biome>
        <commonality>0.005</commonality>
    </li>
</wildBiomes>


Am I doing something wrong or is it a bug in the game?