Learning-Agents with C++ in UE 5.7.1 LearningAgentsPPOTrainer derived class will not build

theseus2703
Wed, 24 Dec 2025 20:35:30 +0000
C++

Hello and merry chistmas

I was creating a new blank C++ Project in UE 5.7.1 and enabled the Learning-Agents Plugin.

When i tried to add a C++ class with parent class LearningAgentsPPOTrainer, the class won’t build.

Error log of UE shows that an include statement cannot be resolved.

E:\Program Files\Epic Games\UE_5.7\Engine\Plugins\Experimental\LearningAgents\Source\LearningAgentsTraining\Public\LearningAgentsTrainer.h(5,1): fatal error C1083: Cannot open include file: ‘LearningTrainer.h’: No such file or directory

The “missing” file seems to be part of another directory in the LearningAgents plugin folder. I dont know much about the correct usage of the Build.cs files in those directories, but as far as i can see it, the “LearningTraining” Module, which holds the “unfindable” file, is included in the PrivateDependencyModuleNames of the “LearningAgentsTraining” module, where the error message originates from, so should work ?

I tried messing with the Build.cs files to achieve something but i was not sucessfull, building in Visual Studio with F7.

I dont know how to proceed at this point and would appreciate any help.

2 posts - 1 participant