Page 1 of 1

Sums to more than 100 percent

Posted: Wed Aug 26, 2015 12:25 pm
by jimm0thy
Not sure if this should be here or in bugs,
Was looking at my server log today and saw a lot of messages stating

Code: Select all

spawn_location_entry spawn_chance for location_id 2589805 sums to more than 100 percent (200).
The location_id has a few different values, which I can pull from the logs and post. This seemed to have happened with a player going around Khal. Doesn't seem to crash anything from console though

Re: Sums to more than 100 percent

Posted: Wed Aug 26, 2015 1:51 pm
by John Adams
This is the result of doing a .spawn combine {radius} on any number of spawns in an area, and the code determining how many uniques are in the group, then doing some calculations to figure out spawn_chance for that single placement.

Example:
4 Rats
2 Wasps
2 Frogs

Combine them, then there is a 50% chance the placement will spawn a rat, 25% chance it's a wasp and 25% chance it's a frog.

This message is likely indicating a failure in our .reload spawns and/or .repop code. If you pay attention to the value in the (parens), and watch 1 placement specifically, it's likely some list is not being cleared properly when the spawn re-spawns or is repopped by an means. (200) is coincidendally 100x2, yes? I've seen that number in the 12,000's before after the server is running for a while... so that is my conclusion.

Yet another "to do".

Re: Sums to more than 100 percent

Posted: Wed Aug 26, 2015 2:35 pm
by jimm0thy
So safe to ignore for now, thanks