UE2 - UT2kX Replication in demoplayback problem

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

[S]

New Member
Aug 28, 2008
10
0
0
Saratov, Russia
sst.planetunreal.ru
Code:
class MyInfo extends ReplicationInfo;
...
replication{
	unreliable if(Role == Role_Authority && !bNetOwner) MyActor;
}

In game var MyActror is replicated normally, but in demoplayback MyInfo.MyActor always is None. I suppose that need add some flag (bDemoRecording, bClientDemoRecording, bClientDemoNetFunc). But what exactly?

Please, help compose working replication statement.
 
Last edited:

Wormbo

Administrator
Staff member
Jun 4, 2001
5,913
36
48
Germany
www.koehler-homepage.de
The MyActor variable staying None in demo playback may have a different reason: The actor referenced by that variable might not exist in the demo, e.g. because its package is not in the ServerPackages list.
 

[S]

New Member
Aug 28, 2008
10
0
0
Saratov, Russia
sst.planetunreal.ru
No.
I changed statement to:
Code:
unreliable if(Role == Role_Authority) MyActor;
And it works! Actually, I can keep this statement, but MyActor is PlayerController.Pawn -) so no need to replicate self pawn to self... Am I right?
 
Last edited: