APaperCharacter cannot open source file

I’m trying to make a change to the APaperCharacter that is basically adding a new component to it, called MagicComponent that will handle magic casting aswell as receiving magic effects properly.
I can add the component to a C++ child of APaperCharacter, but if i try to add it to APaperCharacter, both .h and c++, i’ll get an error on the include file, saying “Cannot Open Source file …”.
If i don’t add the include, i’ll not get any errors, but the component will not be added.
Compiling when there’s the including giving erros, i’ll get several compile erros, all of them are the kind that really aren’t there, like a ; in a wrong place, a * where there shouldn’t be one, etc, aswell as the files of the MagicComponent start giving errors that will disappear after removing the include from APaperCharacter.

I tried to add the search path to the folder, but it didn’t work, even tough i’m not sure if i did it right.