After refactoring and building successfully I tried to move the karts, both client and server side, but they didn’t move. The point were I think something could go wrong is where Sam activates Replication in the ReplicationComponent manually. I have open the blueprint but the details of ReplicationComponent are empty:
And the configuration of it being visible at GoKart.h is as expected:
UPROPERTY(VisibleAnywhere)
UGoKartMovementReplicator* ReplicationComponent;
Also I have checked that replication is set true as default in the constructor:
UGoKartMovementReplicator::UGoKartMovementReplicator()
{
// Set this component to be initialized when the game starts, and to be ticked every frame. You can turn these features
// off to improve performance if you don't need them.
PrimaryComponentTick.bCanEverTick = true;
SetIsReplicated(true);
}
The entire project is uploaded to github so you can check the other files https://github.com/r4ulill0/KrazyKarts