Download

Custom individual per-map loading screens

Hey people,

Feels kind of weird to post on this forum after posting such a long while on the epicgames forum. Anyways. I’ll get to the point.

I am content developer of a game called Renegade-X (www.renegade-x.com) which is made in UDK. We’d like to implement custom loading screens for that game, it is relatively easy to just use 1 generic loading screen for everything BUT, that’s not what we’re after.

We’d like to implement custom loading screen for each map individually. So when the map Islands comes up, the Islands loading screen should pop up, when the map Walls comes up, the Walls loading screen should kick in… etc… etc…
As of now, I’ve spent a couple of hours digging the interwebs for information on how to achieve such an effect. Unfortunately I could not find anything that suited my needs.

Is there anyone here who can tell me how I should approach this issue or maybe even solve it?
Thanks in advance.

Best I can recall is in UDK you cannot control which movie to play, it randomly selects one from the list as the map loads

In defaultEngine



[FullScreenMovie]
+StartupMovies=load
+SkippableMovies=Startup
+LoadMapMovies=movieA
+LoadMapMovies=movieB
+LoadMapMovies=movieC
+LoadMapMovies=movieD
+LoadMapMovies=movieE

there’s two ways

you need your loading screens to be made entirely in Canvas and not use bink movies at all.
beware, if you use Canvas loadingscreens it means they cannot be animated. they will only get drawn for one frame and then the rendering gets pretty much frozen. the only thing that is made to render/play continuously and autonomously are bink movies.
first you need to ensure your DefaultEngine has no LoadMapMovies assigned
check out the UTGameViewportClient class, the DrawTransition function. there it checks the map name (and other things) and tells it do act accordingly. you’d be drawing your Canvas loadscreen in that same function.

you use your regular animated bink movie as “background”, and then draw map-specific text on top, also in your GameViewportClass, in the DrawTransition function.
you overlay text with class’Engine’.static.AddOverlay(), which yes, only allows you to draw text.

and no, you cannot overlay a semi-transparent bink movie on top of a canvas-drawn loadingscreen (tried it)

Interesting, this made me think.
What are the supported image types here? Can we add some sort of a .gif ?

Or can’t we draw a material to a canvas, that has multiple textures in it?

As an update to this, I came up with a really hacky way to incorporate this into RenX. Since others may find this useful, I’ve tossed the source for the main portion onto GitHub here.

To make use of this:

  1. Change ‘frontend_level_name’ to whatever your FrontEnd map is in the code above. Make sure you look at ‘movie_filename’ as well.
  2. Compile it.
  3. Copy the .dll to the “UserCode” directory
  4. DLLBind the ‘SetStartupMovie’ function, as done below:
  1. Have a class extend the viewport client, and implement something similar to the following:
  1. Ensure that you don’t have any loading movies marked as ‘AlwaysLoaded’ in the config
  2. Ensure that you only have one LoadMapMovies listed in the config (by default, the application linked uses “UDKFrontEnd.udk_loading”)
  3. Ensure that your movie specified in “LoadMapMovies” isn’t in also in “StartupMovies”
  4. Add movies to the “Movies” directory, with the following naming scheme: “LoadingScreen_{MAP NAME}.bik”

Note: For this to work, users must have read/write permissions in the Movies folder; otherwise, it’ll just use your default movie.

as it’s a canvas, you add a material or draw a texture, so the supported ‘image types’ are just unreal texture assets as you get them inside the editor (no linking of external files)

like I said, the rendering gets frozen. even if you make an animated material, a flipbook or anything else you can come up, it will show you the first frame and freeze. so again, no animation is possible with this method.

Agent: awesome, I see what you did there :smiley:

https://unrealxeditor.wordpress.com/2013/12/15/tutorial-change-loading-screens-based-on-map-using-canvas-and-no-bik-movie/

this may be helpfull

gaz: the method no. 1 that I described is pretty much that

he mentions this: “I havent checked if Canvas can draw materials. If they can then draw animated materials.(hint hint bik movies)
I did check, and it can’t :frowning:

also his code doesn’t compile. at one point I added a comment with the corrected part but his blog needs manual comment moderation and he never accepted it :frowning:

ooops,my bad.i will check myself before posting any more links.

well the link explains it more deeply than I did so it’s even welcome :slight_smile:

Hey Chosker,

I am extremely sorry I missed your comment. I just came across this post from my blog stats. If possible, can you please send that comment again? Even though I dont use UDK anymore it will help any future users.

And sorry for bumping this thread.

well I don’t have the related code anymore. don’t you have the comment still awaiting for moderation?