Frictional Games Forum (read-only)

Full Version: Custom loading screens?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
There is a way to put new custom loading screens? I mean the static pics with the text on it. I couldn't find any reference on the game files maybe is some config file I need to put on my custom story?

Thanks in advance.
Yes you can. You can check the script for any level, in the "void OnLeave()" function there is always something like this:

SetupLoadScreen("LoadingText", "Ch01_Diary04_", 5, "game_loading_hand.jpg");

With that you can choose the image to display and the text.
Just thought I'd add some more detail:

SetupLoadScreen("category name", "entry name", integer, "image to use"), so:
Code:
void OnLeave()
{
    SetupLoadScreen("LoadingText", "Test_entry", 2, "game_loading.jpg");
}

The integer is used to select text at random, between 1 and the number entered. If you just want one piece of text per loading screen, leave it as 0 or 1.

The category and entry name should be set in extra_english.lang:

Code:
<CATEGORY Name="LoadingText">
    <Entry Name="Test_entry01">loading screen text</Entry>
    <Entry Name="Test_entry02">loading screen text 2</Entry>
  </CATEGORY>
Many thanks, just one last question, where I put the loading images, there is any special folder that need to be created for this?

EDIT: Nevermind found it out. For who is interested just create inside your story folder other two subfolders:

graphics/general

and put there the jpg
(09-18-2010, 01:55 AM)Neurological Wrote: [ -> ]Many thanks, just one last question, where I put the loading images, there is any special folder that need to be created for this?

EDIT: Nevermind found it out. For who is interested just create inside your story folder other two subfolders:

graphics/general

and put there the jpg

Shouldn't matter where you put it, as long as it's inside your story folder.
What did I wrong?
I have a loading screen in my custom story folder in graphics/general
i have this in the LANG file:
Code:
<CATEGORY Name="Loading">
    <Entry Name="Home01">Ich machte mich auf den Weg nach Alderley Edge und war voller Zuversicht ein paar schoene Tage dort zu verbingen. Ich war auf meinen Gastgeber gespannt und fuehlte mich geschmeichelt.</Entry>
</CATEGORY>

and this in my script:
Code:
void OnLeave()
{
SetupLoadScreen("Loading", "Home", 1, "game_loading_home.jpg");
}

But whenever i interact with the leveldoor the game crashes.. but I don't get an error message that tells me in which line of the script the error is but the error message which tells you "that something is wroooong" and that you should visit frictionalgames.com and so on...

So can anybody help me?
Did you specify the next level and player start area for the properties of door?
(03-13-2011, 03:43 PM)Tanshaydar Wrote: [ -> ]Did you specify the next level and player start area for the properties of door?

Yeah i did...
In the door the start Pos is "1" and the map "map2" the map where it leads to is "map2" and the ony lstart pos in it is "1"...
Is it only "1" or "PlayerStartArea_1"?