UE5 Dedicated server Error: Assertion failed: Index != INDEX_NONE

An answer I posted on Udemy a few days ago:

[EDIT] In your content folder click on C++ Classes>MenuSystem. Double click MenuSystemGameMode. Visual Studio should open the file. There are two options at this point:

Option 1) Change the code below to point to the correct path of your character blueprint.

  1. AMenuSystemGameMode::AMenuSystemGameMode()
  2. {
  3. //set default pawn class to our Blueprinted character
  4. static ConstructorHelpers::FClassFinder PlayerPawnBPClass(TEXT("/Game/ThirdPerson/Blueprints/BP_ThirdPersonCharacter"));
  5. if (PlayerPawnBPClass.Class != NULL)
  6. {
  7. DefaultPawnClass = PlayerPawnBPClass.Class;
  8. }
  9. }

Option 2) Comment out the code within the constructor. Go back to the Unreal Editor and recompile your changes. In the editor go to Window>World Settings. World settings should become visible in the editor. Expand Game Mode. Ensure your game mode is selected in GameMode override. Expand selected GameMode. Ensure Default Pawn Class is your blueprint character class.