But when i run same command from console it wokred.
Here is my code what iam putting into control.lua of my replay.
Code: Select all
script.on_nth_tick(3600, function(event)
game.take_screenshot{
surface = game.surfaces[1],
position = {50,0},
resolution = {2000,1500},
zoom = 0.25,
path = "timelapse/" .. string.format("%06d" , event.tick/event.nth_tick) .. ".png",
show_entitiy_info = false
}
end)