Sums to more than 100 percent
Moderator: Community Managers
Sums to more than 100 percent
Not sure if this should be here or in bugs,
Was looking at my server log today and saw a lot of messages stating
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
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).
- John Adams
- Retired
- Posts: 4581
- Joined: Wed Aug 28, 2013 9:40 am
- Location: Phoenix, AZ.
- Contact:
Re: Sums to more than 100 percent
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".
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
So safe to ignore for now, thanks