I think it's a cool feature that you can save your game play to a record file after playing a level, and next time you can watch the replay and/or upload your play to the Internet


acme_pjz {l Wrote}:I think it's a cool feature that you can save your game play to a record file after playing a level, and next time you can watch the replay and/or upload your play to the InternetI have made some puzzle game before and some of them have game record support. I'd like to implement this feature in Meandmyshadow
Any suggestions?
acme_pjz {l Wrote}:I have implemented the experimental game record save/load features in SVN revision 209. When you finished a level the file "test.mnmsrec" will created automatically, and if you press '2' key while playing then "test.mnmsrec" will be loaded and played. Now we should consider how we manage record filesand how do we add "ReplayState" and change replay speed... Any suggestions?
absolutelyEdward_Lii {l Wrote}:Perhaps we should use a certain space in the levelselect screen where the stats will be filled when hovering over the levels.
good idea.Beside the stats could be some icon/button that will play the recording of that go.
This means we store two recordings per level: (best time) and (least number of recordings).
Good idea too, should be some "save last level record" button.Beside these per level recording the user should be able to save replays he wants to keep or wants to use as part of a bug report.
MCMic {l Wrote}:Good idea too, should be some "save last level record" button.
Edward_Lii {l Wrote}:I've been thinking and if we add the replay icons behind the stats it should be easily clickable by the player.
This won't go well with the hovering since the user would have to move his mouse between the levels in order to reach the stats and click the replay button.
Any false move would cause frustration and the user needs to go back to the level he/she wants to play the replay.
Edward_Lii {l Wrote}:What we can do is adding some sort of selected level, the user can select a level by clicking on it.
Instead of directly starting the level the user would be able to go to the stats and select the replays.
Edward_Lii {l Wrote}:If we show a popup like when you finish a levelpack but then every level we could show the stats and a "Save Replay" and "Next level" buttons.
Edward_Lii {l Wrote}:This however removes the flow of playing a levelpack in one go
acme_pjz {l Wrote}:A little bit. Maybe we can use Enter button for the shortcut to play next level, perhaps we could add "Don't display this dialog again" checkbox...
acme_pjz {l Wrote}:Another question: How do we name the record files of level "example.map"? use "example.map-1.mnmsrec" or use "<md5>-1.mnmsrec"? If use the first solution, how do we distinguish file with same name but different folder? If use the second solution, noticed that because of different line endings of Windows and Linux, same level may have different MD5s in different systems
Edward_Lii {l Wrote}:I'm not sure the "Don't display again" option is such a good idea, how should the user re-enable it?
Edward_Lii {l Wrote}:And the user will be unable to save any replays when the popup is disabled.
Edward_Lii {l Wrote}:And perhaps we should create a folder structure similar to the level(pack) one?
Edward_Lii {l Wrote}:The problem still exists with the stats replays, I think it's best if we base them on the level name. (preventing the md5 issue)
acme_pjz {l Wrote}:Of course in Options menu we can re-enable it again![]()
acme_pjz {l Wrote}:Maybe this time the game replay is always savednot sure
acme_pjz {l Wrote}:I have an idea to overcome the md5 issue, that is calculate the md5 based on the TreeStorageNode data structure, thus we ignore the space characters in the level file... But we calculate the MD5 only when we have selected a level to prevent useless computations...
acme_pjz {l Wrote}::( Unfortunately it looks like different version of game will get different MD5 checksum on same fileDo you have such problems?
Edward_Lii {l Wrote}:That's because there was a bug in the md5calc code of the TreeStorageNode as pointed out by MCMic on IRC.
The change was in svn rev. 245, I noticed the changed md5sum too.
Users browsing this forum: No registered users and 1 guest