From 4afe9749c2161fe3890125ed45303b4c23842744 Mon Sep 17 00:00:00 2001 From: Oarcinae Date: Wed, 25 Sep 2024 20:54:43 -0400 Subject: [PATCH] Fix chat permissions in holding pen and disable template scenario to avoid confusion. --- {scenarios => TEMPLATE_SCENARIO}/OARC/control.lua | 10 +++++----- .../OARC/description.json | 0 {scenarios => TEMPLATE_SCENARIO}/OARC/image.png | Bin .../OARC/locale/en/locale-scenario.cfg | 0 TEMPLATE_SCENARIO/README.txt | 3 +++ changelog.txt | 7 +++++++ info.json | 2 +- lib/config.lua | 3 +-- lib/separate_spawns.lua | 2 +- 9 files changed, 18 insertions(+), 9 deletions(-) rename {scenarios => TEMPLATE_SCENARIO}/OARC/control.lua (89%) rename {scenarios => TEMPLATE_SCENARIO}/OARC/description.json (100%) rename {scenarios => TEMPLATE_SCENARIO}/OARC/image.png (100%) rename {scenarios => TEMPLATE_SCENARIO}/OARC/locale/en/locale-scenario.cfg (100%) create mode 100644 TEMPLATE_SCENARIO/README.txt diff --git a/scenarios/OARC/control.lua b/TEMPLATE_SCENARIO/OARC/control.lua similarity index 89% rename from scenarios/OARC/control.lua rename to TEMPLATE_SCENARIO/OARC/control.lua index 07b33ae..e37578a 100644 --- a/scenarios/OARC/control.lua +++ b/TEMPLATE_SCENARIO/OARC/control.lua @@ -9,7 +9,7 @@ -- Once you have a config you like, it's a good idea to save it for later use so you don't lose it if you update the -- scenario. I will try to avoid making breaking changes to this, but no guarantees. --- To see what settings are available, look at the config_mod.lua file in the mod folder. +-- To see what settings are available, look at the config_mod.lua file in the mod folder itself. -- Check if the OARC mod is loaded. Other than that, it's an empty scenario! script.on_init(function(event) @@ -32,12 +32,12 @@ local oarc_scenario_interface = modified_settings.server_info.welcome_msg_title = "THIS IS A TEMPLATE SCENARIO" modified_settings.server_info.welcome_msg = "This is a template scenario. You can modify the settings in the control.lua file. If you are seeing this message, you did not modify the scenario correctly." - modified_settings.spawn_general.shape = "circle" + -- modified_settings.spawn_general.shape = "circle" -- Some examples of overriding surface config (which is not accessible from the mod settings!) - modified_settings.surfaces_config["nauvis"].starting_items.player_start_items = { - ["coal"] = 1, -- You're on the naughty list! - } + -- modified_settings.surfaces_config["nauvis"].starting_items.player_start_items = { + -- ["coal"] = 1, -- You're on the naughty list! + -- } ---------------------------------------------------------------------------------------------------------------- return modified_settings end diff --git a/scenarios/OARC/description.json b/TEMPLATE_SCENARIO/OARC/description.json similarity index 100% rename from scenarios/OARC/description.json rename to TEMPLATE_SCENARIO/OARC/description.json diff --git a/scenarios/OARC/image.png b/TEMPLATE_SCENARIO/OARC/image.png similarity index 100% rename from scenarios/OARC/image.png rename to TEMPLATE_SCENARIO/OARC/image.png diff --git a/scenarios/OARC/locale/en/locale-scenario.cfg b/TEMPLATE_SCENARIO/OARC/locale/en/locale-scenario.cfg similarity index 100% rename from scenarios/OARC/locale/en/locale-scenario.cfg rename to TEMPLATE_SCENARIO/OARC/locale/en/locale-scenario.cfg diff --git a/TEMPLATE_SCENARIO/README.txt b/TEMPLATE_SCENARIO/README.txt new file mode 100644 index 0000000..cb908b3 --- /dev/null +++ b/TEMPLATE_SCENARIO/README.txt @@ -0,0 +1,3 @@ +This is provided only for advanced server hosts who want to run headless configurations and configure all the available settings in the config.lua file! +You must copy the OARC folder (rename if you want) to your own scenarios folder. +Then edit the control.lua file. Follow the instructions in the control.lua file! \ No newline at end of file diff --git a/changelog.txt b/changelog.txt index c93b19f..22e1c62 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,11 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.1 +Date: 2024-09-25 + Bugfixes: + - Fixed that players in holding pen didn't have console permissions to be able to chat with other players before spawning. + Ease of use: + - Renamed scenarios folder to disable the provided template and added a readme file too. This should make it very clear that the scenario is only a template that must MODIFY first before you use it. Don't worry about the scenario unless you are doing headless hosting and don't want to upload a save file everytime. +--------------------------------------------------------------------------------------------------- Version: 2.0.0 Date: 2024-09-25 Major Features: diff --git a/info.json b/info.json index ef9b2c8..dcb4578 100644 --- a/info.json +++ b/info.json @@ -1,6 +1,6 @@ { "name": "oarc-mod", - "version": "2.0.0", + "version": "2.0.1", "factorio_version": "1.1", "title": "Oarc Multiplayer Spawn", "author": "Oarcinae", diff --git a/lib/config.lua b/lib/config.lua index 660df11..f1237b9 100644 --- a/lib/config.lua +++ b/lib/config.lua @@ -47,8 +47,7 @@ NAUVIS_STARTER_ITEMS = crashed_ship_resources = { ["electronic-circuit"] = 200, ["iron-gear-wheel"] = 100, - ["copper-cable"] = 200, - ["steel-plate"] = 100 + ["copper-cable"] = 200 }, crashed_ship_wreakage = { ["iron-plate"] = 100 -- I don't recommend more than 1 item type here! diff --git a/lib/separate_spawns.lua b/lib/separate_spawns.lua index cc3669e..b7d7447 100644 --- a/lib/separate_spawns.lua +++ b/lib/separate_spawns.lua @@ -108,7 +108,7 @@ function CreateHoldingPenPermissionsGroup() holding_pen_group.set_allows_action(defines.input_action.gui_text_changed, true) holding_pen_group.set_allows_action(defines.input_action.gui_value_changed, true) holding_pen_group.set_allows_action(defines.input_action.start_walking, true) - -- holding_pen_group.set_allows_action(defines.input_action.write_to_console, true) + holding_pen_group.set_allows_action(defines.input_action.write_to_console, true) end