Learning to drive player car

My question is about the tutorial learning to drive
Learning Agents (5.5)

At the start of the tutorial I removed the player car and only put the sportscar pawns in to train. But now they are trained I want to use them with inference as opponents to the player car. But I can’t seem to get a player controlled car in anymore now. Just adding PlayerStart doesn’t help, I guess I have to do something else too but don’t know what. Someone can give a tip? The ai driven cars are working fine.

also during training I couldn’t use tensorboard because Unreal never wrote anything in the folder that was supposed to have the information for tensorflow/tensorboard. I did check ‘use tensorboard’ as indicated
Setting up TensorBoard
Tensorboard is installed and the browser can open the server, but there is just no data to be read because the folder is empty
I tried try to fill in several paths as indicated
unreal.LearningAgentsTrainerProcessSettings
but none of those made any difference except crashing the learning program

EDIT sorry for the confusion I didn’t know which category this had to be in

(post deleted by author)

Hi) I think that for the player’s car you can implement such logic that a check will be made on BeginPlay. If the car is controlled by the player, then nothing happens, and if not, then it is registered as an agent.

Regarding “tensorboard”, I also have difficulties. I have to install it every time. I created a .bat file for myself and run it every time AFTER starting the project.

These are the lines I use there:

C:****\Intermediate\PipInstall\Scripts\python -m pip install tensorboard

C:*\T_Arrow_5_5_0_V1\Intermediate\PipInstall\Scripts\tensorboard --logdir=C:*\Intermediate\LearningAgents\TensorBoard\runs

Where “****” is the path to your project.

1 Like

Thanks for the tips.
About tenserboard, that does work, but unreal doesn’t spit out the data that it needs to use

I got it to work. I made a copy of the sportscar and called it playercar and in the vehicleadvgamemode I set the default pawn class to the playercar. I also removed the script for the agents from the playercar. So That part is solved:smiley: