Frictional Games Forum (read-only)

Full Version: Loading Screen?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
LANG.

<CATEGORY Name="LoadingText">
<Entry Name="05_Castle">This castle is full of secrets, Discover the secrets and collect the items.</Entry>
</CATEGORY>

HPS.

SetupLoadScreen("LoadingText", "05_Castle", 6, "05_Castle.jpg");


(When i click on the leveldoor the text and picture should be show up but i get an error of blackbox or something.)
>Does the rest of the .lang file work (does the description show up?)
>Have you put '05_Castle.jpg' in your cs folder?
>Have you named everything right?
(04-06-2013, 02:14 PM)Tiger Wrote: [ -> ]>Does the rest of the .lang file work (does the description show up?)
>Have you put '05_Castle.jpg' in your cs folder?
>Have you named everything right?
Yep.
You say it gives a blackbox, right? Give us the hpl.log located in Documents/Amnesia/Main. Then, copy-paste it here.
Did you put SetupLoadScreen in the OnLeave function? (I'm not entirely sure if it needs to be in OnLeave, but FG puts it in OnLeave in their maps)
(04-06-2013, 06:29 PM)NaxEla Wrote: [ -> ]Did you put SetupLoadScreen in the OnLeave function? (I'm not entirely sure if it needs to be in OnLeave, but FG puts it in OnLeave in their maps)

Got it onleave();
Ohh, I think I see the problem. Change the 6 to 0. The function adds a suffix to the end of the entry name (eg. 01), then randomizes between those loading screens. By writing 6, that means it will randomize between 6 loading screens (05_Castle01, 05_Castle02, 05_Castle03, 05_Castle04, 05_Castle05, 05_Castle06).

Wiki Wrote:alRandomNum - if greater 1, then it will randomize between 1 and alRandom for each LoadScreen giving entry the suffix XX (eg 01). If < =1 then no suffix is added
(04-07-2013, 10:34 PM)NaxEla Wrote: [ -> ]Ohh, I think I see the problem. Change the 6 to 0. The function adds a suffix to the end of the entry name (eg. 01), then randomizes between those loading screens. By writing 6, that means it will randomize between 6 loading screens (05_Castle01, 05_Castle02, 05_Castle03, 05_Castle04, 05_Castle05, 05_Castle06).

Wiki Wrote:alRandomNum - if greater 1, then it will randomize between 1 and alRandom for each LoadScreen giving entry the suffix XX (eg 01). If < =1 then no suffix is added
Thanks ^^