I needed this too - so FYI
- Go to
%appdata%\Factorio\mods\recipelister_2.8.0.zip\recipelister
- Extract
control.lua
So the first 3 lines are currently:
require("json")
function readFluidBox(pro)
Replace that with:
require("json")
remote.add_interface(
"RecipeLister",
{
-- /c remote.call("RecipeLister", "consoleLog");
consoleLog = function()
consoleLog()
end,
-- /c remote.call("RecipeLister", "export_recipes");
export_recipes = function()
-- Use the player who executed the command
local player = game.player
if player then
local event = { player_index = player.index }
acquireData(event)
else
log("Error: Could not determine the player index.")
end
end
}
)
function consoleLog()
game.player.print "RecipeLister - This is not the greatest test text in the world, no. This is just a tribute! Couldn't remember the greatest test text in the world, yeah - no! This is a tribute! To the greatest test text in the world"
end
function readFluidBox(pro)
Or if you're not too comfortable editing LUA, here's the entire file you need: https://pastebin.com/raw/8migU8Yi - you can just copy that and paste everything into control.lua.
Once you're done editing, drop the control.lua file back into the zip folder, and override the existing file
Now you should be able to do:
- /c remote.call("RecipeLister", "consoleLog")
For testing purposes, to see if your changes actually worked
Or:
- /c remote.call("RecipeLister", "export_recipes")
To actually export everything