Respawn position search algorithm #833

Closed
opened 2020-09-09 22:44:03 +02:00 by kay27 · 1 comment
Contributor

I close Wuzzy/MineClone2#785 and open this because it's a different problem.

Closing Wuzzy/MineClone2#785 I added a search algorithm according official MC wiki (more or less) but got a feedback from @anon5 that it can teleport him on the roof of the house when the bed obscured and that he'd prefer MC's algorithm instead.

So I started MC 1.16.2 and tested its algorithm: https://youtu.be/FcQhLpOUEH0 - in MC 1.16.2 and it's very simple and doesn't correspond the wiki at all!

  1. if there's a free node next to the bed at the same altitude as the bed - player respawns at this point;

  2. if there's no free node near the bed but the bed has 2 nodes above itself - player respawns at this point;

  3. otherwise, player's personal respawn point deletes from memory and the player goes to the world respawn point.

And that's all! I wonder who ever edit this wiki :)

Also I found kinda a bug (or maybe not but!): in 1.16.2 when I sleep in the bed which has only one additional free node above it - it looks very odd when I wake up, in the video above it's from 5:52 (when I find the key to change the view).

Not as hard to copy... Can't imagine a trigger to restore vertical character orientation when there would be enough space for it but not a problem to check periodically and stop immediately on becoming vertical. I just think it's odd and creepy. Not sure whether it could be desired and preferred behavior for MCL2. Guys what do you think?

I close https://git.minetest.land/Wuzzy/MineClone2/issues/785 and open this because it's a different problem. Closing https://git.minetest.land/Wuzzy/MineClone2/issues/785 I added a search algorithm according official MC wiki (more or less) but got a feedback from @anon5 that it can teleport him on the roof of the house when the bed obscured and that he'd prefer MC's algorithm instead. So I started MC 1.16.2 and tested its algorithm: https://youtu.be/FcQhLpOUEH0 - in MC 1.16.2 and it's very simple and doesn't correspond the wiki at all! 1) if there's a free node next to the bed at the same altitude as the bed - player respawns at this point; 2) if there's no free node near the bed but the bed has 2 nodes above itself - player respawns at this point; 3) otherwise, player's personal respawn point deletes from memory and the player goes to the world respawn point. And that's all! I wonder who ever edit this wiki :) Also I found kinda a bug (or maybe not but!): in 1.16.2 when I sleep in the bed which has only one additional free node above it - it looks very odd when I wake up, in the video above it's from 5:52 (when I find the key to change the view). Not as hard to copy... Can't imagine a trigger to restore vertical character orientation when there would be enough space for it but not a problem to check periodically and stop immediately on becoming vertical. I just think it's odd and creepy. Not sure whether it could be desired and preferred behavior for MCL2. Guys what do you think?
Author
Contributor

So a day passed and I still don't have any idea better and don't want to keep it open anymore :)

Change the algorithm in favor of @anon5 : fa97aca76a

To be honest I don't like it so much. See the screenshot - this causes respawn blocking and you will appear at the world respawn, because some nodes around the bed occupied while the others digged out.

But at least it is simple, fast and very similar to MC. So not as bad :)

image

P. S. One difference: if you undig the bed it will work again.

So a day passed and I still don't have any idea better and don't want to keep it open anymore :) Change the algorithm in favor of @anon5 : https://git.minetest.land/Wuzzy/MineClone2/commit/fa97aca76a43f0ef612c686e64bd436b72c38046 To be honest I don't like it so much. See the screenshot - this causes respawn blocking and you will appear at the world respawn, because some nodes around the bed occupied while the others digged out. But at least it is simple, fast and very similar to MC. So not as bad :) ![image](/attachments/9eed259d-87df-4578-807a-ac8880d71376) P. S. One difference: if you undig the bed it will work again.
267 KiB
kay27 closed this issue 2020-09-10 19:31:09 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 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: VoxeLibre/VoxeLibre#833
No description provided.