allow players at join spawns without a spawn point yet generated due exhaustions pregens #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In some cases, when pregens cannot gen new spawn points players at joining to the server cannot spawn (cos there's no spawn point yet for it) so canot have a valid vision of the server around.. so canot play, this able to join and play but still not have a valid spawn point.. so use a randomixed around the falback fixed.
spawn_anyhere
setting in readme and API definition, as pointedat WIP: Fixed exhaustion bug bigservers #15 (comment)
if no pregen around newpos, used the already valid random_pos, that is still valid
rspawn.kick_on_fail or attempts <= 0
, just leaverspawn.kick_on_fail
:i noted never raised that condition.. i set the setting to true but never kicked the player
i was in suspect that must be
rspawn.kick_on_fail and attempts <= 0
cos player will bekicked only when there's no more attempts
fixedpos.y = water_level + rspawn.search_radius
as fackback bypass of a valid air node..is a ugly hack, but take note that there's no more attempts here so we need to let player to just get in
if no
rspawn.kick_on_fail
is desired.. the search radius is not a valid "altitude" but servesas falback if user do not defined a valid spawn point and the fixed one is still a solid node (not air)!
This is a ugly hack of the explanation on WIP: Fixed exhaustion bug bigservers #15 (comment)
if
spawn_anyhere
is on false, then using my code will spawn in 0,0,0 or fixed defined in minetest.conf,otherwise will spawn anywhere inside limits of rspawn max and min.. so admins must fine tuned that!