J3c: a land server stopping tells its players and is started afresh when they rejoin; the extra ports to forward on the Host page, the hosting message, the server log and HOSTING.md

This commit is contained in:
Paul Bailey
2026-11-07 00:08:05 +00:00
parent 86ebe07899
commit f9b138b304
9 changed files with 108 additions and 12 deletions

View File

@@ -1283,6 +1283,9 @@ func _go_online() -> void:
if Net.hosting:
var at := Net.my_addresses()
Actions.notify.emit("You're hosting. Friends join at %s" % (", ".join(PackedStringArray(at)) if not at.is_empty() else "this computer's address"))
var home_land := String(Net.server_info.get("worldlet", "valley"))
if not Lands.extra_ports(home_land, Net._host_port).is_empty():
Actions.notify.emit("Over the internet, forward %s" % Lands.ports_text(home_land, Net._host_port))
func _on_net_left(_reason: String) -> void:
WorldNet.leave_world()