Course: Learning Agents (5.5)

If you want to collect speed and trajectories for metadata purposes, we don’t really support that currently and you’ll have to come up with a solution yourself.

Hopefully I understood the question correctly.

I keep getting this error after trying to train my agents while following the learn to drive tutorial.


I’ve tried the tutorial in both ue5.4 and ue5.5 but this happens. Does anyone know what I can do about this?

Hello @Deathcalibur and everyone. I have a problem in “Begin play” section of this course.


I tried assigning my variables different types but it still doesnt work properly. Could you please provide the exact variable types for each variable in that step of the course? I’d really appreciate it.

The trick I found was to delete the set variable nodes and instead to promote the output pin to a variable, as this will create a variable with the exact right type, instead of a different class.

unfortunately it doesnt work :confused: Here is the pic:


as you can see even then it says something like that

Set the class to be the interacter in the make interactor node, because the track spline variable only exists in that specific class, not in the general "Learning Agents Interactor. After you do that, drag out from the set first set variable node and then type “Set Track Spline”. Don’t use the one that is already there.

Sorry bro the class wasnt set because i just copied this again (n-time xD) but anyways your method seems to be workin

You’re welcome

1 Like

Hello again, hadnt got time to check the rest yesterday and now at the very end of the course my learning process simply doesnt work :confused:
PIE: Error: Blueprint Runtime Error: “Accessed None trying to read property PPOTrainer”. Node: Run Training Graph: EventGraph Function: Execute Ubergraph BP Car Manager Blueprint: BP_CarManager. Everything compiles but when i start the game cars are standing with 0 km/h. Do you guys have any thoughts?

edit: i’ve added a branch checking if PPOTrainer is valid before Run Training and at that point its not. ( i used ‘get PPOTrainer’ that i promoted previously )

Unfortunately i still have this problem. @Deathcalibur maybe you could guess what is wrong in that case ? (PIE: Error: Blueprint Runtime Error: “Accessed None trying to read property PPOTrainer”.)

Hi everyone,

Thanks for setting up and updating this course. Unfortunately I’m still stuck in setting up the Sportscar Manager.


Track Spline cannot be taken from the BP_SportCarTrackSpline_C. I’ve tried adding these node manually but the error still existed. Has anyone of you encountered this issue?

Thanks!!

There should be an error before the spam that says something failed during Setup of the PPOTrainer. That’s the actual error that would need to be fixed.

@RRRRosW I think you need to start from the return of “Get Actor of Class” and search for “get Track Spline” and then promote that to a variable. Should work.

Thank you Mr. Brendan for replying but as you can see here


there is only that one error message :confused:

Thank you so much for your reply.
Although the connection between “Get Actor of Class” and “Set Spline” has been fixed, the UE5 freezes and the following error messages were displayed:

Does it mean the system still can’t extract the data of the TrackSpline correctly?

Thanks again!

我是个新手,跟着油管上一个教程搭了这个但是每运行一会儿就会卡顿,然后就被重置了,印象里没有到时间重新生成的代码啊。请问这是正常现象吗?

输出日志是这样

Oh actually you were right Mr @Deathcalibur. There were some errors at the very begining, my bad. The last errors from the combined ss are those i noticed before.

Do you know how to fix this problem? I would really appreciate it. Thank you in advance :slight_smile:

You need to fix that first error related to finding the python executable. If you open the shared memory communicator settings, you can see the path that’s printed in the log and adjust it. Normally I think it should just work but perhaps you edited this value already? Either way it needs to be adjusted to have less or more “../”. Take a look where python from the editor is relative to the editor’s exe.

1 Like

The freezing occurs when the experience and model is being synced between the UE process and the python process. Probably expected behavior.

Dear @Deathcalibur,
Thank you again for the plugin and all your hard work. I was hoping you could clarify something regarding the different types of observations (set, static arrays, struct…).
For instance, is using a struct observation containing three float values to represent a location equivalent to using a dedicated location observation? In this case, I’m not referring to the inverse transform, but rather how this distinction might affect the PPO context, as it seems to have an impact on the encoder architecture.

Thank you