Casting to game instance always fails when packaging the game

Greetings, posting this here as i have stumbled about a similar problem like this, but for me the path was always correct in the DefaultEngine.ini

I actually had in the .uproject file of the project the LoadingPhase as PostEngineInit. Chaging this back to Default worked. Depending if the loading phase is important, i’d suggest trying the other options for LoadingPhase, that can be found in Unreal Documentation.

Hope this also helps whoever stumbles with this problem again. And sorry for bumping this, as i have not found this answer in any other threads related to this.