My goal is to be able to record a game to a file and then watch it like
a replay/demo. This patch adds the recording part, by storing actions to
a file (~/.wormux/record.dat). Rate is around 1KB/s.

My planned roadmap:
- update GUIs for entering more thoughtful information in the file
- read the file and somewhat be able to launch the replay.
- provide another menu entry for loading replays.

Ultimately, after that, cool things could be to:
- be able to fast forward
- modify replay file format (v2) to introduce key frames where full
synchronisation can be performed (difficult, requires full game state
storage); this could be useful for live action replay during game
- be able to seek back during replay
- update gui for any of the above actions that are possible

But let's concentrate for now on what this patch does. There are 3 steps:
- recording actions, which requires some modification to the Action class
- the Replay class where most things is and will be implemented, and
makefile.am to match that
- interfacing with it; basically, wherever network packets are sent, we
store them to in the Replay buffer

I believe this requires some real review before going in. The changes
are not simple, and could become even more intrusive with time. Maybe
that's a dead end, and instead, creating a local server and client is a
simpler solution (a la X11, where nothing really goes in the network).

Comments highly sought after.

Best regards,
Kurosu[RFC
_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à