Magasztos
Member
Posts: 54
Threads: 21
Joined: Jun 2012
Reputation:
0
|
Having some credits problems, please help?
Hi, I'm having a pretty annoying problem I'm trying to make some credits and I'm pretty sure I used the correct script:
void Final(string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(0);
PlayGuiSound("SNITBC.snt", 50);
SetEntityActive("servant_brute (custom)_1", false);
FadeOut(2);
AddTimer ("", 4.5f, "StartCredits");
}
void StartCredits (string &in asTimer)
{
StartCredits("EndCredits.ogg", false, "Ending", "MainCredits", 4);
}
And my credits start as normally with the correct music but instead of the text I put in my .Lang file it shows the credits of the original game.
It's really starting to annoy me cuz nothing I do seems to work, please help me
~The Hulk is always greener on the other side~
|
|
12-22-2012, 10:41 PM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Having some credits problems, please help?
I'd like to see your .lang file here Or just the section with the credits.
Because you see: What you specify with "Ending", "MainCredits" is exactly the main credits from the game
Trying is the first step to success.
|
|
12-22-2012, 11:11 PM |
|
NaxEla
Senior Member
Posts: 415
Threads: 5
Joined: Dec 2012
Reputation:
28
|
RE: Having some credits problems, please help?
Make sure that your Category and Entry names in your .lang is "Ending" and "MainCredits" (the same as in your script). I would also try changing the name of your function StartCredits.
void Final(string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(0);
PlayGuiSound("SNITBC.snt", 50);
SetEntityActive("servant_brute (custom)_1", false);
FadeOut(2);
AddTimer ("", 4.5f, "BeginCredits"); // changed to "BeginCredits"
}
void BeginCredits(string &in asTimer) // changed to "BeginCredits"
{
StartCredits("EndCredits.ogg", false, "Ending", "MainCredits", 4);
}
(This post was last modified: 12-22-2012, 11:20 PM by NaxEla.)
|
|
12-22-2012, 11:20 PM |
|
Magasztos
Member
Posts: 54
Threads: 21
Joined: Jun 2012
Reputation:
0
|
RE: Having some credits problems, please help?
This is my .Lang file right there
<CATEGORY Name="Ending">
<Entry Name="MainCredits">- Amnesia Custom Story Made by: Imre -[br][br][br]- An Un-Named Story -[br][br][br]Credits Test[br][br]</Entry>
</CATEGORY>
~The Hulk is always greener on the other side~
|
|
12-23-2012, 10:41 AM |
|
FlawlessHappiness
Posting Freak
Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation:
171
|
RE: Having some credits problems, please help?
How about changing Ending, and MainCredits to something else?
<CATEGORY Name="EndingCategory">
<Entry Name="MyCredits">- Amnesia Custom Story Made by: Imre -[br][br][br]- An Un-Named Story -[br][br][br]Credits Test[br][br]</Entry>
</CATEGORY>
Remember to change this line too:
StartCredits("EndCredits.ogg", false, "EndingCategory", "MyCredits", 4);
Try test if it works
Trying is the first step to success.
|
|
12-23-2012, 02:33 PM |
|
Magasztos
Member
Posts: 54
Threads: 21
Joined: Jun 2012
Reputation:
0
|
RE: Having some credits problems, please help?
(12-23-2012, 02:33 PM)beecake Wrote: How about changing Ending, and MainCredits to something else?
<CATEGORY Name="EndingCategory">
<Entry Name="MyCredits">- Amnesia Custom Story Made by: Imre -[br][br][br]- An Un-Named Story -[br][br][br]Credits Test[br][br]</Entry>
</CATEGORY>
Remember to change this line too:
StartCredits("EndCredits.ogg", false, "EndingCategory", "MyCredits", 4);
Try test if it works
I'm sorry but it still doesn't work :/
I really don't understand what the problem is
~The Hulk is always greener on the other side~
|
|
12-24-2012, 11:41 AM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: Having some credits problems, please help?
The category for Credits is ALWAYS "Ending". Change it and let's see
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
12-24-2012, 11:44 AM |
|
Magasztos
Member
Posts: 54
Threads: 21
Joined: Jun 2012
Reputation:
0
|
RE: Having some credits problems, please help?
(12-24-2012, 11:44 AM)The chaser Wrote: The category for Credits is ALWAYS "Ending". Change it and let's see
I changed the category to Ending...
And now nothing show up at all
no music no text, just a black screen and after a while it says "The End"
I have no idea why
~The Hulk is always greener on the other side~
|
|
12-25-2012, 03:01 PM |
|
Magasztos
Member
Posts: 54
Threads: 21
Joined: Jun 2012
Reputation:
0
|
RE: Having some credits problems, please help?
Thanks for helping me but it seems that I had a <RESOURCE> tag in my .lang file that I for some reason put in there at some point and I have no idea why because it worked perfectly after I removed it.
+1 Rep for the people that help me
~The Hulk is always greener on the other side~
|
|
12-27-2012, 08:42 PM |
|
|