Is it possible that the cars are created before the manager or its components, unable to find it and not register? (BTW you should add a warning when a registration fails)
Try to delay the registration for 0.5 sec and tell us what you got.
I’m guessing that this is the code in the manager but is this the right tag? Are you sure that it is actors with tag “…Manager” that you are after, not with tag ”…Agent”? I’m asking because you are next looking for a LearningAgens component in those managers. It might be the case that your agents are tagged with “…Manager” but it might also be a mislabeling on your part.
in fact this code is in the blueprint of the AI Rally car, the purpose of this code is to point to the BP_AiCarManager which has the tag LearningAgentsManager then with learningcomponent to add the pawn of the AI Rally car as an agent in the BP_AICarManager normally this should work unless there is another more efficient method?
So I figured maybe you didn’t tag the actual actor. Did you make sure “Get All Actors with Tag” is actually finding anything? Maybe you some prints or breakpoints.
I checked several times that It seems that the tag does not work because during the tests I have the same error message that no agent is added, now I tried to tag the actor himself and during the test I had this in my logs…
This is progress I think. Because now it looks like you have agents but the interactor’s action schema is invalid. You need to look at that and figure out what is wrong. All the other errors cascade from that.
I think not since I have this error message which in my opinion makes no sense since I installed the Learning Agents plugin normally in my project so why when I test I have this… While in my project folder I have the famous folder with pipinstall and python.exe. I just want to know why the engine is pointing to a different path that doesn’t exist in the project folder.
Hello, after uninstalling and reinstalling Unreal Engine 5.5 and starting from scratch on machine learning, I finally managed to add an agent to the Manager :