From 408954c60b0f86ef873b2d13776a8617b032339d Mon Sep 17 00:00:00 2001 From: CosmicWolf <54233835+Enderdraak@users.noreply.github.com> Date: Wed, 5 Aug 2026 02:56:52 +0200 Subject: [PATCH] Factorio: Locale fixes (#6237) --- worlds/factorio/data/mod/locale/en/locale.cfg | 8 +++++--- worlds/factorio/data/mod_template/control.lua | 9 +++++---- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/worlds/factorio/data/mod/locale/en/locale.cfg b/worlds/factorio/data/mod/locale/en/locale.cfg index 7d60d90b43..1ddf282742 100644 --- a/worlds/factorio/data/mod/locale/en/locale.cfg +++ b/worlds/factorio/data/mod/locale/en/locale.cfg @@ -1,14 +1,15 @@ -[map-gen-preset-name] -archipelago=Archipelago - [entity-name] ap-energy-bridge=Archipelago EnergyLink Bridge +[map-gen-preset-name] +archipelago=Archipelago + [map-gen-preset-description] archipelago=World preset created by the Archipelago Randomizer. World may or may not contain actual archipelagos. [technology-name] ap-technology-full=__1__'s __2__ (__3__) +# this comment is added because without this second ' the rest of the file remains a different colour in my edit program ap-technology-hidden=__1__ [technology-description] @@ -31,6 +32,7 @@ receive-sample-item=Received __1__x __2__ sample-inventory-full=Additional items will be sent when inventory space is available. sample-error=Unable to receive __1__x [item=__2__] as this item does not exist. fail-to-place=Failed to place __1__ in __2__ +death-link=Death was granted by __1__ [traps] new-evolution-factor=New evolution factor: __1__ diff --git a/worlds/factorio/data/mod_template/control.lua b/worlds/factorio/data/mod_template/control.lua index 3146e8042d..4038748d4a 100644 --- a/worlds/factorio/data/mod_template/control.lua +++ b/worlds/factorio/data/mod_template/control.lua @@ -407,11 +407,12 @@ function update_player(index) --player.print(serpent.block(data['pending_samples'])) local stack = {} + local quality = "{{ free_sample_quality_name }}" for name, count in pairs(samples) do stack.name = name stack.count = count if script.active_mods["quality"] then - stack.quality = "{{ free_sample_quality_name }}" + stack.quality = quality end if prototypes.item[name] then if character.can_insert(stack) then @@ -420,7 +421,7 @@ function update_player(index) sent = 0 end if sent > 0 then - player.print({"archipelago.receive-sample-item", sent, "[item=" .. name .. ",quality="..stack.quality.."]"}) + player.print({"archipelago.receive-sample-item", sent, "[item=" .. name .. ",quality="..quality.."]"}) data.suppress_full_inventory_message = false end if sent ~= count then -- Couldn't full send. @@ -434,7 +435,7 @@ function update_player(index) samples[name] = nil -- Remove from the list end else - player.print({"archipelago.sample-inventory-full", count, name}) + player.print({"archipelago.sample-error", count, name}) samples[name] = nil end end @@ -842,7 +843,7 @@ commands.add_command("ap-deathlink", "Kill all players", function(call) local force = game.forces["player"] local source = call.parameter or "Archipelago" kill_players(force) - game.print("Death was granted by " .. source) + game.print({"archipelago.death-link",source}) end) commands.add_command("ap-energylink", "Used by the Archipelago client to manage Energy Link", function(call)