Thanks for tips. I always wonder what’s going on with breakpoints.
I use logs very often so i’m surprised that it’s not working. This is my error log from VS builder after copy RestartPlayer function from AGameMode class to AMyGamemode.
For Example this line
UE_LOG(LogGameMode, Verbose, TEXT("RestartPlayer %s"), (NewPlayer && NewPlayer->PlayerState) ? *NewPlayer->PlayerState->PlayerName : TEXT("Unknown"));
generates this error
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2653: 'FLogCategoryLogGameMode' : is not a class or namespace name
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2065: 'CompileTimeVerbosity' : undeclared identifier
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2065: 'LogGameMode' : undeclared identifier
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2228: left of '.IsSuppressed' must have class/struct/union
1> type is 'unknown-type'
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2228: left of '.GetCategoryName' must have class/struct/union
1> type is 'unknown-type'
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2027: use of undefined type 'APlayerState'
1> C:\Program Files\Epic Games\4.8\Engine\Source\Runtime\Engine\Classes\GameFramework/Pawn.h(13) : see declaration of 'APlayerState'
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2227: left of '->PlayerName' must point to class/struct/union/generic type
1>C:\UE4\ProtoBall\Source\ProtoBall\ProtoBallGameMode.cpp(31): error C2660: 'FMsg::Logf_Internal' : function does not take 4 arguments