From b3a697df8cf248c705661390840526bca2655014 Mon Sep 17 00:00:00 2001 From: Oarcinae Date: Wed, 20 Nov 2024 16:11:28 -0500 Subject: [PATCH] Fix missing migration for regrowth surface init and updated one of the mod setting descriptions. --- changelog.txt | 2 +- locale/en/locale-mod-settings.cfg | 2 +- migrations/oarc-mod-v2.1.13.lua | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index eb5f91c..d0ca844 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,6 @@ --------------------------------------------------------------------------------------------------- Version: 2.1.13 -Date: ???? +Date: 2024-11-20 Major Features: - Adding support for secondary spawns on Gleba, Vulcanus and Aquilo. This is still experimental and will likely have some issues. Please report any bugs you find. If you want to use this feature, you must go into the in game GUI and check the enable secondary spawns checkbox for the other planets specifically. Changes: diff --git a/locale/en/locale-mod-settings.cfg b/locale/en/locale-mod-settings.cfg index 23414ce..9354356 100644 --- a/locale/en/locale-mod-settings.cfg +++ b/locale/en/locale-mod-settings.cfg @@ -94,7 +94,7 @@ oarc-mod-main-force-name=The name of the main force. This is the default team th oarc-mod-default-surface=The default surface that players will spawn on if they join the main team or if spawning on other surfaces is not enabled. oarc-mod-scale-resources-around-spawns=This scales resources around every spawn area so far away spawns aren't immediately next to very rich deposits. -oarc-mod-modified-enemy-spawning=This scales the enemy spawning globally based on the allowed spawn distances to avoid every spawn being surrounded by behemoth worms. +oarc-mod-modified-enemy-spawning=This changes and scales enemy spawning in several ways to ensure that each spawn area is safe regardless of evolution level or distance from map center. I highly recommend leaving this feature enabled, as players would likely be overrun by enemies immediately when spawning or landing on new planets. # oarc-mod-modified-enemy-easy-evo=This is the maximum evolution that the enemies in the warning zone (closest) to a spawn will be FIXED at to ensure all players have a safe start! The warning zone area can be configured via the custom scenario. # oarc-mod-modified-enemy-medium-evo=This is the maximum evolution that the enemies in the danger zone (next closest) to a spawn will be allowed to reach. Helps ensure players have a safe start! The danger zone area can be configured via the custom scenario. oarc-mod-minimum-online-time=The minimum time a player must be online before they leave, otherwise their spawn area will be cleaned up. diff --git a/migrations/oarc-mod-v2.1.13.lua b/migrations/oarc-mod-v2.1.13.lua index b2fc216..94977a1 100644 --- a/migrations/oarc-mod-v2.1.13.lua +++ b/migrations/oarc-mod-v2.1.13.lua @@ -4,7 +4,12 @@ -- TODO: Hopefully a temporary measure to make sure map center never gets deleted. -- If we can detect and redirect cargo-pods, then this can be removed. --- Loop through each surface +-- Regrowth make sure all planet surfaces are initialized first +for _,planet in pairs(game.planets) do + RegrowthInitSurface(planet.name, storage.ocfg.regrowth.enable_regrowth) +end + +-- Loop through each surface and ensure the center is marked safe from regrowth. for _,surface in pairs(game.surfaces) do if (storage.rg[surface.name] ~= nil) then for i = -2, 2 do