help : modifying ageGenerationCurve bugs the player landing

Started by keylocke, April 18, 2017, 05:54:06 AM

Previous topic - Next topic

keylocke

so i tried creating a new animal pawn.

i wanted them to spawn as "babies" like cute little puppies around the age range of 4yrs by adjusting the ageGenerationCurve like this :

<ageGenerationCurve>
<!--
age generation curve (X,Y) : X = target age, Y = percent chance of it spawning
-->
        <points>
          <li>(4,75)</li>
          <li>(9,20)</li>
          <li>(15,3)</li>
          <li>(18,2)</li>
          <li>(25,0)</li>
        </points>
</ageGenerationCurve>


problem is that doing so bugs the player landing and prevents the game from being started. (no drop pods are generated)

is there a code that is preventing the spawning of animal babies?

---

edit : inb4 pointing to other bugs :
-nope, when i removed the percent chance of the baby lifestage from spawning, the game works normally.

ie :

<li>(4,0)</li>
<li>(5,100)</li>
<li>(10,0)</li>


this works perfectly fine and spawns all of the animals as juveniles. hmm

help plz.

keylocke

nvm, i figured it out.

it turns out, the first and last item on the list needs to be zero, so i just needed to make extra items on that list to act as buffers for both ends.

since the "baby" lifestage for the custom pet i made is 1-5 years i could just do :

<li>(1,0)</li>
<li>(4,100)</li>
<li>(9,3)</li>
<li>(15,2)</li>
<li>(20,1)</li>
<li>(25,0)</li>


which gives me plenty of "babies" and "juveniles"