legacyclonk / LegacyClonk

The LegacyClonk engine and the c4group command line tool.
https://clonkspot.org/lc-en
Other
83 stars 18 forks source link

Inform hosts if netpuncher connection works only #43

Open Somebodyisnobody opened 3 years ago

Somebodyisnobody commented 3 years ago

Experiencing this situation multiple times a month: A host has his ports closed for whatever reason and crema shows only netpuncher v4 working. In this case a host should be informed about the situation as the netpuncher is not a guarantee that everybody can join.

maxmitti commented 3 years ago

Any suggestions on how to do this? The engine can not know this on it’s own.

Somebodyisnobody commented 3 years ago

Oh yeah, LC could get a status from crema.clonkspot.org (interface has to be specified). There we have the information already available. We would need two request statuses for the portcheck: pending and completed As long as the portcheck is still pending, LC asks every x seconds via http(s) using the game-id. When completed, there is a result about which connection methods have worked. For the generalisation of the problem, I would provide this information in detail. So not only "netpuncher-only=", but also the information about which addresses/netpuncherids were accessible.

Why a generalisation of the problem? Here we have the advantage that we could possibly display this information later in the GUI. Please note that there would also be room for information about the UPnP status. I have already talked about this idea with Fulgen. Under such a UPnP status, the information on the accessibility of the individual addresses could be added later. I didn't published my full idea about the GUI yet as I want to wait until the UPnP branch is merged.