Hello! I’m new to UE4 and I’ve just packaged my first game. However during testing I ran into a problem. It seems to crash whenever I switch levels. The interesting thing is that it only crashes in the packaged version of the game. The map that I’m switching to is the ElvenRuins map which is one of the InfinityBlade assets. The code:
void AMainCharacter::ChangeLevel(FName LevelName)
UWorld* World = GetWorld();
FString CurrLevel =World->GetMapName();
if (CurrLevelName != LevelName)
The function is called when the main character overlaps with a box component. The name is definetly correct on the blueprint (I mean it works in the editor). The only settings that I’ve changed for packaging is that I’ve set Build Configuration to “Shipping” and turned on “Create compressed cooked packages”. I’ve already tried rebuilding all the “Intermediate” and “Saved” folders. Didn’t help. Any ideas why is this happening? Thanks!