I’ve got a fork of UE4.6 that up until 4.6 has been working just fine. After I synced with the most recent changes, I’m having an issue:
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(133): error C2504: 'UPlayer' : base class undefined
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(184): error C3668: 'ULocalPlayer::PostInitProperties' : method with override specifier 'override' did not override any base class methods
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(185): error C3668: 'ULocalPlayer::BeginDestroy' : method with override specifier 'override' did not override any base class methods
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(186): error C3668: 'ULocalPlayer::FinishDestroy' : method with override specifier 'override' did not override any base class methods
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(191): error C3668: 'ULocalPlayer::Exec' : method with override specifier 'override' did not override any base class methods
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(213): error C3668: 'ULocalPlayer::HandleDisconnect' : method with override specifier 'override' did not override any base class methods
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(134): error C3861: 'GetOuter': identifier not found
27>C:\Projects\UE4.3Fork\Engine\Source\Runtime\Engine\Classes\Engine/LocalPlayer.h(134): error C2440: 'return' : cannot convert from 'ULocalPlayer *' to 'UObject *'
It’s complaining that ULocalPlayer doesn’t include UPlayer (it doesn’t). I assume that’s happening in the macro magic.
This compile error wasn’t here in 4.5, the exact code that causes it is a line in my game code:
ULocalPlayer *player = GetWorld()->GetFirstLocalPlayerFromController();
This line causes the error. I’ve tried to include Engine/LocalPlayer.h and it doesn’t help.
Any clue as to what is going on here?