-
Notifications
You must be signed in to change notification settings - Fork 224
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 #99
Comments
Same issue here. |
I'm having the same problem. :( |
Seems like @d07RiV just suspended both the development and hosting. I would say, You have to wait for another developer and probably hoster. |
It's still up but still unable to connect to multiplayer. I would actually like to host it locally for myself on my server. |
I forked it and made at least WebRTC working: https://knotschi.github.io/diabloweb/ I've also added a PR #113 for this change in case the @d07RiV is not planning to bring his server back up edit: this seems to be a bit buggy. If the creator of the game leaves: the game crashes. If anyone else leaves and tries to join the game it seems to not always work. If you leave a game you need to quit the game and start it again in order to join again. |
So it's possible to actually play with more than 1 player? |
It worked for me fine using my local network. Through the internet it lagged a lot for me, most of the time it was not even possible to join a game. But maybe the internet connection was just not good enough. I am not sure. I also realized that sometimes, when it was not working anymore I had to restart the game (reload the browser) and than it was working again. please try it out and let me know if it works for you |
Is there any way to contact you directly? |
you can email me (my github username @posteo.de ) |
@kermitdafrog8 wrote:
By stopped hosting I meant WebRTC, the multiplayer service. The files are present, yes, that's why this repo is receiving reports about failing multiplayer mode. Going to try the @Knotschi fork. |
I have been on his fork playing single player on multiplayer mode. |
Yep, just tried his and it's working. Tested with 2 devices (mobile and desktop), 2 players WebRTC. You need to have your own MPQ otherwise it fails. I have the full one but I'm assuming the shareware might work as well. |
It works if I use Firefox and Chrome on the same computer. |
AH, gotcha. It only works if the devices are within the same subnetwork. AKA all connected to the same wifi. Websocket was the option to make it work across devices on separate networks. But that doesn't work. |
So you can't play against someone else outside your own network? |
You might be able with a Virtual network. Could try "Logmein" or make your own VPN server + client. |
Having to both run a server and VPN seams to deafat the point of webdiablo, woudn't using DevilutionX make more sens at that point? There are still several unsolved issues in webdiablo and the maintainer appears to have abandoned the project. If you are on Android/iOS maybe the time would be better spend finishing the native ports for those platforms as you would get a better interface and widescreen support. |
WebRTC should actually also work the same way over the internet as inside a local network. I am not sure if a virtual network would help here. I could imagine that the problem is just related to the higher latency over the web. But this would need to be tested, I don't know what the actual issue is. |
you need a signaling server if u wanna use webRTC over internet, |
@Knotschi I have some issue playing the Shareware version on your fork. I see knotschi/diabloweb doesn't allow creating issues in the repo. |
@cojmar Yes, this is why the version from @d07RiV wasn't working anymore, he shut down his server which was used as the signaling server. In my version I am using the default server from https://peerjs.com/ (which is a js library for webRTC which was used, it provides a default signaling server that you can use instead of setting up your own) @sskras you are right, I haven't tried that before. It should be fixed now. I've also enabled issues on my repo now |
It's been a long time and I still can't play multiplay. I'll be waiting |
@tiehr You mean over the internet? At least local network multiplayer works now fine for me on https://knotschi.github.io/diabloweb/ |
What configuration did u use? Windows? Wifi? Phone hotspot? What os? What device? What internet provider? Thank you :) |
OS: Windows 10 on desktop PC All of us are on stable fibre connections in Australia/New Zealand. One of us hosted using WebRTC peer (or whichever the top option is in the multiplayer), and the others simply entered the game name. The time to connect was about 5-10 seconds. |
Thank you very much, will try again. My suspicious now is that phone network providers block something . . . |
Out of curiosity, I just tried to connect between my Macbook and my Android mobile (both using Chrome). It worked on WiFi, but failed (joined, then timed out) when my phone was on the mobile network (off WiFi). I think a lot of providers (especially mobile network) block port 443 that the public PeerJS server relies on. |
Same, pc on wifi + android on mobile network |
Guess im little late but ill give it a shot if any kind soul has the time to help me out. |
No clue, have you tried DevilutionX instead? |
Didnt try it. Does DevilutionX build for web? |
It does build for web, but is currently not support. But it is native for most platforms, what are you trying to run it on/needing it for? |
@AJenbo im hosting this on apache server. I want to test multiplayer support but when selecting multiplayer gives me: I read older messages saying that multiplayer was working. |
Use this link and then direct option for multipley, one create and the other joins: https://knotschi.github.io/diabloweb/ Tested now on my phone on 2 separate browsers Edit: Apologies I don't think I understood that you wanted to run it on ur own server. |
@AJenbo I’ve made some personal changes in d07RiV source. So I m building it myself. I can’t figure out Knotschis differences to d07RiV and why Knotschis multiplayer is functional while d07RiV gives “No Network selected”.
|
It sounded like it was something with WebRTC hosting. |
@kermitdafrog8 did you spot Knotschi's differences vs d07RiV? |
@kermitdafrog8 I end up building the forked one from Kotschis repo and all works fine. |
I’m hosting it through Apache server. But multiplayer giving the error I attached in picture. https://knotschi.github.io/diabloweb/ runs multiplayer correct.
I can’t figure out knotschi’s differences.
Sent from myMail for iOS
Thursday, 14 July 2022, 02:24 +0300 from ***@***.*** ***@***.***>:
…It does build for web, but is currently not support. But it is native for most platforms, what are you trying to run it on/needing it for?
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you commented. Message ID: <d07RiV/diabloweb/issues/99/1183777137 @ github . com>
|
Multiplayer says game exist when creating but doesn't exist when trying to join.
The text was updated successfully, but these errors were encountered: