Frictional Games Forum (read-only)

Full Version: Scripting credits help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
:\ 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
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/amn..._functions

CTRL+F And then StartCredits
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
(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: [url]http://wiki.frictionalgames.com/hpl2/amn..._functions[/url]

No, that's a mistake written in the Wiki. It is not required for them to be the same as the main game.
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.
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?
BumpBump
(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