i want to get a file for each recipe in the Game.
Here is what i have written:
Code: Select all
script.on_event(defines.events.on_player_joined_game, function(event)
for i, recipa in pairs(data.raw["recipe"]) do
game.write_file("recipes/"..recipa.name..".txt", recipa)
end
end)
And this i get in Game:
Click
Can anybody help me?
Greetz,
Luzifer