The game stopped starting after I added the save and load option to it. The game starts on android 8.1, but does not start on android 11 - crashes without error. Also, a UE4Game folder with logs is created on android 8.1, but not on android 11. Please, help.
This is how my save file is created in GameModeBase:
void AMyGameModeBase::CheckSave()
{
if (UGameplayStatics::DoesSaveGameExist(TEXT("save_01"), 0) == true)
{
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Green, TEXT("Savefile already created"));
return;
}
UMySaveGame* MySave = Cast<UMySaveGame>(UGameplayStatics::CreateSaveGameObject(UMySaveGame::StaticClass()));
UGameplayStatics::SaveGameToSlot(MySave, TEXT("save_01"), 0);
GEngine->AddOnScreenDebugMessage(-1, 5.0f, FColor::Green, TEXT("Savefile created"));
}