diff --git a/lang/English.ini b/lang/English.ini index 6d1a5b38f..f80200764 100644 --- a/lang/English.ini +++ b/lang/English.ini @@ -22,6 +22,7 @@ IMPORT_FAIL = "\\#ffa0a0\\Failed to import\n\\#dcdcdc\\'@'" IMPORT_FAIL_INGAME = "\\#ffa0a0\\Can not import while in-game" COOPNET_CONNECTION_FAILED = "\\#ffa0a0\\Could not connect to CoopNet!" COOPNET_DISCONNECTED = "\\#ffa0a0\\Lost connection to CoopNet!" +LOBBY_CREATION_FAILED = "\\#ffa0a0\\Error:\\#dcdcdc\\ Lobby creation failed!" LOBBY_NOT_FOUND = "\\#ffa0a0\\Error:\\#dcdcdc\\ Lobby no longer exists!" LOBBY_JOIN_FAILED = "\\#ffa0a0\\Failed to join the lobby!" LOBBY_PASSWORD_INCORRECT = "\\#ffa0a0\\Entered the wrong lobby password!" diff --git a/lib/coopnet/include/libcoopnet.h b/lib/coopnet/include/libcoopnet.h index be3260ebf..e7e707d63 100644 --- a/lib/coopnet/include/libcoopnet.h +++ b/lib/coopnet/include/libcoopnet.h @@ -27,6 +27,7 @@ typedef enum { enum MPacketErrorNumber { MERR_NONE, + MERR_LOBBY_CREATION_FAILED, MERR_LOBBY_NOT_FOUND, MERR_LOBBY_JOIN_FULL, MERR_LOBBY_JOIN_FAILED, diff --git a/lib/coopnet/linux/libcoopnet.a b/lib/coopnet/linux/libcoopnet.a index ee61cb662..d9babc168 100644 Binary files a/lib/coopnet/linux/libcoopnet.a and b/lib/coopnet/linux/libcoopnet.a differ diff --git a/lib/coopnet/mac_arm/libcoopnet.dylib b/lib/coopnet/mac_arm/libcoopnet.dylib index be81989f5..848909a86 100755 Binary files a/lib/coopnet/mac_arm/libcoopnet.dylib and b/lib/coopnet/mac_arm/libcoopnet.dylib differ diff --git a/lib/coopnet/mac_intel/libcoopnet.dylib b/lib/coopnet/mac_intel/libcoopnet.dylib index 07e7d301e..74403bfec 100755 Binary files a/lib/coopnet/mac_intel/libcoopnet.dylib and b/lib/coopnet/mac_intel/libcoopnet.dylib differ diff --git a/lib/coopnet/win64/libcoopnet.a b/lib/coopnet/win64/libcoopnet.a index 3e6b38939..7e329765f 100644 Binary files a/lib/coopnet/win64/libcoopnet.a and b/lib/coopnet/win64/libcoopnet.a differ diff --git a/src/pc/network/coopnet/coopnet.c b/src/pc/network/coopnet/coopnet.c index eaf8ba34f..9d0a84f4b 100644 --- a/src/pc/network/coopnet/coopnet.c +++ b/src/pc/network/coopnet/coopnet.c @@ -121,6 +121,10 @@ static void coopnet_on_error(enum MPacketErrorNumber error, uint64_t tag) { djui_popup_create(built, 2); } break; + case MERR_LOBBY_CREATION_FAILED: + djui_popup_create(DLANG(NOTIF, LOBBY_CREATION_FAILED), 2); + network_shutdown(false, false, false, false); + break; case MERR_LOBBY_NOT_FOUND: djui_popup_create(DLANG(NOTIF, LOBBY_NOT_FOUND), 2); network_shutdown(false, false, false, false);