testserver no spawns spawn_mobs.lua#L55 #5630
Labels
No Label
1. kind/balancing
1. kind/breaking
1. kind/bug
1. kind/construction
1. kind/documentation
1. kind/enhancement
1. kind/griefing
1. kind/invalid
1. kind/meme
1. kind/node limit
1. kind/other
1. kind/protocol
2. prio/controversial
2. prio/critical
2. prio/elevated
2. prio/good first issue
2. prio/interesting
2. prio/low
3. source/art
3. source/client
3. source/engine
3. source/ingame
3. source/integration
3. source/lag
3. source/license
3. source/mod upstream
3. source/unknown
3. source/website
4. step/approved
4. step/at work
4. step/blocked
4. step/discussion
4. step/help wanted
4. step/needs confirmation
4. step/partially fixed
4. step/question
4. step/ready to deploy
4. step/ready to QA test
4. step/want approval
5. result/cannot reproduce
5. result/duplicate
5. result/fixed
5. result/maybe
5. result/wontfix
ugh/petz
ugh/QA main
ugh/QA NOK
ugh/QA OK
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: your-land/bugtracker#5630
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
https://gitea.your-land.de/your-land/minetest-spawnit/blame/branch/main/spawn_mobs.lua#L55
This keeps evaluating to "no spawn"
looks like the numbers are very low, if only one player is present:
2023-12-09 06:00:17: ACTION[Server]: should02 r=0.32703319056108
2023-12-09 06:00:17: ACTION[Server]: should02 (period * num_players) /(def.chance * s.spawn_chance_multiplier) =0.01147
2023-12-09 06:00:17: ACTION[Server]: should02 (period * num_players)=8.6025
2023-12-09 06:00:17: ACTION[Server]: should02 (def.chance * s.spawn_chance_multiplier)=750
2023-12-09 06:00:17: ACTION[Server]: should02 period=8.6025
2023-12-09 06:00:17: ACTION[Server]: should02 num_players =1
2023-12-09 06:00:17: ACTION[Server]: should02 def.chance =750
2023-12-09 06:00:17: ACTION[Server]: should02 s.spawn_chance_multiplier=1
That leads to the nether receiving no spawn at all. In this example we need more than 29 players online for this term to evaluate to true.
correct, that is what usually should happen.
if
def.chance = 750
, and 1 player is active, that means the mob should spawn once about every 750 seconds. looking further, the things which spawn once every 750 seconds are mostly petz and also mobs_animal:kitten, which shouldn't be spawning in the nether.the nether was crowded the last time i was there, but i will check it again.
nothing is spawning in the nether... or anywhere else. angry flux noises
patpat :D
It's not only a nether problem. We tried in previously unemerged mapblocks, they were near empty.
Especially in singleplayer this might show near-empty worlds
think i figured out the issue - the code for checking whether the mob could spawn in a protected area was insisting that the spawn happen in an allowed protection area. if there was no area, it was not allowed. fixed:
7ca55654a3
QA
Yay, things spawn again. The nether and previously not emerged mapblocks still feel a bit slow to fill up, but that's a numbers question now.
this is live