play status bar in replay mode

play status bar in replay mode

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

play status bar in replay mode

Post by bartvbl »

Probably a very hard to realise idea:
some kind of play/pause/fast forward/fast backward bar, which includes a seeker of the replay.. In that way the replay becomes much more interactive, and in case you didnt see something, you can go back a bit, and play it again.
At least in my opinion :)
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: play status bar in replay mode

Post by Pxtl »

Rewind is currently super-extra-impossible.
User avatar
JohannesH
Posts: 1793
Joined: 07 Apr 2009, 12:43

Re: play status bar in replay mode

Post by JohannesH »

you can go fast forward though, by typing /skip x, where x is the number of seconds from game start you want.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: play status bar in replay mode

Post by Forboding Angel »

Is it seconds or frames? I thought it was frames (in which case, 30 gameframes to a second). If seconds... well that makes things a sight easier :-)
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: play status bar in replay mode

Post by SirMaverick »

/skip n - skip to n.th game second
/skip +n - skip next n game seconds
/skip f n - skip to n.th game frame
zerver
Spring Developer
Posts: 1358
Joined: 16 Dec 2006, 20:59

Re: play status bar in replay mode

Post by zerver »

Pxtl wrote:Rewind is currently super-extra-impossible.
Yeah, that would require dumping of the entire game state at regular intervals. Could work on a system with plenty of RAM, but not worth it imo.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: play status bar in replay mode

Post by knorke »

maybe just have spring restart with the replay and then make it skip
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

Re: play status bar in replay mode

Post by bartvbl »

zerver wrote:
Pxtl wrote:Rewind is currently super-extra-impossible.
Yeah, that would require dumping of the entire game state at regular intervals. Could work on a system with plenty of RAM, but not worth it imo.
Im not sure how spring saves replays, but if it would be just a sequence of commands, the engine can log the commands, which is only a few Kb.
It would need quite a bit of extra coding (backtracing is not easy at all), but I suppose that wouldn't add up at all to the size of those dumps that you need to make in your approach :)
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: play status bar in replay mode

Post by Tobi »

Replays are (just) a sequence of commands now.
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

Re: play status bar in replay mode

Post by bartvbl »

Since you know this stuff:
When you play a replay, does every unit move exactly as in the game the replay comes from, or are there small differences?
Since that would make things a lot easier..

/me mumbles something about me needing to add c++ to the known programming languages array :P
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Re: play status bar in replay mode

Post by Tobi »

Exactly as in the game. Any small difference would quickly snowball the thing into an entirely different game.

That's also why keyframes are hard, they really need to store everything required to restart the simulation at that point.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: play status bar in replay mode

Post by Tribulex »

Um, wouldn't lua work?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: play status bar in replay mode

Post by Argh »

We could store a fairly complete game-state via Lua, yeah. At least as complete as it probably needs to be, imo.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: play status bar in replay mode

Post by AF »

Argh wrote:We could store a fairly complete game-state via Lua, yeah. At least as complete as it probably needs to be, imo.
Someone attempted that with supreme commander for multiplayer
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: play status bar in replay mode

Post by Argh »

I wasn't thinking about MP, tbh. Save-games only really matter for SP, imo.
User avatar
bartvbl
Posts: 346
Joined: 21 Mar 2009, 15:55

Re: play status bar in replay mode

Post by bartvbl »

good point there!
idd: code that would be written for an application like this could easily be reused to restore a previously saved session. It only needs to be adapted to the spring save file, and done :)

Just a small idea (and al ittle off-topic): is it possible to restore save games with a h***ck of a lot of automatic give commands, and then restoring the commands each unit got? Or would that just confuse the AI and cause it to crash?
Post Reply

Return to “Feature Requests”