Frictional Games Forum (read-only)
Loading Screen? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Loading Screen? (/thread-21068.html)



Loading Screen? - VeNoMzTeamHysterical - 04-06-2013

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


RE: Loading Screen? - Tiger - 04-06-2013

>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?


RE: Loading Screen? - VeNoMzTeamHysterical - 04-06-2013

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


RE: Loading Screen? - The chaser - 04-06-2013

You say it gives a blackbox, right? Give us the hpl.log located in Documents/Amnesia/Main. Then, copy-paste it here.


RE: Loading Screen? - NaxEla - 04-06-2013

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)


RE: Loading Screen? - VeNoMzTeamHysterical - 04-07-2013

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


RE: Loading Screen? - NaxEla - 04-07-2013

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



RE: Loading Screen? - VeNoMzTeamHysterical - 04-11-2013

(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 ^^