When I try to Follow The C++ Replication samples at A new, community-hosted Unreal Engine Wiki - Announcements - Unreal Engine Forums And Recreate the exact class at actor replication I get the following error in UnrealNetwork.h.
error: use of undeclared identifier 'FLogCategoryLogNet'
[2014.11.11-11.06.59:293][149]CompilerResultsLog: Info UE_LOG(LogNet, Fatal,TEXT("Attempt to replicate property '%s.%s' in C++ but class '%s' is not a child of '%s'"), *PropClass->GetName(), *PropName.ToString(), *CallingClass->GetName(), *PropClass->GetName());
My code looks as follows: ReplicatedActor.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "Core.h"
#include "GameFramework/Actor.h"
#include "ReplicatedActor.generated.h"
/**
*
*/
UCLASS()
class DESOLATION_API AReplicatedActor : public AActor
{
GENERATED_UCLASS_BODY()
public:
/** A Replicated Boolean Flag */
UPROPERTY(Replicated)
uint32 bFlag:1;
/** A Replicated Array Of Integers */
UPROPERTY(Replicated)
TArray<uint32> IntegerArray;
};
ReplicatedActor.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "Desolation.h"
#include "ReplicatedActor.h"
#include "UnrealNetwork.h"
AReplicatedActor::AReplicatedActor(const class FPostConstructInitializeProperties& PCIP)
: Super(PCIP)
{
bReplicates = true;
}
void AReplicatedActor::GetLifetimeReplicatedProps(TArray<FLifetimeProperty> &OutLifetimeProps) const
{
DOREPLIFETIME(AReplicatedActor, bFlag);
DOREPLIFETIME(AReplicatedActor, IntegerArray);
}
I am using Engine version 4.5.1 on OSX 10.10 Yosemite
Is this a bug in the engine, or am I doing something wrong