diff --git a/parts/language/lang_en.lua b/parts/language/lang_en.lua index af588351..61372a7b 100644 --- a/parts/language/lang_en.lua +++ b/parts/language/lang_en.lua @@ -73,6 +73,9 @@ return { cc_fixed="CC is incompatible with fixed sequences.", cc_swap="CC is incompatible when the hold mode is set to Swap.", cc_solid="CC is incompatible with filled line in the field.", + cc_field_too_high="CC is incompatible with fields higher than 40.", + ai_prebag="AI is incompatible with custom sequences that contain non-tetrominoes.", + ai_mission="AI is incompatible with custom missions.", switchSpawnSFX="Please turn on the block spawn SFX!", needRestart="Restart to apply all changes.", diff --git a/parts/language/lang_es.lua b/parts/language/lang_es.lua index 1ce41da1..345fcd65 100644 --- a/parts/language/lang_es.lua +++ b/parts/language/lang_es.lua @@ -72,6 +72,7 @@ return { cc_fixed="CC no es compatible con piezas prefijadas", cc_swap="CC no es compatible con Swap Hold", -- cc_solid="CC is incompatible with filled line in the field.", + -- cc_field_too_high="CC is incompatible with fields higher than 40.", switchSpawnSFX="Habilita los sonidos de aparición de las piezas ;)", needRestart="Reinicia para aplicar los cambios.", diff --git a/parts/language/lang_fr.lua b/parts/language/lang_fr.lua index ff7c8112..eff6c62b 100644 --- a/parts/language/lang_fr.lua +++ b/parts/language/lang_fr.lua @@ -73,6 +73,7 @@ return { cc_fixed="CC est incompatible avec les séquences fixes", cc_swap="CC est incompatible avec le mode de maintien du swap", -- cc_solid="CC is incompatible with filled line in the field.", + -- cc_field_too_high="CC is incompatible with fields higher than 40.", switchSpawnSFX="Activez les effets sonores d'apparition des pièces pour jouer.", needRestart="Redémarrez pour appliquer toutes les modifications.", diff --git a/parts/language/lang_id.lua b/parts/language/lang_id.lua index 8526b149..67556668 100644 --- a/parts/language/lang_id.lua +++ b/parts/language/lang_id.lua @@ -74,6 +74,7 @@ return { cc_fixed="CC tidak cocok dengan urutan tetap.", cc_swap="CC tidak cocok dengan mode simpan tukar.", -- cc_solid="CC is incompatible with filled line in the field.", + -- cc_field_too_high="CC is incompatible with fields higher than 40.", switchSpawnSFX="Nyalakan efek suara munculan blok!", needRestart="Ulangi untuk menerapkan perubahan.", diff --git a/parts/language/lang_ja.lua b/parts/language/lang_ja.lua index 21a7d958..ec73b2a6 100644 --- a/parts/language/lang_ja.lua +++ b/parts/language/lang_ja.lua @@ -74,6 +74,7 @@ return { cc_fixed="CCはミノ順の指定に非対応です!", cc_swap="CCはホールドモード、Swapに非対応です!", -- cc_solid="CC is incompatible with filled line in the field.", + -- cc_field_too_high="CC is incompatible with fields higher than 40.", switchSpawnSFX="ブロック出現時の効果音をONにしてください!", needRestart="すべての変更を適用する為にリスタートしてください!", diff --git a/parts/language/lang_pt.lua b/parts/language/lang_pt.lua index f3505b04..02176d87 100644 --- a/parts/language/lang_pt.lua +++ b/parts/language/lang_pt.lua @@ -63,6 +63,7 @@ return { -- cc_fixed="CC is incompatible with fixed sequences", -- cc_swap="CC is incompatible with swap holdmode", -- cc_solid="CC is incompatible with filled line in the field.", + -- cc_field_too_high="CC is incompatible with fields higher than 40.", switchSpawnSFX="Switch on spawn SFX to play", needRestart="Funciona após reiniciar", diff --git a/parts/language/lang_symbol.lua b/parts/language/lang_symbol.lua index 496430c4..350bb6e2 100644 --- a/parts/language/lang_symbol.lua +++ b/parts/language/lang_symbol.lua @@ -63,6 +63,7 @@ return { cc_fixed="CC X!!!", cc_swap="CC X!!!", cc_solid="CC X!!!", + cc_field_too_high="CC X!!!", needRestart="!!*#R#*!!", loadError_errorMode="'$1' ↑x!: no load mode '$2'", diff --git a/parts/language/lang_vi.lua b/parts/language/lang_vi.lua index b90d988d..b978e38d 100644 --- a/parts/language/lang_vi.lua +++ b/parts/language/lang_vi.lua @@ -78,6 +78,8 @@ return { cc_fixed="CC không tương thích với trình xáo gạch cố định", cc_swap="CC không tương thích với chế độ Hold là Chuyển", cc_solid="CC không tương thích với bảng có hàng đã lấp đầy.", + -- cc_solid="CC is incompatible with filled line in the field.", + -- cc_field_too_high="CC is incompatible with fields higher than 40.", switchSpawnSFX="Vui lòng bật Spawn SFX để chơi!", needRestart="Khởi động lại để áp dụng mọi thay đổi.", diff --git a/parts/language/lang_zh.lua b/parts/language/lang_zh.lua index 352bcb24..ad486db8 100644 --- a/parts/language/lang_zh.lua +++ b/parts/language/lang_zh.lua @@ -73,6 +73,7 @@ return { cc_fixed="不能同时开启CC和固定序列", cc_swap="不能同时开启CC和swap的暂存模式", cc_solid="开启CC时不能存在预先填满的行", + cc_field_too_high="开启CC时最高出块高度不能超过40", switchSpawnSFX="请开启方块生成音效", needRestart="重新开始以生效", diff --git a/parts/language/lang_zh_code.lua b/parts/language/lang_zh_code.lua index 1dbab0be..b4e30f24 100644 --- a/parts/language/lang_zh_code.lua +++ b/parts/language/lang_zh_code.lua @@ -72,6 +72,7 @@ return { cc_fixed="assert(AI==CC and Sequence==Fixed)", cc_swap="assert(AI==CC and Hold.Mode==Swap)", cc_solid="assert(AI==CC and filledLine in Field)", + cc_field_too_high="assert(AI==CC and Field.Height>=40)", switchSpawnSFX="SpawnSFX=false", needRestart="NeedRestart=true", diff --git a/parts/language/lang_zh_trad.lua b/parts/language/lang_zh_trad.lua index 070da6b4..a59caa09 100644 --- a/parts/language/lang_zh_trad.lua +++ b/parts/language/lang_zh_trad.lua @@ -73,6 +73,7 @@ return { cc_fixed="不能同時開啟CC和固定序列", cc_swap="不能同時開啟CC和swap的暫存模式", cc_solid="開啟CC時不能存在預先填滿的行", + cc_field_too_high="開啓CC時最高出塊高度不能超過40", switchSpawnSFX="請開啟方塊生成音效", needRestart="重新啟動以應用所有更改", diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index 5ad69f0c..e9fc1139 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -118,6 +118,13 @@ local function _play(mode) MES.new('error',text.cc_swap) return end + if CUSTOMGAME_LOCAL.customenv.fieldH>=35 then + -- the error message says 40, but we detect 35 + -- because with a few garbage lines, the field height can be pushed to 40 + MES.new('warn',text.cc_field_too_high) + -- warning instead of error because we think it's not a big deal + -- the bot just dies very quickly + end for _,F in next,CUSTOMGAME_LOCAL.field do for y=1,#F do if not TABLE.find(F[y],0) then