-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Multiplayer Not Working -- streetView not saved in firebase #64
Comments
It looks like the issue is in |
Hi, thanks for the report. I found the problem, linked to maps without round information. I finish my test and I will merge the fix. |
fix: multiplayer without roundInfo #64
Awesome, looks like the bug fix worked. Thanks for the quick help. |
Sorry for the inconvenience Enjoy 🚀 |
I pulled master following the guide, hosted on netlify + set up firebase real-time DB. Single player works fine.
Whenever I create a multiplayer game, I set the room name, my player name, and the timeout period. Everything is created and I receive a message that says waiting on players to join. I noticed the following error in my javascript console:
Uncaught Error: Reference.set failed: First argument contains undefined in property 'dsafasdf.streetView.round1.roundInfo'
Whenever another player attempts to join my URL, they receive the following error:
The first player is creating the room right now. Please wait and try again.
After looking into the issue, it looks like streetView is never saved in Firebase. Thus, the condition on line 170 in DialogRoom.vue is met:
!snapshot.hasChild('size') || !snapshot.hasChild('streetView’)
This is what causes the error to display. I’m not sure why streetView isn’t being saved in Firebase, but that must be the issue. I have not been able to find the code where this happens to further debug. Everything else appears to be working.
The text was updated successfully, but these errors were encountered: