Game Development Community

Instant-Replay

by Smelly McBeard · in Torque 3D Professional · 07/23/2009 (2:44 pm) · 3 replies

Is it possible in Torque 3D to have a feature like Instant Replay? Like if I played a racing game and wanted to view a replay of how well I just raced on a course could I do that? And how would I go about doing that would I have to actually edit the source code? Any help would be great thanks.

#1
07/23/2009 (4:56 pm)
Torque still has the old Journal system which records user and network inputs to allow for playback later... but its not a good solution for replays.

To do replays you really need your own system or some sort of extension on Journals. If Journals were extended to captue a state snapshot at some interval... every 5 to 10 seconds... you could do replays by finding the nearest snapshot, restoring that state, then fast forwarding to where you want to really start the replay.

It would be tricky... but as always i bet someone in the community has already done it before.
#2
07/24/2009 (7:57 am)
It's not that hard, if you brute force it and abuse the networked system: just keep a copy of the network packets sent to the client on every tick. Whenever you want to replay, just re-send those packets in the same order.
#3
07/24/2009 (8:05 am)
wouldn't this be similar to demo recording? That has been around since like quake 2. I'm pretty sure there was a resource for that.