-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Feature: Possibility to search for LAN games #3760
Comments
Since this is a fairly well understood topic I think I'd just go search for and This might be easy enough to do if such a search finds a good example and we can just plug in another tab or button on the join game screen |
I would like to work on this issue |
go ahead, we always like new PR's :P. |
I thought of the following approach for this. |
@sladyn98 yeah. Sounds nice. |
@DarkWeird IPV4 supports broadcasting, In IPv6, multicast support has been made mandatory, and there is no explicit concept of broadcasting,in multicasting unfortunately we have to make the recipients get added to the group to be able to receive the messages so we might have to stick with just broadcasting. |
@sladyn98 wait your PR :3 |
Could I try working on this issue, based off how the previous assignee had attempted it. To be honest I am not too sure how this works exactly but this seemed like one of the few beginner issues that nobody is working on for the time being and any help would be appreciated. |
Heya @ahv15 - yes, please! In this case there's an existing PR you can look at for inspiration, and all the comments to learn more about it, what it missing, and so on. Plus it would be great to get that work salvaged and the feature completed :-) |
Ok sure, I will take a shot at it. |
Sure, it is just that I haven't started working on it yet as I was busy with some work, but as soon as I start working on it(hopefully today) I am sure I will be stuck somewhere 😁 so I will head over to the discord server then. |
@ahv15 I'm not sure if any multi-threading is involved here, but the game becoming unresponsive when starting the broadcast feels like the broadcast is blocking everything else 🤔 |
Ohhhk, this makes a lot more sense, so the issue probably lies during the broadcasting, but the problem is that as the game turned unresponsive and could not give any sort of feedback to troubleshoot the error, I was kind of stuck there 😟 . So for the time being I will just start a PR regarding this issue. |
It should be possible to search for local area network games automatically.
Some extra button in the server list.
So question here is should we put a algorithm into action which searches all available IP addresses of the local network for terasology servers or do we let a opened server just broadcast every now and then some message, like "Hey guys I am running on this IP with that port and got that modules flying around, wanna join?". @Cervator Waddayathink?
I personally would go for second option, broadcasting in a defined interval (5 seconds maybe, of course it should be possible to disable that advertisement), and clients list those then.
The text was updated successfully, but these errors were encountered: