Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting credits help
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#1
Scripting credits help

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: (Select All)
void OnStart() 

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



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


Luke
(This post was last modified: 08-05-2012, 09:01 PM by Lukaboy8.)
08-05-2012, 07:09 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#2
RE: Scripting credits help

:\ 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

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
08-05-2012, 07:34 PM
Find
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#3
RE: Scripting credits help

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
08-05-2012, 07:39 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#4
RE: Scripting credits help

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

CURRENTLY WORKING ON:
Final Light = 40%
Need of voice actors.
(This post was last modified: 08-05-2012, 07:50 PM by Steve.)
08-05-2012, 07:47 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#5
RE: Scripting credits help

(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/amn..._functions

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

Tutorials: From Noob to Pro
08-05-2012, 07:54 PM
Website Find
lolmaster Offline
Member

Posts: 170
Threads: 9
Joined: Jul 2012
Reputation: 6
#6
RE: Scripting credits help

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.


08-05-2012, 07:55 PM
Find
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#7
RE: Scripting credits help

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: (Select All)
void OnStart()
{
StartCredits("ending_daniel.ogg"false"Ending""MainCredits"101);


And this is the part in extra_english.lang
PHP Code: (Select All)
<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?
(This post was last modified: 08-06-2012, 12:44 PM by Lukaboy8.)
08-06-2012, 08:30 AM
Find
Lukaboy8 Offline
Junior Member

Posts: 25
Threads: 10
Joined: Aug 2012
Reputation: 0
#8
RE: Scripting credits help

BumpBump
08-06-2012, 02:00 PM
Find
zaggnut Offline
Member

Posts: 62
Threads: 2
Joined: Jul 2012
Reputation: 1
#9
RE: Scripting credits help

(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

The human race will Bleed, they will serve my
need!
08-07-2012, 06:53 PM
Find




Users browsing this thread: 4 Guest(s)