Frictional Games Forum (read-only)
[LANG] Having some credits problems, please 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: [LANG] Having some credits problems, please help? (/thread-19636.html)



Having some credits problems, please help? - Magasztos - 12-22-2012

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:

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


RE: Having some credits problems, please help? - FlawlessHappiness - 12-22-2012

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


RE: Having some credits problems, please help? - NaxEla - 12-22-2012

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.


Code:
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);
}



RE: Having some credits problems, please help? - Magasztos - 12-23-2012

This is my .Lang file right there Big Grin

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



RE: Having some credits problems, please help? - FlawlessHappiness - 12-23-2012

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


RE: Having some credits problems, please help? - Magasztos - 12-24-2012

(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


RE: Having some credits problems, please help? - The chaser - 12-24-2012

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


RE: Having some credits problems, please help? - Magasztos - 12-25-2012

(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


RE: Having some credits problems, please help? - Magasztos - 12-27-2012

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