Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player not properly sitting inside of some homedecor_seating chairs #31

Closed
Lazerbeak12345 opened this issue Apr 30, 2022 · 17 comments · Fixed by #76
Closed

Player not properly sitting inside of some homedecor_seating chairs #31

Lazerbeak12345 opened this issue Apr 30, 2022 · 17 comments · Fixed by #76
Labels
enhancement New feature or request

Comments

@Lazerbeak12345
Copy link

Lazerbeak12345 commented Apr 30, 2022

When you sit on certain chairs, the player is standing, not sitting.

One such example is lrfurn:sofa:

image

Closes minetest-whynot/whynot-game#84
Originally reported here: https://content.minetest.net/threads/2461/

@S-S-X
Copy link
Member

S-S-X commented Apr 30, 2022

Maybe also link to #29

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

this isnt a bug, this is a feature request

@wsor4035 wsor4035 added the enhancement New feature or request label May 1, 2022
@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

with #28 probably the only way to do this is add per game/mod support for sitting, since thats handled by whatever player mod (such as player_api) the game is using

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

additionally this will be non trival, due to multiple seating options, since currently homedecor is just moving any players that right click to the nodes actual pos, no attaching or anything. so you would need to figure out which part of the couch is being pointed at, check if a player is attached there already, etc.

@Lazerbeak12345
Copy link
Author

Lazerbeak12345 commented May 1, 2022

I'm honestly unsure how you see this as a feature request.

This also has nothing to do with making the mod game agnostic. That's a separate issue.

As for triviality, the player is already in the correct position, clearly (see photo above). So I don't see how that's related.

To keep us on topic, I'm just saying the animation needs to be the "sit" animation.

A simple way to do it would to just set their animation to the "sit" animation, and keep them in control of their rotation with camera controls. If that's too hard, then since the chair itself knows what way is forward, you can have it point there.


EDIT: I can see his perspective now - and share it. This is a feature request. The feature: put the player in "sit" and handle chair-undigging.

@Lazerbeak12345
Copy link
Author

Lazerbeak12345 commented May 1, 2022

Re-reading, I see that you are saying that you would have to add code to check if someone is already in the chair.

Does that mean that you aren't checking for that currently, and that is a problem anyway - my bug besides?

@Lazerbeak12345
Copy link
Author

Updated OP to include link to contetdb post that started this chain of events

@Lazerbeak12345
Copy link
Author

Dug a bit deeper.

Honestly I'm unsure how this ever got published without anyone noticing, since - as @S-S-X referenced - in #29 it was found that you can't even sit on some chairs.

One could argue that this is a feature request, as it requires more code to be written, but I think that it's still a bug. Chairs are made to be sat on. How one would publish a mod in any sort of "released" state without making sure that it meets the MVP at all is beyond me.

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

Given how old homedecor is, it may not have been possible to have animations at the time it was written

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

Re trivialities, players are always put In the root node positions, for sofas this will get complicated checking which seat they are pointed at, tracking which seat position they are in, etc. Single chairs are relatively easy

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

Also, re this being a bug, I would define it as something being broken, causing changes or unintended regression, etc. At the end of the day it's semantics what its labeled as, this is something that should be addressed.

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

Update: I have a solution for handling sofas, just now need to handle sitting animations if player api is present

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

i pushed my sofa code fdb7b55 going to need to take into account what happens when the sofa is dug from under the people in it, storing and restoring physics overrides, handling attachments, what happens if a player leaves, etc

@Lazerbeak12345
Copy link
Author

That's a great solution. Love it so far.

@wsor4035
Copy link
Collaborator

wsor4035 commented May 1, 2022

fyi, thats probably as far as ill go in that pr, as i want to get it finished up today hopefully. will revisit this issue afterwords

@Lazerbeak12345
Copy link
Author

Another example of a chair where the player is standing inside it instead of sitting is lrfurn:armchair

@wsor4035
Copy link
Collaborator

wsor4035 commented Sep 8, 2024

with #28 probably the only way to do this is add per game/mod support for sitting, since thats handled by whatever player mod (such as player_api) the game is using

once mt-mods/xcompat#41 is merged, should make game agnostic "sitting" trivial for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
3 participants