Skip to content

Commit

Permalink
Merge pull request #149 from Oarcinae/dev
Browse files Browse the repository at this point in the history
Fix chat permissions and disable template scenario
  • Loading branch information
Oarcinae authored Sep 26, 2024
2 parents f640708 + 4afe974 commit 841ba3b
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
File renamed without changes.
File renamed without changes
3 changes: 3 additions & 0 deletions TEMPLATE_SCENARIO/README.txt
Original file line number Diff line number Diff line change
@@ -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!
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -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:
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.0.0",
"version": "2.0.1",
"factorio_version": "1.1",
"title": "Oarc Multiplayer Spawn",
"author": "Oarcinae",
Expand Down
3 changes: 1 addition & 2 deletions lib/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
2 changes: 1 addition & 1 deletion lib/separate_spawns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 841ba3b

Please sign in to comment.