I have created a custom game mode in C++ and trying to select it for the world when my editor crashed.
The level is almost entirely the Third Person Template with some (very) small additions (playing with Matinee and a running AI bot) and no custom C++ currently running.
Repro steps:
- add new C++ code
- GameMode as base class
- rebuild and then go to world settings
- click the Game Mode drop down
The CustomMode.h code is:
#pragma once
#include "GameFramework/GameMode.h"
#include "CustomMode.generated.h"
/**
*
*/
UCLASS()
class MATINEEBUILDERTEST_API ACustomMode : public AGameMode
{
GENERATED_BODY()
};
The CustomMode.cpp code is:
#include "MatineeBuilderTest.h"
#include "CustomMode.h"
The error is:
" Unhandled exception at 0x000007FEE2DC3D30 (UE4Editor-Slate.dll) in UE4Editor.exe: 0xC00000FD: Stack overflow (parameters: 0x0000000000000001, 0x00000000002238D0). "
The stack trace is:
EDIT: After removing the class, regenerating solution files, rebuilding the solution, running the editor and attempting to select the game mode I have the same issue again… I am about to go try this in a fresh project.
EDIT2: Works fine, however the new project was a C++ base and the old one was a BP base. The BP project also had an issue in that C++ classes would not show up in the content browser… I will be migrating all written code to that before I go too far