Hi,
i am following the tutorial Code a First-Person Adventure Game in Unreal Engine | Unreal Engine 5.6 Documentation | Epic Developer Community and on the part Change the Project’s Game Mode i get stuck. When i try to replace the Default Game mode my BP_AdvetureGameMode class is not showing up in the dropdown field. When i select the AdventureGameMode, it defaults straight back to none. I tried this now couple times followed exactly the instructions but it doesn’t work. Does anyone else had this problem and could solve it? Thank you in advance for your help.
I have the exact same issue. Running UE 5.6.0.
Hello there @x_Chloe_K_x!
It sounds like your instance of “BP_AdventureGameMode” might not be properly compiled, or missing a redirector, or improperly set as an Actor (should be a child of “AdventureGameMode”). Let’s try a few steps to resolve this:
-
Open “BP_AdventureGameMode” and re-compile, then check the compiler results for any errors
-
Verify the BP’s parent class, and make sure it’s set to AdventureGameMode
-
Select your project’s main folder, right click, and select “Fix Redirectors”
-
Close UE, and perform a cache clear, via deleting folders Binaries, Saved and Intermediate. Then, re-generate your project files from VS
I’ve got the same problem in UE 5.6.0
Sadly those steps didn’t help in my case.
I followed the steps exactly as written on the tutorial page 3 times in a row now and still the same issue.
Funny enough, the exact same steps work in UE 5.5.4
Except that you can’t create the same project as in the tutorial…
I think the problem is that it isn’t even possible to actively select the AdventureGameMode (c++ version) and from there it spirals to the not even listed BP version which got created from the defective c++ version…
But the tutorial only says: Tools → New C++ Class → template = Game Mode Base → build in visual studio (with unreal engine closed) → start unreal engine → deactivate Live Coding → Right Click the new C++ Class → Create Blueprint class based on AdventureGameMode (or whatever you named it )
There is no modifying the cpp/h files in those steps yet, and as I tested and said before in 5.5.4 it works exactly that way.
Hello,
I could make it work in 5.6 by choosing either a blank project or Third-Person-template project instead of the First-Person.
Haven`t tried any other template.
i also tried the suggestions from @brs-sebascova.
Nevertheless i will submit a bug request.
Wrote bug report, tried to commit, got infinite loop (maybe some session-token expired)
Even though 5.6 is very new, a basic/beginner tutorial for C++ should always work.
To fix the issue with your BP_AdventureGameMode
not showing up in Project Settings:
- Open the Blueprint and click Compile to ensure no errors.
- Check that it inherits from your C++ GameMode, not
GameModeBase
. - Right-click the folder it’s in and choose “Fix Redirectors”.
- If still broken, close UE, delete
Binaries
,Saved
, andIntermediate
, then regenerate project files.
This usually resolves the dropdown issue in UE 5.6.
I have exactly the same issue. I even started over on the tutorial and ran into the same problem. I have tried all those steps and they do not solve the problem.
I can also confirm that this part of the tutorial works correctly if you use the third-person template instead of the first-person template. I’m now proceeding with the tutorial, although I may run into problems later since I’m using the wrong template. At any rate, it seems like there may be an issue specifically with the first-person template as it relates to this tutorial.
You cannot mix the GM/GS Base and Extended class.
If the GM is GameModeBase, then the Game State has to be derived from its Base (GameStateBase).
Game Mode Base & Game State Base
OR
Game Mode & Game State
What you want is the extended sub-classes Game Mode && Game State.
Create both the new GM and GS classes.
I personally use the GM_ and GS_ prefixes
e.g. GM_MyGameName, GS_MyGameName
For multi mode games you’d use the mode name.
e.g. GM_DeathMatch / GS_DeathMatch, GM_BattleRoyale / GS_BattleRoyale
Open the Game Mode class, Go to Class Defaults → Details Panel → Classes, and set the Game State Default class to your new GS.
Now you can open the Level and change the Game mode there with no issues.