Skip to content

Instantly share code, notes, and snippets.

View smickles's full-sized avatar

Michael Carver smickles

View GitHub Profile
@Bilka2
Bilka2 / control.lua
Last active January 30, 2023 04:29
Create a timelapse from a factorio replay save file
-- Just add this to the end of the control.lua file in the save file and then replay the file
-- This sequence is adjusted for https://www.speedrun.com/Factorio/run/mr87xlgy
script.on_nth_tick(300, function(event)
if event.tick < 90000 then
game.take_screenshot{
surface = game.surfaces[1],
position = {-88,-9},
resolution = {1920,1080},
zoom = 0.2,