diff --git a/changelog.txt b/changelog.txt index 0cee222..19ce4c9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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: diff --git a/control.lua b/control.lua index d0b40b9..18fefd8 100644 --- a/control.lua +++ b/control.lua @@ -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) ---------------------------------------- diff --git a/info.json b/info.json index ca071c2..0d2b044 100644 --- a/info.json +++ b/info.json @@ -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", diff --git a/lib/gui_tabs/settings_controls.lua b/lib/gui_tabs/settings_controls.lua index c492933..a73a09c 100644 --- a/lib/gui_tabs/settings_controls.lua +++ b/lib/gui_tabs/settings_controls.lua @@ -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", } @@ -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 { diff --git a/locale/en/locale.cfg b/locale/en/locale.cfg index 7dc22f6..5990ee6 100644 --- a/locale/en/locale.cfg +++ b/locale/en/locale.cfg @@ -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