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

suspendSimulation issue & question about interaction with web sockets #80

Open
MuchiBX opened this issue Jun 10, 2023 · 3 comments
Open

Comments

@MuchiBX
Copy link

MuchiBX commented Jun 10, 2023

Hi!

Thanks for working on this amazing project. I am finding it super useful.
An issue: every time I set suspendSimulation to true, the "value" for each dice is always NaN. If default (false) there is absolutely no problem the values log just fine. I can provide more context about the code but I am simply changing the property of suspendSimulation.

Another question. Is there any way currently to have this interact with web sockets? I basically want to show to every player in the room the same roll that the user that rolls is seeing. Not the results, the actual 3D animation. Would that be any way to implement that? I am not sure what data I should have to pass to the socket.

Thanks again! Keep up the amazing work.

@watcherdm
Copy link
Contributor

I also found this suspendSimulation bug and introduced this #79 PR to address it. Would you mind checking it?

@frankieali
Copy link
Contributor

I have not tried implementing web sockets for group play, but I am currently working on version 2.0 which will have support for deterministic rolls. I created https://github.com/3d-dice/dice-box-threejs using different libraries to test implementing this feature if you're interested in checking that out. It does not have all the features or documentation of this project though.

@MuchiBX
Copy link
Author

MuchiBX commented Jul 4, 2023

Hi,

Thanks for answering! I have already implemented it in a way that the dices rolling are only showed client side, and the results of the roll are shared to the group after the roll is over. It works pretty well. Now that I think of it, it may be better this way in my particular situation as 4 or 5 people rolling at once means a lot of dices on the screen at once.
Although support for deterministic rolls sounds amazing! Looking forward to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants