Error: Unable to load GameInstance Class '/Script/MyProject.MyGameInstance'. Falling back to generic UGameInstance.

Hi, I’m stucked an error “Error: Unable to load GameInstance Class ‘/Script/MyProject.MyGameInstance’. Falling back to generic UGameInstance.”

MyGameInstance DID works well on Unrea Editor 5.3. The code is below.

UMyGameInstance::UMyGameInstance(const FObjectInitializer& ObjectInitializer)
{
    UE_LOG(LogTemp, Warning, TEXT("MyGameInstance Constructor"));
}

void UMyGameInstance::Init()
{
    Super::Init();
    UE_LOG(LogTemp, Warning, TEXT("MyGameInstance Init"));
}

But it’s failed when running on console like this “D:\UE_5.3\Engine\Binaries\Win64\UnrealEditor.exe D:\MyProject\MyProject.uproject -game -log”

I set MyGameInstance class in Project Settings → Maps & Modes → Game Instance.
And I built sereval times my project on VSI. But it didn’t work.

I’m using Windows 11 and UE5.3.
Thanks in advance :slight_smile:

I’m also trapped with this one. Using the same exact commands (and perhaps the same lesson plan on Udemy :wink: ?) Pretty bummed out. Has Game Instances changed past 5.3 ?

[EDIT] I think I found the problem. It’s possible the you ran and tested your code on DebugGameEditor. The standalone game runs in Development. Make sure the Development version is compiled first before running it.