Rebrand project and refresh title presentation
This commit is contained in:
parent
17fef2c5d4
commit
7ae20789a9
138 changed files with 1511 additions and 1498 deletions
|
|
@ -20,12 +20,12 @@ signal friend_invite_received(
|
|||
signal friend_invite_finished(success: bool, message: String)
|
||||
|
||||
const BASE_URL_SETTING: String = "network/discovery/base_url"
|
||||
const BASE_URL_ENVIRONMENT: String = "NETFISHING_DISCOVERY_URL"
|
||||
const BASE_URL_ENVIRONMENT: String = "straywild_DISCOVERY_URL"
|
||||
const SETTINGS_PATH: String = "user://network_discovery.cfg"
|
||||
const DEFAULT_ROOM_NAME: String = "Player's Server"
|
||||
const LEGACY_DEFAULT_ROOM_NAME: String = "NETfishing Room"
|
||||
const LEGACY_DEFAULT_ROOM_NAME: String = "straywild Room"
|
||||
const LEGACY_DEDICATED_DEFAULT_ROOM_NAME: String = (
|
||||
"NETfishing Dedicated Server"
|
||||
"straywild Dedicated Server"
|
||||
)
|
||||
const ROOM_NAME_SUFFIX: String = "'s Server"
|
||||
const MAX_ROOM_NAME_LENGTH: int = 48
|
||||
|
|
@ -33,7 +33,7 @@ const HEARTBEAT_INTERVAL_SECONDS: float = 15.0
|
|||
const REQUEST_TIMEOUT_SECONDS: float = 8.0
|
||||
const TRAVERSAL_POLL_INTERVAL_SECONDS: float = 1.0
|
||||
const JOIN_PROBE_INTERVAL_SECONDS: float = 0.35
|
||||
const TRAVERSAL_PACKET_PREFIX: String = "NETFISHING_TRAVERSAL_V1 "
|
||||
const TRAVERSAL_PACKET_PREFIX: String = "straywild_TRAVERSAL_V1 "
|
||||
const UPNP_MAPPING_DURATION_SECONDS: int = 3600
|
||||
const UPNP_RENEW_INTERVAL_SECONDS: float = 2700.0
|
||||
const UPNP_RETRY_INTERVAL_SECONDS: float = 300.0
|
||||
|
|
@ -560,7 +560,7 @@ func _configured_base_url() -> String:
|
|||
if not value.is_empty() and not (
|
||||
value.begins_with("https://") or value.begins_with("http://")
|
||||
):
|
||||
push_warning("Ignored invalid NETfishing discovery URL.")
|
||||
push_warning("Ignored invalid straywild discovery URL.")
|
||||
return ""
|
||||
return value
|
||||
|
||||
|
|
@ -809,7 +809,7 @@ func _on_traversal_request_completed(
|
|||
var port: int = int(endpoint.get("port", 0))
|
||||
if address.is_empty() or port < 1 or port > 65535:
|
||||
continue
|
||||
var punch: PackedByteArray = "NETFISHING_PUNCH_V1".to_utf8_buffer()
|
||||
var punch: PackedByteArray = "straywild_PUNCH_V1".to_utf8_buffer()
|
||||
for _attempt: int in 3:
|
||||
_session.send_traversal_packet(address, port, punch)
|
||||
|
||||
|
|
@ -895,13 +895,13 @@ func _configure_upnp_mapping(port: int) -> Dictionary:
|
|||
var mapping_result: int = upnp.add_port_mapping(
|
||||
port,
|
||||
port,
|
||||
"NETfishing",
|
||||
"straywild",
|
||||
"UDP",
|
||||
UPNP_MAPPING_DURATION_SECONDS,
|
||||
)
|
||||
if mapping_result == UPNP.UPNP_RESULT_ONLY_PERMANENT_LEASE_SUPPORTED:
|
||||
mapping_result = upnp.add_port_mapping(
|
||||
port, port, "NETfishing", "UDP", 0
|
||||
port, port, "straywild", "UDP", 0
|
||||
)
|
||||
return {
|
||||
"success": mapping_result == UPNP.UPNP_RESULT_SUCCESS,
|
||||
|
|
@ -1374,18 +1374,18 @@ func _discovery_version_mismatch_message(required_version: String) -> String:
|
|||
match rejection:
|
||||
NetworkProtocol.RejectionCode.CLIENT_OUTDATED:
|
||||
return (
|
||||
"Your NETfishing version is out of date. Update to %s to "
|
||||
"Your straywild version is out of date. Update to %s to "
|
||||
+ "enable public discovery. This room will not be listed "
|
||||
+ "until you update."
|
||||
) % required_version
|
||||
NetworkProtocol.RejectionCode.SERVER_OUTDATED:
|
||||
return (
|
||||
"Public discovery is still on NETfishing %s. This room "
|
||||
"Public discovery is still on straywild %s. This room "
|
||||
+ "will not be listed until discovery is updated for %s."
|
||||
) % [required_version, local_version]
|
||||
_:
|
||||
return (
|
||||
"Public discovery requires NETfishing %s. This room will "
|
||||
"Public discovery requires straywild %s. This room will "
|
||||
+ "not be listed until both versions match."
|
||||
) % required_version
|
||||
|
||||
|
|
@ -1577,4 +1577,4 @@ func _save_settings() -> void:
|
|||
config.set_value("social", "share_presence", _presence_sharing)
|
||||
var error: Error = config.save(SETTINGS_PATH)
|
||||
if error != OK:
|
||||
push_warning("Could not save local NETfishing discovery settings.")
|
||||
push_warning("Could not save local straywild discovery settings.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue