Player Controller BluePrint doesn't work

Hello, I met a strange behaviour in UE5.02 (Version: 5.0.2-20280985+++UE5+Release-5.0)

After restarting my computer, it’s found all the logic(nodes) inside the blueprint of PlayerController does not work anymore.
In order to reproduce the problem, I created a very simple project with the steps below:

  1. create a new blank project

  2. create a new level with ‘Basic’ setting and save it as ‘MainMap’.

  3. create a ‘Game Mode Base’ blueprint with name ‘BP_GM_1’. And add the following nodes inside it:
    image

  4. create a ‘Player Controller’ blueprint with name ‘BP_PC_1’. And add the following nodes inside it:
    image

  5. add BP_PC_1 into the ‘Class Defaults’ settings of BP_GM_1 as below
    image

  6. Change the project setting as below:

  7. set World Settings of MainMap as below:
    image

After all the steps above, press ALT+P to play the game.
As expected, in the top-left corner on the screen, two strings were printed out successfully. See picture below.
image

Then, I reboot my computer and open this project again and play the game again.
This time, no luck. Only the string inside BP_GM_1 was printed out successfully.
The string inside BP_PC_1 didn’t show up. See picture below.

image

I don’t know if it’s a bug of UE5 or something wrong with my steps above.
Could someone help?

1 Like

To check, if your player controller class is the one you expect, you could try to print out the player controller class in your game mode for tracking down the problem in a first step:

Also, it could be worth checking, it it also happens after just closing and reopening the editor without a reboot.

1 Like

Hello, @herb64 ,
Thanks a lot for your prompt support! Indeed, you’re right, it happens after just closing and reopening the unreal editor. And doesn’t need to reboot computer to reproduce this problem.

I followed your suggestions and added the following nodes into BP_GM_1.
image

Then, alt+P to play the game , the following is showing up. It looks good.
image

Next, I closed unreal editor and reopen it. The problem starts again.
image

Do you know how to fix it?

Coincidently, instead of clicking the icon of unreal editor, I used Epic Launcher to open a “failed” project. Surprised to find that the ‘failed’ project come back to normal and work well.

I tried several times to open this project with the following 2 methods:

  1. via the icon of unreal editor (By default, it will open the last project)
  2. via the library of Epic Launcher

Method 1 failed all the time, but method 2 succeeded all the time.

This can be a temporary workaround for this issue. But, still looking forward to get more insight about the root cause and a decent solution.

I did try to reproduce this with a fresh 5.0.2 project but without success - could not find any way to create that fallback to the PlayerController.
Are you sure, everything has been saved correctly?

Did you try to create a second project to reproduce that issue?

I never use the launcher to start my projects, I simply start them from Windows Explorer from within the project directory (and create desktop shortcuts for the frequently used uproject files) - also doing this in this test case.

1 Like

@herb64 , Thanks for your time!

Yes. I’m sure everything has been saved properly otherwise it won’t work in either way.

Yes. I’ve tried 3 new projects to verify this. This problem can be reproduced stably.

I tried the way you’re using to open the project from .uproject file in its folder. It works too.

By far, it works if the project was opened with any of the following 2 methods:

  1. via .uproject file in its folder
  2. via the library of Epic Launcher

But, it always failed if I open the project via the icon of unreal editor which is a shortcut linked to “C:\Program Files\Epic Games\UE_5.0\Engine\Binaries\Win64\UnrealEditor.exe”.

I tried to open my project by running the UE4Editor.exe like you do from the Explorer Engine Binaries.
By default, this gives an overview of the project for me, unless I check the checkbox “Always load last project on startup”. I gave this a try and on next start from Engine Binaries, my project gets opened without any prompt. So it looks, like you did check that box at some time. But, still no way to reproduce this problem.
Maybe you could try to switch off this checkbox by opening the project, then in editor go to File > Open Project and open the project again, now unchecking that checkbox. So next time you start the executable from Engine Binaries, it will not open the project but give you the choice to open projects from the list.

1 Like

@herb64 ,
Indeed, In my case, the following option is always checked.
image

I unchecked this and tried again. It works after selecting the project I want to open.

Thanks for your help. I will use your proposal as a solution

1 Like

I think the issue is still there. My controller BeginPlay even looks not be triggered.