The unreal replay system does not seem to work for a character using mover component instead of the CMC. It works only if bReplicateMovement is set as true on the actor with the mover component - but cannot enable that as that breaks how the replication works for mover by default. So is there a solution for getting a character which is using mover component to work with the replay system?
Steps to Reproduce
This can be replicated in any of the unreal mover examples map. Start recording by console command Demorec TestReplay then Demostop. Then play it using Demoplay TestReplay. The character won’t move in the recording.
Is there a way the replay system can work for a character using mover component?
Hi,
Mover is still experimental, and we do have an internal task to further improve how Mover works in replays. With other tasks taking priority though, I can’t provide any estimate as to when those changes may be made.
That being said, what Simulated Proxy Network LOD is your project using? I believe basic replay support should be available for “Interpolated” mode, although my own local testing does still run into issues when using “Forward Predict.” In both cases, it also looks as though there are issues when scrubbing the replay.
Thanks,
Alex
The project is using “Forward Predict” Simulated proxy Network LOD. When I change it to “Interpolated” the basic replay works. (have not tested replay scrubbing)
For making it work with “Forward Predict”, one workaround I found was creating a struct called ReplayState.
ReplayState is a struct (location, rotation, velocity) replicated with COND_ReplayOnly, so only the replay connection receives it. While recording, it’s updated every tick and the replay system captures it at the demo record rate. During playback, the recorded values arrive via OnRep_ReplayState
and are applied to the character manually, with the Mover component disabled so it doesn’t override the replayed motion.
I will go with the “Interpolated” setting though as the above workaround then is not required, unless I run into any issues.
Thanks,
Anubha
Hi,
Thank you for the workaround. Setting up a replay-only struct/properties is a fairly common pattern projects use to workaround replay issues.
I’ve included the info you provided here on our internal task. Please don’t hesitate to reach out if you have any other questions.
Thanks,
Alex
Hi Alex,
I have a follow-up question about using the replay system for instant replays where after the replay I want the gameplay to continue without interrupting the game and causing the map to reload etc. After searching I found this [Content removed] to be giving guidance for achieving this, Just wanted to confirm if that article is still the best source for doing an instant replay in unreal and is it still experimental?
Thanks,
Anubha
Hi,
That article is still the best source of information for getting started with implementing instant replays. Unfortunately, the feature is still considered experimental, and it has not received any support or development for some time.
It’s important to note that the level duplication mentioned in that article is not supported with World Partition. While the article and its sample code may still be a useful starting point for using the in-memory replay streamer, how a project handles its levels/actors during the instant replay will require custom work and/or engine modifications. Since we have not investigated any robust solutions for instant replay playback with World Partition, it is difficult to provide specific guidance or advice on how to go about doing this.
If you’re using Iris, it’s also worth noting that instant replays have not been tested with the new replication system. Iris does still use the old replication system and DemoNetDriver for handling replays, so it’s possible that the in-memory streamer works fine in Iris. However, there could also be side effects that we haven’t run into.
Thanks,
Alex