Sign in to follow this  
Arkonick

Reason for animal population being off track

Recommended Posts

Ok Been busy studying a lot so haven't had time to really pay attention to why the animal population is off but after taking another look into it I have found out the reason behind the issue.

1. there is a max creature population

2. Calfs are spawning as a regular mob = This is spawning both male and female calfs all the time. These calfs grow up and mature then the system says there isn't enough and they never reach max population so they are always spawning.

This in return cause the bull and the Brown cow to reach populations way over there % that is hard coded in. These mobs end up causing the max population to max faster and some of the other mobs not being able to reach their max.

 

Other changes that need to take place. The max population can never work as long as there is a hard coded %. Reason why is if you spawn every hard coded % you go way over up to 80k of animals just to get them all to spawn there %.

I recommend you remove the hard code % out. Then set it up so it takes the max population and minus the aggressive mob %. Then it takes that number and calculates a number for each aggressive mob that can spawn. Then it takes the remaining % and calculates what each mob should spawn and assign them a % then spawn them. 

 

This way if a player says they want 10000 of creatures which is default setting they don't have some off the wall figure that can never be accurate cause you have the system based on a hard code % base.

 

Just my 2 cents after seeing what the code was actually doing in the background. Just becuase the calf's are not set with a max or a % spawn setting the system is still spawning them and will never stop cause there child classes that will age to adult making the child class fallback under this invisible % that keeps spawning cause the calf can never reach max as long as this aging is going on.

 

This system can work for people who want to run a massive multiplayer server like WO but when it is packaged and sold as a stand alone client this system isn't ever going to work you need to re write it like I mentioned above so it works for a stand alone client. No one is going to set the max creature population to 80k just so the animal population can fully spawn and be accurate. Not to mention you have the calf's spawning like mad throwing the entire base off.

  • Like 1

Share this post


Link to post
Share on other sites

unless you wind up with over 100% the hard coded percentages won't go over the cap

Share this post


Link to post
Share on other sites
1 hour ago, Retrograde said:

unless you wind up with over 100% the hard coded percentages won't go over the cap

 

Had it happen twice where server cap was at x and actual mob pop was x + y (as in cap at 30,000 and 44,000 actual).

Share this post


Link to post
Share on other sites

Razor has previously reported that some animals ignore the max population, and keep spawning, and are still being counted towards that max, which would stop other creatures from spawning.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this