top of page
Search
Writer's pictureIaron Araujo

Event Record and Replay Trial Tutorial

This week I finished the Record and Replay trial and it is now possible to play the game while recording PlaySoundEvent, CameraTargetChangedEvent, CharacterMoveInputEvent and probably every InputEvent!


To test the trial, it is necessary to clone this repository https://github.com/iaronaraujo/Terasology/tree/record_replay_trial and set it up as you normally would with any Terasology repository. Open it with Intellij and execute the game using "TerasologyPC" configuration. Once the game is open, go to "Single player" and create a new game. Once the game loads, exit the game, since these first steps are only the initial setup.


Now that we have a game in the "saves" directory, create a new directory called "saves2" in the same place of the "saves" one. Copy the game folder from "saves" and paste it to "saves2". This is important so both the record and replay begin with the exact same game worlds.


With everything ready, it is time to begin the record and replay! First, execute the game again with "TerasologyPC" configuration, click on "single player" and load the game you just set up. When the game is loaded, your events are already being recorded, so play the game a little bit! Once you feel you've already done enough, press "esc" to open the game menu and then click "Exit to main menu". This will generate a file with some information about the recorded events. Now that you are at the main menu again, time to begin the replay!


Without closing the game, click on "Singleplayer" again, and notice that the saves path was changed to "saves2". Click to load the game, and once it is loaded, it is necessary to move your mouse a little, even if that apparently doesn't do anything. Once you've done that, just wait a little bit and you will see your character replaying the actions you've made during the record process!


Once the replay is done, the game menu will be open and you will be able to control your character again!


Keep in mind that everytime you want to make a recording and replay what you recorded, it is necessary to copy the game folder on "saves" to "saves2". For example, if you intend to record your actions on "Game 1", you need to copy "saves/Game 1" to "saves2".



5 views0 comments

Recent Posts

See All

Google Summer of Code 2018 Final Report

Organization: TerasologyFoundation / MovingBlocks Project: Event Recording Feature Terasology is a voxel sandbox game that focuses on...

Trial Updated with Persistence

The https://github.com/iaronaraujo/Terasology/tree/record_replay_trial branch was updated with Persistence! It is now possible to record...

Introdutory Post

Hello, my name is Iaron and I am one of the Google Summer of Code (GSOC) students working for MovingBlocks/Terasology Foundation! My...

Comments


bottom of page