list setting fix
This commit is contained in:
parent
ce4a3f267b
commit
ca8c65e00b
3 changed files with 20 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
Version: 0.0.3
|
Version: 0.0.3
|
||||||
Date: 2022-02-11
|
Date: 2022-02-11
|
||||||
|
Fixes:
|
||||||
|
- List mod setting fixes
|
||||||
Changes:
|
Changes:
|
||||||
- Minor SE recipe updates
|
- Minor SE recipe updates
|
||||||
---------------------------------------------------------------------------------------------------
|
---------------------------------------------------------------------------------------------------
|
||||||
|
|
|
||||||
16
control.lua
Normal file
16
control.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
local util = require("control-util")
|
||||||
|
|
||||||
|
function on_console_chat(event)
|
||||||
|
if event.message and string.lower(event.message) == "bzlist" then
|
||||||
|
local player = game.players[event.player_index]
|
||||||
|
if player and player.connected then
|
||||||
|
local list = util.get_list()
|
||||||
|
if list and #list>0 then
|
||||||
|
local filename = util.me.name..".txt"
|
||||||
|
game.write_file(filename, list, false, event.player_index)
|
||||||
|
player.print("Wrote recipes to script-output/"..filename)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
script.on_event(defines.events.on_console_chat, on_console_chat)
|
||||||
|
|
@ -59,10 +59,12 @@ dirty-water-filtration-aluminum=Filter dirty water, giving aluminum ore [item=al
|
||||||
|
|
||||||
[mod-setting-name]
|
[mod-setting-name]
|
||||||
bzaluminum-recipe-bypass=Bypass recipes
|
bzaluminum-recipe-bypass=Bypass recipes
|
||||||
|
bzaluminum-list=Make a list of modified recipes
|
||||||
bzaluminum-more-entities=Aluminum entities
|
bzaluminum-more-entities=Aluminum entities
|
||||||
bzaluminum-sulfuric=Use aluminum in sulfuric acid. Default "yes". Use with care.
|
bzaluminum-sulfuric=Use aluminum in sulfuric acid. Default "yes". Use with care.
|
||||||
|
|
||||||
[mod-setting-description]
|
[mod-setting-description]
|
||||||
bzaluminum-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
bzaluminum-recipe-bypass=Skip modifying these recipes (comma-separated list).
|
||||||
|
bzaluminum-list=If enabled, the text command [color=orange]BZList[/color] will dump a file to the script-output directory with a full list of recipes modified.\nRecommended to turn this off after you are done configuring your other settings.
|
||||||
bzaluminum-more-entities=Adds aluminum entities (currently just a aluminum chest).
|
bzaluminum-more-entities=Adds aluminum entities (currently just a aluminum chest).
|
||||||
bzaluminum-sulfuric=Adds compatibility for old saves. Do NOT change to "no" for new saves. Will be removed (and always "yes") in 2022.
|
bzaluminum-sulfuric=Adds compatibility for old saves. Do NOT change to "no" for new saves. Will be removed (and always "yes") in 2022.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue