Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/network.js
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | function getDisconnectReason(id, wasConnected) | ||||
case 5: return translate("You have been kicked."); | case 5: return translate("You have been kicked."); | ||||
case 6: return translate("You have been banned."); | case 6: return translate("You have been banned."); | ||||
case 7: return translate("Playername in use. If you were disconnected, retry in few seconds."); | case 7: return translate("Playername in use. If you were disconnected, retry in few seconds."); | ||||
case 8: return translate("Server full."); | case 8: return translate("Server full."); | ||||
case 9: return translate("Secure lobby authentication failed. Join via lobby."); | case 9: return translate("Secure lobby authentication failed. Join via lobby."); | ||||
case 10: return translate("Error: Server failed to allocate a unique client identifier."); | case 10: return translate("Error: Server failed to allocate a unique client identifier."); | ||||
case 11: return translate("Error: Client commands were ready for an unexpected game turn."); | case 11: return translate("Error: Client commands were ready for an unexpected game turn."); | ||||
case 12: return translate("Error: Client simulated an unexpected game turn."); | case 12: return translate("Error: Client simulated an unexpected game turn."); | ||||
case 13: return translate("You have been blocked by server from joining."); | |||||
Stan: What does this mean? Blocked how? Also I assume it's the host that blocks you? | |||||
case 14: return translate("Could not find an unused port for the enet STUN client."); | |||||
case 15: return translate("Could not find the STUN endpoint."); | |||||
default: | default: | ||||
warn("Unknown disconnect-reason ID received: " + id); | warn("Unknown disconnect-reason ID received: " + id); | ||||
return sprintf(translate("\\[Invalid value %(id)s]"), { "id": id }); | return sprintf(translate("\\[Invalid value %(id)s]"), { "id": id }); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Show the disconnect reason in a message box. | * Show the disconnect reason in a message box. | ||||
▲ Show 20 Lines • Show All 160 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
What does this mean? Blocked how? Also I assume it's the host that blocks you?