Frictional Games Forum (read-only)
Scripting credits help - 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: Scripting credits help (/thread-17514.html)



Scripting credits help - Lukaboy8 - 08-05-2012

Hello everybody,

I'm trying to make my credits but it doesn't work. I made a map with a floor and a player start point and then on my screen is just that map and not any credits or something. This is the Credits.hps:
PHP Code:
void OnStart() 

StartCredits("ending_daniel.ogg"false"Ending""MainCredits"101); 



This is my extra_english.lang
PHP Code:
<LANGUAGE
<
CATEGORY Name ="Ending"
<
Entry Name="MainCredits">Here should be the Credits text but it doesn't work...</Entry> 
</CATEGORY> 
</LANGUAGE> 


Luke


RE: Scripting credits help - Steve - 08-05-2012

:\ not sure but try this:
void OnStart()
{
StartCredits("ending_daniel.ogg", false, "MyEnding", "MyMainCredits", 101);
}


<LANGUAGE>
<
CATEGORY Name ="MyEnding">
<
Entry Name="MyMainCredits">Here should be the Credits text but it doesn't work...</Entry>
</CATEGORY>
</LANGUAGE>


You had an extra </CATEGORY> and I think MainCredits is also the name of the original's credits so try this


RE: Scripting credits help - Lukaboy8 - 08-05-2012

Whoeps sorry! That </CATEGORY> wasn't supposed to be in there but it's still not working. You have to give it the name Ending and MainCredits. Look at this page: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

CTRL+F And then StartCredits


RE: Scripting credits help - Steve - 08-05-2012

oh my bad didn't knwo that it was just a guess so, I never made an credits my self yet so that's why


RE: Scripting credits help - Your Computer - 08-05-2012

(08-05-2012, 07:39 PM)Lukaboy8 Wrote: Whoeps sorry! That wasn't supposed to be in there but it's still not working. You have to give it the name Ending and MainCredits. Look at this page: http://wiki.frictionalgames.com/hpl2/amnesia/script_functions

No, that's a mistake written in the Wiki. It is not required for them to be the same as the main game.


RE: Scripting credits help - lolmaster - 08-05-2012

Try putting more text on different lines, like this:

<Entry Name="MainCredits">This is a test
goodness look at all the tests being done
custom storyyy
</Entry>

This is what fixed it for me.


RE: Scripting credits help - Lukaboy8 - 08-06-2012

It still doesn't work. I tried all of your answers:/

When I'm in Entrance hall.map I get the music I wanted to hear but the screen doesn't go black to show my credits:/ This is the Entrance hall.hps
PHP Code:
void OnStart()
{
StartCredits("ending_daniel.ogg"false"Ending""MainCredits"101);


And this is the part in extra_english.lang
PHP Code:
<LANGUAGE>
<
CATEGORY Name="Ending">
<
Entry Name="MainCredits">Here should be my Credits but it does not workIt does start playing the music I wanted but it does not go black to show this text</Entry>
</
CATEGORY
</
LANGUAGE

Can somebody please help?


RE: Scripting credits help - Lukaboy8 - 08-06-2012

BumpBump


RE: Scripting credits help - zaggnut - 08-07-2012

(08-06-2012, 02:00 PM)Lukaboy8 Wrote: BumpBump
im no scripting wiz but can't you just see what others have done in their CS?

http://www.youtube.com/watch?v=jPaRHHlepKw


"@jeder9 Make sure you aren't in development mode, because it only works when you actually play custom story!"
-might be useful