[0.17.59] Problem with replay timelapse

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
DerBaum123
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Aug 03, 2019 4:06 pm
Contact:

[0.17.59] Problem with replay timelapse

Post by DerBaum123 »

Hi,
I started a game in 0.17.59 with replay activated some weeks ago. Now I wanted to create a timelapse from the replay. In Version 0.16 you could just add

Code: Select all

script.on_nth_tick(3600, function(event) 
  game.take_screenshot{
    surface = game.surfaces[1],
    position = {0,0},
    resolution = {4096,2160},
    zoom = 1.0,
    path = "timelapse/" .. string.format("%06d", event.tick/event.nth_tick) .. ".jpg",
    show_entitiy_info = true,
  }
end)
to the control.lua in your samegame. When you play the replay this little script would take a screenshot every minute. Some ffmpeg and your timelapse is done.

But when I tried this in 0.17.59 it just created an empty folder "timelapse" but nothing more.

After some research I found this
0.17.13 Bugfixes
[...]
Fixed that replays could trigger autosaves and take screenshots
(https://wiki.factorio.com/Version_history/0.17.0)

Is it really a bug that you can take screenshot in a replay?

Of course, you could take the screenshots while playing with the script. But with a slow computer this is annoying.
One solution would be adding a "save timelapse" option in the replay gui in vanilla

What do you thinks guys?

Post Reply

Return to “Technical Help”