I have a little problem.
My plugin manages all resources (trees, ores & co) on the map. So first I set the server withou 0 resources, then I spawn stuff. All's good so far. However, next time I start the server, it goes spamming about my trees & stuff having "no population - should be removed". I assume its because it sees trees (the ones I put) when the server resource is set to 0.
It makes the server take an extra 60s-100s to restart, its not big deal but it would be nice if I could do without that.
Im thinking of 3 ways :
- Find a way to tell the server "I dont care, please dont check for that"
- Set resources to a high level in the server config, and then kill the 'vanilla' system that controls resource (re)spawn on. So if someone knows how to do that im interested.
- Destroy all resources on server unload - but it means I have to respawn them all at next start which is not optimal either.
Any suggestions welcome.
Solved Getting rid of "X has no population - should be removed"
Discussion in 'Rust Development' started by Yatta, Jul 20, 2016.
-
Calytic Community Admin Community Mod
Perhaps set the resource population limit to the amount of resources you have spawned after you're done spawning them
-
@Yatta you should have a look into SpawnConfig from nogrod.
This will give you a ddper look into how the spawnhandler works and how you can control, what it spawns/populates.
Otherwise you are'nt able to control this, if you not control the spawnpopulation. -
Ive checked SpawnConfig and did learn some stuff.
Tried to set the server settings to a high value of spawn but didnt seem to change much so I just set it back to 0 and filter out population messages from console as afaik those warnings have no consequence.
However even reading SpawnConfig leave me with a very weak understanding of loots spawns logic - im not sure how all the classes & objects relate to each other and whats the overall structure (Distribution, Groups, SpawnInstance, various types of SpawnPoints, SpawnHandler, SpawnFilter ...). But so far its ok because I manage to do what I want - except for roads :
Even after reading SpawnConfig and trying quite a few things on my own, getting loot spawn points near roads (or even any information about roads) eludes me, so right now Im unable to spawn anything near roads :s
