Engine Plugin won't build as Game Plugin

I have posted this question on the forums, and left a link to this question in the thread. I’ll just leave what I posted here…

Engine vs Game Plugins

A bit of background. I have a plugin that will build fine as an engine plugin but when I drop it in gameProject/plugins and try to build it there VS spits out a plethora of errors. I was able to get the plugin to compile (not link) later, but I had to hack the header files and the PCH.h file of the plugin to do so.

My question is simple, what changed? What is different about the Engine Plugin Environment compared to the Game Plugin env.

Did you re-generate the project files after putting the plugin inside the game?
What modules does the plugin depend on?
What are the actual errors?

check your plugin’s .Build.cs to make sure all include paths and modules paths are correct. don’t use relative path, instead use UnrealBuildTool.EngineDirectory or ModuleDirectory or unrealBuildTool.ThirdPartySourcePath to combine with your plugins path.