NOOB - Making Replay System Work - Only the player position is stored.

I am trying to make the replay system work and I am failing spectacularly. I have two questions:

  1. When I record a replay in the default “first-person shooter” template scene, only the movement of the player is stored in the replay, not the bullets, nor the position of boxes.
  2. Can I somehow show replay from the same camera view of the player?

Thanks!

Hi,
The TLDR of the replaysystem is, that it records network traffic and replays it. Therefore, only actions, which are replicated, are recorded and part of the replay. I doubt the template was build with Networking/Replication in mind, therefore nothing but the player is recorded. After all, the unreal character has some solid replication build in, which is why it is recorded.

We use it in our own project, and the way it works is really cool. Because our game is Multiplayer, we get it out of the box (mostly :wink: )

What you can try for your template based project (result quality may vary!):
Set the boxes to replicated and tick “replicate movement”. Go into the character blueprint (hope its blueprint, because its easier then for an example) and go whereever it triggers the fire logic. If the logic is a seperate function, mark this function as “executes on owning client”.

These are just first steps, and a more in depth rework of the template might be required. IIRC there is a whole demo multiplayer shooter somewhere as an example project by epic. AFAIK you can get it through the launcher.

Thank you for your replay! I will play with that template. How about Question #2? Is it possible to view what player was seeing ?

Regarding question 2: Yup.
When you spectate a replay, you are using a special replayplayercontroller. Just as with the normal PlayerController, you can derive from it, add functionality and set your new class to be used from within the GameMode settings iirc.

Your ReplayPlayerController could then implement camera switching, free fly, whatever you like :slight_smile: