We wanted to upgrade our C++ Paper2D project from version 4.14 to 4.15 and we had some compile errors. Visual Studio complained that, it can’t find some C++ Paper2D related classes which are currently used in our project.
We received the following error:
Severity Code Description Project File Line Suppression State
Error C2664 ‘void ConstructorHelpers::ValidateObject(UObject *,const FString &,const TCHAR *)’: cannot convert argument 1 from ‘UPaperFlipbook *’ to ‘UObject *’
If you check the this line of code, thrown by VS, you discover that this error is given by a template class in ConstructorHelpers.h. In short, the engine doesn’t have a clue about this class, to convert it, it means that an include file is missing in our project.
To solve it, we just added this include #include “Paper2DClasses.h” in the main header from the project( name of your project.h)
Yesterday, my friend George asked me: “What do I have to know to become an indie game developer? To make a game from scratch?” I was on a run and my short answer was: “Everything“.
That “Everything” is overwhelming. My answer made me think and I suppose, that George consider me a smug. But, that evening I sat down and I meditated on those questions. Next day I met George and told him:
“Well, George, I made a mistake yesterday, when you asked me about indie game developer. But you know, creating a game is a complex process which takes some time. It’s not everything, as I said, but you have to learn a lot from many fields and of course you can’t do nothing without patience”.