Failed Generate C++ files + visual studio install error

Hi everybody !

I have 2 problems, i want to install backend services (Gamesparks and Playfab) when i try to install them (in 2 differents projects of course) i can’t do the step " Generate Visual Studio Project Files".

I have this error :

*Running …/Epic Games/Epic Games/4.12/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project=“…/PlayFab/UnrealBlueprintSDK/PlayFabClientSDK/ExampleProject/ExampleProject.uproject” -game -rocket -progress
Discovering modules, targets and source code for project…
Messages while compiling …\PlayFab\UnrealBlueprintSDK\PlayFabClientSDK\ExampleProject\Intermediate\Build\BuildRules\ExampleProjectModuleRules.dll:
…\PlayFab\UnrealBlueprintSDK\PlayFabClientSDK\ExampleProject\Plugins\PlayFab\Source\PlayFab\PlayFab.Build.cs(12,48) : error CS0619: ‘UnrealBuildTool.RulesCompiler.GetModuleFilename(string)’ est obsol?te?: ‘GetModuleFilename is deprecated, use the ModuleDirectory property on any ModuleRules instead to get a path to your module.’
UnrealBuildTool Exception: ERROR: UnrealBuildTool encountered an error while compiling source files
*

I uninstalled all visual studio and re installed with the C++ components and i always see the error…

Note : I can’t install this component in Visual Studio, do you know how to fix this ? Is it the problem ?

Hello ValMineFirst,

The issue seems to be related to this message:

GetModuleFilename is deprecated, use the ModuleDirectory property on any ModuleRules instead to get a path to your module.’

This seems to indicate that the PlayFab’s source needs to be updated to 4.12 to be compatible. From looking at their Github repository, it seems as though it only supports 4.9 and 4.11 at the moment so you may need to go back to one of those previous versions if you wish to use PlayFab.

Yes thank you very much ! I need 4.9 but it didn’t work… And i found the solution ! I need Visual Studio 2013 for 4.9, not Visual Studio 2015.

Good bye, thank you :slight_smile: