From 32eb638112710c40c4f9e505934304e3b911aa03 Mon Sep 17 00:00:00 2001 From: marco_a <4279489-marco_a@users.noreply.gitlab.com> Date: Mon, 4 Mar 2024 14:16:07 +0100 Subject: [PATCH] Clearer error message when hitting signs of minigames/arenas that don't exist anymore --- locale/arena_lib.de.tr | 5 +++-- locale/arena_lib.es.tr | 5 +++-- locale/arena_lib.hu.tr | 5 +++-- locale/arena_lib.it.tr | 5 +++-- locale/arena_lib.pl.tr | 5 +++-- locale/arena_lib.ru.tr | 7 ++++--- locale/template.txt | 5 +++-- src/signs/signs.lua | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/locale/arena_lib.de.tr b/locale/arena_lib.de.tr index e34dd4f..b87e85b 100644 --- a/locale/arena_lib.de.tr +++ b/locale/arena_lib.de.tr @@ -22,7 +22,6 @@ OVERWRITE ALL=ALLE ÜBERSCHREIBEN ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!=Dieses Minispiel existiert nicht! @@ -175,6 +174,7 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...=Auf weitere Spieler warten … Only the party leader can leave the queue!=Nur der Gruppenleiter kann die Warteschlange verlassen! The queue has been cancelled due to not enough players=Die Warteschlange wurde aufgrund fehlender Spieler abgebrochen +You've joined team @1=Sie sind Team @1 beigetreten ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +404,8 @@ Sign=Schild Signs=Schilder One sign per arena=Ein Schild pro Arena Arena sign=Arenaschild +This minigame doesn't exist anymore!= +This arena doesn't exist anymore!= Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=Oh-oh, sieht so aus, als sei das Schild falsch platziert worden: Nun, es wurde korrigiert. Erneut hauen! That's not an arena_lib sign!=Das ist kein arena_lib-Schild! No ongoing activity=Keine laufende Aktivität @@ -508,7 +510,6 @@ The arena is already full!=Die Arena ist schon voll! ##[ src/utils/utils.lua ]## [!] @1=[!] @1 -You've joined team @1=Sie sind Team @1 beigetreten ##### not used anymore ##### diff --git a/locale/arena_lib.es.tr b/locale/arena_lib.es.tr index b0317ed..dcae51c 100644 --- a/locale/arena_lib.es.tr +++ b/locale/arena_lib.es.tr @@ -22,7 +22,6 @@ OVERWRITE ALL=SOBRESCRIBIR TODO ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!=¡Este minijuego no existe! @@ -175,6 +174,7 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...=Esperando a más jugadores... Only the party leader can leave the queue!=¡Solo el jefe de grupo puede abandonar la cola! The queue has been cancelled due to not enough players=La cola ha sido cancelada debido a que no hay suficientes jugadores +You've joined team @1=Te has unido al equipo @1 ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +404,8 @@ Sign=Cartel Signs=Carteles One sign per arena=Un cartel por arena Arena sign=Cartel de la arena +This minigame doesn't exist anymore!= +This arena doesn't exist anymore!= Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=Oh oh, parece que este cartel era descolocado: ¡pues, arreglado, golpealo otra vez! That's not an arena_lib sign!=¡Este no es un cartel de arena_lib! No ongoing activity=No hay actividades en curso @@ -508,7 +510,6 @@ The arena is already full!=¡La arena ya está llena! ##[ src/utils/utils.lua ]## [!] @1=[!] @1 -You've joined team @1=Te has unido al equipo @1 ##### not used anymore ##### diff --git a/locale/arena_lib.hu.tr b/locale/arena_lib.hu.tr index bad5dce..2a7f581 100644 --- a/locale/arena_lib.hu.tr +++ b/locale/arena_lib.hu.tr @@ -22,7 +22,6 @@ OVERWRITE ALL=MINDEGYIK FELÜLÍRÁSA ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!=Ez a minigame nem létezik! @@ -175,6 +174,7 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...=Várakozás több játékosr... Only the party leader can leave the queue!=Csak a buli vezetője tudja elhagyni a várakozói sor-t! The queue has been cancelled due to not enough players=A sor megszaítódott , mivel nincs elég játékos +You've joined team @1=Csatlakoztál a csapat @1-hez ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +404,8 @@ Sign=Tábla Signs=Táblák One sign per arena=Egy tábla arénánként Arena sign=Aréna tábla +This minigame doesn't exist anymore!= +This arena doesn't exist anymore!= Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=Ó, úgy tűnik, ez a tábla rosszul lett elhelyezve: na, javítva, üsd meg újra! That's not an arena_lib sign!=Ez nem egy area_lib tábla! No ongoing activity=Nincs folyamatban lévő aktivítás @@ -508,7 +510,6 @@ The arena is already full!=Az aréna már teli van! ##[ src/utils/utils.lua ]## [!] @1= -You've joined team @1=Csatlakoztál a csapat @1-hez ##### not used anymore ##### diff --git a/locale/arena_lib.it.tr b/locale/arena_lib.it.tr index 6425e08..7deee39 100644 --- a/locale/arena_lib.it.tr +++ b/locale/arena_lib.it.tr @@ -22,7 +22,6 @@ OVERWRITE ALL=SOVRASCRIVI TUTTO ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!=Questo minigioco non esiste! @@ -175,6 +174,7 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...=In attesa di più giocatorɜ... Only the party leader can leave the queue!=Solo lə capə gruppo può abbandonare la coda! The queue has been cancelled due to not enough players=La coda è stata annullata per troppɜ pochɜ giocatorɜ +You've joined team @1=Ti sei unitə alla squadra @1 ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +404,8 @@ Sign=Cartello Signs=Cartelli One sign per arena=Un cartello per arena Arena sign=Cartello dell'arena +This minigame doesn't exist anymore!=Questo minigioco non esiste più! +This arena doesn't exist anymore!=Quest'arena non esiste più! Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=Oh oh, sembra che questo cartello sia fuori posto: beh, sistemato, colpiscilo di nuovo! That's not an arena_lib sign!=Questo non è un cartello di arena_lib! No ongoing activity=Nessuna attività in corso @@ -508,4 +510,3 @@ The arena is already full!=L'arena è già piena! ##[ src/utils/utils.lua ]## [!] @1=[!] @1 -You've joined team @1=Ti sei unitə alla squadra @1 diff --git a/locale/arena_lib.pl.tr b/locale/arena_lib.pl.tr index a41c8a7..1a78ea5 100644 --- a/locale/arena_lib.pl.tr +++ b/locale/arena_lib.pl.tr @@ -22,7 +22,6 @@ OVERWRITE ALL=NADPISZ WSZYSTKO ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!=Ta minigra nie istnieje! @@ -175,6 +174,7 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...=Czekanie na więcej graczy... Only the party leader can leave the queue!=Tylko lider grupy może wyjść z kolejki! The queue has been cancelled due to not enough players=Z powodu niewystarczającej liczby graczy, kolejka została rozwiązana +You've joined team @1=Dołączono do drużyny @1 ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +404,8 @@ Sign=Znak Signs=Znaki One sign per arena=Jeden znak na arenę Arena sign=Znak areny +This minigame doesn't exist anymore!= +This arena doesn't exist anymore!= Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=Oj, najwyraźniej znak został źle ustawiony: dobrze, naprawione, kliknij go jeszcze raz! That's not an arena_lib sign!=To nie jest znak arena_lib! No ongoing activity=Żadnych trwających aktywności @@ -508,7 +510,6 @@ The arena is already full!=Arena jest już pełna! ##[ src/utils/utils.lua ]## [!] @1= -You've joined team @1=Dołączono do drużyny @1 ##### not used anymore ##### diff --git a/locale/arena_lib.ru.tr b/locale/arena_lib.ru.tr index 2c69b0e..66270ff 100644 --- a/locale/arena_lib.ru.tr +++ b/locale/arena_lib.ru.tr @@ -22,7 +22,6 @@ OVERWRITE ALL=ПЕРЕЗАПИСАТЬ ВСЁ ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!=Эта мини-игра не существует! @@ -175,6 +174,8 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...=Ожидаем больше игроков... Only the party leader can leave the queue!=Только глава группы может покинуть очередь! The queue has been cancelled due to not enough players=Очередь была отменена из-за недостаточного количества игроков +#utils/utils.lua +You've joined team @1=Вы присоединились к команде @1 ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +405,8 @@ Sign=Табличка Signs=Таблички One sign per arena=Одна табличка на арену Arena sign=Табличка арены +This minigame doesn't exist anymore!= +This arena doesn't exist anymore!= Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!=Ой-ой, как видимо, эта табличка встала криво: вот, поправили, ударьте её снова! That's not an arena_lib sign!=Это не табличка arena_lib! No ongoing activity=Нет активности @@ -508,8 +511,6 @@ The arena is already full!=Арена уже заполнена! ##[ src/utils/utils.lua ]## [!] @1= -#utils/utils.lua -You've joined team @1=Вы присоединились к команде @1 ##### not used anymore ##### diff --git a/locale/template.txt b/locale/template.txt index 34c8a84..c4eb1b0 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -22,7 +22,6 @@ OVERWRITE ALL= ##[ src/admin_tools/minigame_settings.lua ]## ##[ src/api/core.lua ]## ##[ src/api/in_game.lua ]## -##[ src/signs/signs.lua ]## ##[ src/utils/debug.lua ]## This minigame doesn't exist!= @@ -175,6 +174,7 @@ You've been blocked from entering any queue for 10 seconds, due to joining and l Waiting for more players...= Only the party leader can leave the queue!= The queue has been cancelled due to not enough players= +You've joined team @1= ##[ src/api/in_queue.lua ]## ##[ src/map_reset/map_saving.lua ]## @@ -404,6 +404,8 @@ Sign= Signs= One sign per arena= Arena sign= +This minigame doesn't exist anymore!= +This arena doesn't exist anymore!= Uh-oh, it looks like this sign has been misplaced: well, fixed, hit it again!= That's not an arena_lib sign!= No ongoing activity= @@ -508,4 +510,3 @@ The arena is already full!= ##[ src/utils/utils.lua ]## [!] @1= -You've joined team @1= diff --git a/src/signs/signs.lua b/src/signs/signs.lua index da75110..c953285 100644 --- a/src/signs/signs.lua +++ b/src/signs/signs.lua @@ -98,11 +98,11 @@ signs_lib.register_sign("arena_lib:sign", { if not mod_ref then - arena_lib.print_error(p_name, S("This minigame doesn't exist!") .. " (" .. mod .. ")") + arena_lib.print_error(p_name, S("This minigame doesn't exist anymore!") .. " (" .. mod .. ")") return end if not mod_ref.arenas[arenaID] then - arena_lib.print_error(p_name, S("This arena doesn't exist!")) + arena_lib.print_error(p_name, S("This arena doesn't exist anymore!")) return end displaying_infobox[p_name] = {mod = mod, arena_id = arenaID} @@ -118,7 +118,7 @@ signs_lib.register_sign("arena_lib:sign", { local p_name = puncher:get_player_name() if not arena_lib.mods[mod] then - arena_lib.print_error(p_name, S("This minigame doesn't exist!") .. " (" .. mod .. ")") + arena_lib.print_error(p_name, S("This minigame doesn't exist anymore!") .. " (" .. mod .. ")") return end local arena = arena_lib.mods[mod].arenas[arenaID]