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
.Lang File Help Having some credits problems, please help?
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#1
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 Huh

~The Hulk is always greener on the other side~
12-22-2012, 10:41 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Having some credits problems, please help?

I'd like to see your .lang file here Wink 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
Find
NaxEla Offline
Senior Member

Posts: 415
Threads: 5
Joined: Dec 2012
Reputation: 28
#3
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);
}

In Ruins [WIP]
(This post was last modified: 12-22-2012, 11:20 PM by NaxEla.)
12-22-2012, 11:20 PM
Find
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#4
RE: Having some credits problems, please help?

This is my .Lang file right there Big Grin

            <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
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#5
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.
(This post was last modified: 12-23-2012, 02:33 PM by FlawlessHappiness.)
12-23-2012, 02:33 PM
Find
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#6
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
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#7
RE: Having some credits problems, please help?

The category for Credits is ALWAYS "Ending". Change it and let's see Wink

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
12-24-2012, 11:44 AM
Find
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#8
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 Wink

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 Huh

~The Hulk is always greener on the other side~
12-25-2012, 03:01 PM
Find
Magasztos Offline
Member

Posts: 54
Threads: 21
Joined: Jun 2012
Reputation: 0
#9
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 Big Grin

~The Hulk is always greener on the other side~
12-27-2012, 08:42 PM
Find




Users browsing this thread: 1 Guest(s)