From 5cc99d86d517ab5fb6ce3eb3163fec5a365b470e Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 15 May 2025 22:21:57 +0900 Subject: [PATCH 1/2] Update Tool GUI Locale (#394) * Update tool.lua * Update tool.lua * Update zh-CN.cfg * Update zh-TW.cfg --- exp_legacy/module/modules/gui/tool.lua | 3 ++- exp_scenario/module/locale/zh-CN.cfg | 4 ++-- exp_scenario/module/locale/zh-TW.cfg | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/exp_legacy/module/modules/gui/tool.lua b/exp_legacy/module/modules/gui/tool.lua index 6ccfc7ff..cce6b157 100644 --- a/exp_legacy/module/modules/gui/tool.lua +++ b/exp_legacy/module/modules/gui/tool.lua @@ -50,10 +50,11 @@ local tool_gui_arty_b = Gui.element("tool_gui_arty_b") ):on_click(function(def, player, element) if Selection.is_selecting(player, SelectionArtyArea) then Selection.stop(player) + player.print{ "exp-commands_artillery.exit" } else Selection.start(player, SelectionArtyArea) - player.print{ "tool.entered-area-selection" } + player.print{ "exp-commands_artillery.enter" } end end) diff --git a/exp_scenario/module/locale/zh-CN.cfg b/exp_scenario/module/locale/zh-CN.cfg index 09cc70d3..29d134fd 100644 --- a/exp_scenario/module/locale/zh-CN.cfg +++ b/exp_scenario/module/locale/zh-CN.cfg @@ -13,8 +13,8 @@ format=[AC] __1__: __2__ [exp-commands_artillery] description=火炮遙控 invalid-area=所選地區無效 -enter=現在進入區域選擇 -exit=已進入區域選擇 +enter=現在進入火炮區域選擇 +exit=已進入火炮區域選擇 [exp-commands_bot-queue] description=取得或更改建設隊列數量。 diff --git a/exp_scenario/module/locale/zh-TW.cfg b/exp_scenario/module/locale/zh-TW.cfg index 09cc70d3..29d134fd 100644 --- a/exp_scenario/module/locale/zh-TW.cfg +++ b/exp_scenario/module/locale/zh-TW.cfg @@ -13,8 +13,8 @@ format=[AC] __1__: __2__ [exp-commands_artillery] description=火炮遙控 invalid-area=所選地區無效 -enter=現在進入區域選擇 -exit=已進入區域選擇 +enter=現在進入火炮區域選擇 +exit=已進入火炮區域選擇 [exp-commands_bot-queue] description=取得或更改建設隊列數量。 From 8b1166a135920c1824dcb311d62db34668a2ad9e Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 15 May 2025 22:22:27 +0900 Subject: [PATCH 2/2] Fix wagons being put into automatic mode (#393) --- exp_scenario/module/commands/trains.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exp_scenario/module/commands/trains.lua b/exp_scenario/module/commands/trains.lua index 0df7b2c7..2a122377 100644 --- a/exp_scenario/module/commands/trains.lua +++ b/exp_scenario/module/commands/trains.lua @@ -11,8 +11,10 @@ local module = {} function module.manual(player, surface, force) local trains = game.train_manager.get_trains{ + stock = "locomotive", has_passenger = false, is_manual = true, + is_moving = false, surface = surface, force = force, }