testserver no spawns spawn_mobs.lua#L55 #5630

Closed
opened 2023-12-09 06:04:30 +00:00 by AliasAlreadyTaken · 6 comments

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.

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.
AliasAlreadyTaken added the
1. kind/bug
1. kind/balancing
2. prio/interesting
labels 2023-12-09 06:09:04 +00:00
AliasAlreadyTaken added this to the 1.1.122 milestone 2023-12-09 06:09:07 +00:00
Member

https://gitea.your-land.de/your-land/minetest-spawnit/blame/branch/main/spawn_mobs.lua#L55

This keeps evaluating to "no spawn"

correct, that is what usually should happen.

looks like the numbers are very low, if only one player is present:
...
In this example we need more than 29 players online for this term to evaluate to true.

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.

That leads to the nether receiving no spawn at all.

the nether was crowded the last time i was there, but i will check it again.

> https://gitea.your-land.de/your-land/minetest-spawnit/blame/branch/main/spawn_mobs.lua#L55 > > This keeps evaluating to "no spawn" correct, that is what usually should happen. > looks like the numbers are very low, if only one player is present: > ... > In this example we need more than 29 players online for this term to evaluate to true. 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. > That leads to the nether receiving no spawn at all. the nether was crowded the last time i was there, but i will check it again.
Member

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

> 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*
Author
Owner

the nether was crowded the last time i was there, but i will check it again.

nothing is spawning in the nether... 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

> > the nether was crowded the last time i was there, but i will check it again. > > nothing is spawning in the nether... *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
flux added the
4. step/at work
label 2023-12-10 01:14:54 +00:00
flux added this to the flux's TODO list project 2023-12-10 01:14:58 +00:00
flux self-assigned this 2023-12-10 01:15:03 +00:00
Member

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

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: https://github.com/fluxionary/minetest-spawnit/commit/7ca55654a35616efcb27d1d598497c935a22e7f1
flux added
4. step/ready to QA test
and removed
4. step/at work
labels 2023-12-10 22:31:34 +00:00
Author
Owner

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.

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.
AliasAlreadyTaken added the
ugh/QA OK
label 2023-12-11 02:36:44 +00:00
flux added
5. result/fixed
and removed
4. step/ready to QA test
labels 2023-12-18 22:41:15 +00:00
flux removed this from the flux's TODO list project 2023-12-18 22:41:18 +00:00
flux removed their assignment 2023-12-18 22:41:20 +00:00
Member

this is live

this is live
flux closed this issue 2023-12-18 22:41:43 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: your-land/bugtracker#5630
No description provided.