Replay Tweak

Replay Tweak

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Replay Tweak

Post by Maelstrom »

Just a small little thing to add to the replay files to make my life easer. Could the current Spring version and the time/date the game was played be added to the replay file? Something like:

Code: Select all

[GAME]
{
        //Other Information
        
        Version=0.07b3;
        DateTime=2006-04-05 11:44:23;
}
Also, if possible, could the date/time be the date/time for GMT +0?

Thanks
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Bump.

Any news on this at all? I cant imagine it being hard to do...
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

Should be pretty trivial. If no one has done it in the next few days, I'll patch it up. (Gotta re-acquire the source and libraries etc first). Since it really won't have any side-affects, I think no one will have a problem with me putting it in :)
User avatar
IceXuick
Posts: 519
Joined: 14 Mar 2006, 01:46

Post by IceXuick »

nice idea!

offtopic question.. Is it possible to rewind a replay.. if i want to look at the nice comm explosion again :) !!
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

jouninkomiko: Thanks for that, it will be much appreciated.

IceX: Nope. Lots of people want it, but it would be hell to implement.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

IceXuick wrote:nice idea!

offtopic question.. Is it possible to rewind a replay.. if i want to look at the nice comm explosion again :) !!
Only technical possibilities for this would be:
1) Store keyframes every now and then and allow '(re)starting' the replay from any keyframe. This will probably cause hiccups during gameplay though, and will make the replay files MUCH larger.
2) When rewinding the replay, restart it from the beginning and run it at max speed (100% cpu) until the desired poiint has been reached. This is easier but still much work because the engine isn't really capable of restarting a game.
User avatar
IceXuick
Posts: 519
Joined: 14 Mar 2006, 01:46

Post by IceXuick »

bollucks! but not a major problem.. it's a pity..
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

[VERSION]
{
GameVersion=0.70b3;
DateTime=2006-3-21 21:18:24 GMT;
}

Apparently Zaphod added the [VERSION] tag with GameVersion there already sometime in one of the past releases. I'm committing the code that adds DateTime in the manner above
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Thanks, this will really help wth what im making. When the new version comes out, expect a new release from me!
User avatar
Maelstrom
Posts: 1950
Joined: 23 Jul 2005, 14:52

Post by Maelstrom »

Actually, now that I think about it, would it be possible to have the time in the Unix time format, as PHP's time outputs? Sorry for not mentioning this earlier, but after thinking about it, this would work much better. Thanks again
Post Reply

Return to “Engine”