A timelapse of a replay

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
User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

A timelapse of a replay

Post by Gergely »

It is great that Factorio has a replay option which makes it very easy to record hundreds of hours of game play very efficiently. Say, I have a saved data with a replay of a very long session in single player vanilla Factorio. I want to create a time lapse of it, in a single camera position, zoomed out. (Using a screen recorder software.) However, the camera follows the player at all times. Is there anything I can do to disable this and set the camera to a fixed position?

I did not find the right place to put this topic, so for the time being, I place it in the General Discussions.
Gameplay help is about gameplay,
Technical help is about anything on software level,
Modding discussions don't quite fit either....
Edit: This topic was recently moved to Technical Help FROM General Discussions.
Last edited by Gergely on Tue Apr 03, 2018 5:36 pm, edited 2 times in total.

JimBarracus
Filter Inserter
Filter Inserter
Posts: 365
Joined: Mon Jul 03, 2017 9:14 am
Contact:

Re: A timelapse of a replay

Post by JimBarracus »

You could use the map mode.
But you can't zoom out very far without using the simplified view.

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: A timelapse of a replay

Post by Gergely »

JimBarracus wrote:You could use the map mode.
But you can't zoom out very far without using the simplified view.
Where is this "map mode"?
Also, I do not mind being unable to zoom out far. I can record multiple instances at different locations, and attach them into a single screen later on.

JimBarracus
Filter Inserter
Filter Inserter
Posts: 365
Joined: Mon Jul 03, 2017 9:14 am
Contact:

Re: A timelapse of a replay

Post by JimBarracus »

Press m (default) and zoom in.
You should see the world and you can move around without the character.
The area needs to be covered by a radar.

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: A timelapse of a replay

Post by Gergely »

JimBarracus wrote:Press m (default) and zoom in.
You should see the world and you can move around without the character.
The area needs to be covered by a radar.
I can't. Not during a replay.

Jap2.0
Smart Inserter
Smart Inserter
Posts: 2339
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: A timelapse of a replay

Post by Jap2.0 »

There's a console command that may help.
There are 10 types of people: those who get this joke and those who don't.

User avatar
Gergely
Filter Inserter
Filter Inserter
Posts: 596
Joined: Sun Apr 10, 2016 8:31 pm
Contact:

Re: A timelapse of a replay

Post by Gergely »

Jap2.0 wrote:There's a console command that may help.
I cannot open the console during a replay.

:x

Hmmm... perhaps doing something with the scenario script of the saved data can solve this problem. But what exactly? (I mean, how do you detach the a camera, and not the player from the character?)

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: A timelapse of a replay

Post by DaveMcW »

Gergely wrote:Hmmm... perhaps doing something with the scenario script of the saved data can solve this problem.
Yes, you can edit the save to include a timelapse script. Add this to the bottom of control.lua.

Code: Select all

script.on_nth_tick(3600, function(event) 
  game.take_screenshot{
    surface = game.surfaces[1],
    position = {0,0},
    resolution = {1280,720},
    zoom = 0.2,
    path = "timelapse/" .. string.format("%06d", event.tick/event.nth_tick) .. ".jpg",
    show_entitiy_info = true,
  }
end)
After you watch the replay, you will end up with a folder full of images. Then you need to find a tool that converts a folder full of images to mp4.

Post Reply

Return to “Technical Help”