Store data in replay to read it at start of replay playback?
Posted: 20 Feb 2014, 13:53
Is this somehow* possible:
While the game is being played, somehow store data in the replay.
Then when the replay is played, somehow read all that data at the start of playback?
The idea is that the game could store information about events that happen in the game.
In the replay the viewer could then be informed about what will happen, before it has happend.
Spring already has stats graphs, now image you could see the endgame stats before the replay has ended.
You would be able to see the future because the future has already happend before, in the past when game was played.
How frohlocking it would be to fast-forward to the interessting points in time!
For example a wupget would tell the viewer "This Commander will explode in a few seconds, watch him."
Or "Nothing interessting will happen in the next 20 minutes."

*(With external files it would already be possible but super inconvient if you download a replay and then have to download a second file and place in some folder etc.)
Maybe if the Lua-VFS could write&read files in the replay?
While the game is being played, somehow store data in the replay.
Then when the replay is played, somehow read all that data at the start of playback?
The idea is that the game could store information about events that happen in the game.
In the replay the viewer could then be informed about what will happen, before it has happend.
Spring already has stats graphs, now image you could see the endgame stats before the replay has ended.
You would be able to see the future because the future has already happend before, in the past when game was played.

How frohlocking it would be to fast-forward to the interessting points in time!
For example a wupget would tell the viewer "This Commander will explode in a few seconds, watch him."
Or "Nothing interessting will happen in the next 20 minutes."

*(With external files it would already be possible but super inconvient if you download a replay and then have to download a second file and place in some folder etc.)
Maybe if the Lua-VFS could write&read files in the replay?