Skip to content

Commit

Permalink
Merge pull request #257 from Oarcinae/add_warning_about_supported_pla…
Browse files Browse the repository at this point in the history
…nets

Fix missing localization for research notification and add warnings about supported surfaces.
  • Loading branch information
Oarcinae authored Nov 13, 2024
2 parents 3c23211 + 9b215c9 commit eb81157
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
---------------------------------------------------------------------------------------------------
Version: 2.1.12
Date: 2024-11-13
Bugfixes:
- Change technology research notification to use localized name.
Info:
- Add warnings regarding which surfaces are currently supported for spawning.
---------------------------------------------------------------------------------------------------
Version: 2.1.11
Date: 2024-11-12
Bugfixes:
Expand Down
2 changes: 1 addition & 1 deletion control.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ end)
script.on_event(defines.events.on_research_finished, function(event)
local research = event.research
-- TODO: Add a non-mod setting to disable this.
SendBroadcastMsg({"oarc-research-finished", research.force.name, research.name})
SendBroadcastMsg({"oarc-research-finished", research.force.name, research.localised_name})
end)

----------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oarc-mod",
"version": "2.1.11",
"version": "2.1.12",
"factorio_version": "2.0",
"title": "Oarc Multiplayer Spawn",
"author": "Oarcinae",
Expand Down
3 changes: 3 additions & 0 deletions lib/gui_tabs/settings_controls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function CreateSettingsControlsTab(tab_container, player)

local label = AddLabel(tab_container, nil, { "oarc-settings-tab-description" }, my_label_style)
label.style.bottom_padding = 5
label.style.maximal_width = 600

local flow = tab_container.add { type = "flow", direction = "horizontal", }

Expand Down Expand Up @@ -78,6 +79,8 @@ end
---@return nil
function CreateSurfaceSettingsSection(container, player)
AddLabel(container, nil, { "oarc-settings-tab-title-surface" }, my_label_header2_style)
local warning = AddLabel(container, nil, { "oarc-settings-tab-surfaces-warning" }, my_warning_style)
warning.style.maximal_width = 300

--- Create a table with 3 columns. Surface Name, Spawning Enabled, Regrowth Enabled
local surface_table = container.add {
Expand Down
5 changes: 3 additions & 2 deletions locale/en/locale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,9 @@ oarc-settings-tab-player-warning=You are not an admin. These settings are read-o
oarc-settings-tab-description=This tab contains the same mod settings in the mod settings menu AND some additional settings that can only be changed in game. Check the Surface Settings tab for surface-specific settings.
oarc-settings-tab-text-field-enter-tooltip=[color=red]You must press ENTER after typing in a text field to save the value![/color]
oarc-settings-tab-title-surface=Enable or Disable Surface Features
oarc-settings-tab-surface-checkbox-tooltip=Enabling this will allow custom spawn areas (the main feature of this mod) on this surface. You need at least one of these enabled for the mod to work.
oarc-settings-tab-surface-secondary-checkbox-tooltip=Enabling this will give players custom secondary spawns when they first travel to this surface. [color=red]This feature is currently a work in progress. If you enable this AFTER landing on a new planet, the next time you travel in a rocket you will be sent to a new spawn![/color]
oarc-settings-tab-surfaces-warning=Only Nauvis as primary and Fulgora as secondary are currently supported at this time! Don't change these settings if you have already landed on other planets.
oarc-settings-tab-surface-checkbox-tooltip=Enabling this will allow players to START with custom spawn areas (the main feature of this mod) on this surface. You need at least one of these enabled for the mod to work.
oarc-settings-tab-surface-secondary-checkbox-tooltip=Enabling this will give players custom secondary spawns when they first travel to this surface. This allows players to have separate landing sites. [color=red]This feature is currently a work in progress. If you enable this AFTER landing on a new planet, the next time you travel in a rocket you will be sent to a new spawn![/color]
oarc-settings-tab-surface-regrowth-checkbox-tooltip=Enabling this will allow the regrowth and world eater features to work on this surface, if those are enabled.
oarc-settings-tab-surface-column-header=Surface
oarc-settings-tab-surface-spawning-enabled=Home
Expand Down

0 comments on commit eb81157

Please sign in to comment.