# Custom individual per-map loading screens

**URL:** <https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589>\
**Category:** UDK Content Creation and Design\
**Tags:** unreal-engine\
**Created:** [January 26, 2016, 7:58pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589 "2016-01-26T19:58:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_926b81cf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_926b81cf](https://forums.unrealengine.com/u/anonymous_user_926b81cf)\
**Post date:** [January 26, 2016, 7:58pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/1 "2016-01-26T19:58:40Z")

</div>

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 () 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.

---

<div class="post-metadata">

**Author:** ![Yummy-Vegetables](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yummy-Vegetables](https://forums.unrealengine.com/u/Yummy-Vegetables)\
**Post date:** [January 27, 2016, 10:16am UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/2 "2016-01-27T10:16:00Z")

</div>

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

```auto

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

```

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [January 27, 2016, 11:27pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/3 "2016-01-27T23:27:38Z")

</div>

there’s two ways

1. 

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.

1. 

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)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_926b81cf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_926b81cf](https://forums.unrealengine.com/u/anonymous_user_926b81cf)\
**Post date:** [January 31, 2016, 12:04pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/4 "2016-01-31T12:04:08Z")

</div>

> [@;462461](#):
>
> there’s two ways
> 
> 1. 
> 
> 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.

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?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1964943b](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1964943b](https://forums.unrealengine.com/u/anonymous_user_1964943b)\
**Post date:** [February 1, 2016, 6:38am UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/5 "2016-02-01T06:38:16Z")

</div>

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](https://github.com/JAJames/Rx_SetStartupMovie/blob/master/Rx_SetStartupMovie/Rx_SetStartupMovie.c).

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:

> [@](#):
>
> class Rx\_SetStartupMovie extends Object DLLBind(Rx\_SetStartupMovie);
> 
> dllimport final function SetStartupMovie(string leaving\_level, string loading\_level);

1. Have a class extend the viewport client, and implement something similar to the following:

> [@](#):
>
> class Rx\_GameViewportClient extends UTGameViewportClient;
> 
> function SetStartupMovie(string leaving\_level, string loading\_level)  
> {  
> local Rx\_SetStartupMovie movie\_handler;  
> movie\_handler = new class’Rx\_SetStartupMovie’;  
> movie\_handler.SetStartupMovie(leaving\_level, loading\_level);  
> }
> 
> function DrawTransition(Canvas Canvas)  
> {  
> local string MapName;  
> local int pos;
> 
> ```
> if (Outer.TransitionType == TT_Loading)
> {
> MapName = Outer.TransitionDescription;
> 
> // Ensure no file extension is included
> pos = InStr(MapName, ".");
> if (pos != -1)
> MapName = Left(MapName, pos);
> 
> SetStartupMovie(string(class'Engine'.static.GetCurrentWorldInfo().GetPackageName()), MapName);
> }
> 
> ```
> 
> }

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.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [February 1, 2016, 10:08am UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/6 "2016-02-01T10:08:53Z")

</div>

> [@Ruud033;464641](#):
>
> 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 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 😃

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cae7faa3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cae7faa3](https://forums.unrealengine.com/u/anonymous_user_cae7faa3)\
**Post date:** [February 1, 2016, 8:38pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/7 "2016-02-01T20:38:07Z")

</div>

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

this may be helpfull

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [February 1, 2016, 10:37pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/8 "2016-02-01T22:37:37Z")

</div>

: 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 ☹

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 ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cae7faa3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cae7faa3](https://forums.unrealengine.com/u/anonymous_user_cae7faa3)\
**Post date:** [February 2, 2016, 9:08am UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/9 "2016-02-02T09:08:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [February 2, 2016, 3:15pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/10 "2016-02-02T15:15:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ryanjon2040](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ryanjon2040/32/906587_2.png) [@ryanjon2040](https://forums.unrealengine.com/u/ryanjon2040)\
**Post date:** [April 23, 2016, 6:53pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/11 "2016-04-23T18:53:35Z")

</div>

> [@;465578](#):
>
> 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 ☹

Hey ,

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.

---

<div class="post-metadata">

**Author:** ![Chosker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/chosker/32/710746_2.png) [@Chosker](https://forums.unrealengine.com/u/Chosker)\
**Post date:** [April 23, 2016, 8:26pm UTC](https://forums.unrealengine.com/t/custom-individual-per-map-loading-screens/53589/12 "2016-04-23T20:26:12Z")

</div>

> [@ryanjon2040;518364](#):
>
> Hey ,
> 
> 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?
