Custom Splash screen is not displayed at launch
I was looking today in a way to display my custom Splash screen when launching the editor/game with my own project. However I noticed that as soon I added my custom bitmap files, they totally disabled the splash screen.
I spent a bit of time digging in the source code (I'm working with the GitHub version, UE4 4.2.1) and found the problem. I checked first and the path to my splash screen was fine and the file was existing. (In my project settings under the editor the files also appear properly.)
In WindowsPlatformSplash.cpp around the line 680 :
This line was the problem, I changed it to the following to fix it :
The original code was producing a file path like this :
As you can see my game project is not on the same drive as the engine and the final path is totally incorrect. Any reason to "divide" the file path with FString( FPlatformProcess::BaseDir() ) ? I don't understand the purpose of this operation.
Thank you for the information that you provided. I did some testing on this issue and was able to see the results that you described. I have submitted a report about this issue to the development team for further investigation.
answered Jul 10 '14 at 03:57 PM
The "division" is an operator on FString that inserts a directory separator, which is different for each platform. BaseDir() should probably be GameDir() or maybe it's ContentDir () I forget.
answered Jul 05 '14 at 11:47 PM
The change is now available: https://github.com/EpicGames/UnrealEngine/commit/a74a41dd093b4338bd98848051f3c6481db146de
Thanks again for bringing this to our attention.
answered Jul 15 '14 at 08:55 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here