Frictional Games Forum (read-only)
Messages don't show up :( - 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: Messages don't show up :( (/thread-14913.html)



Messages don't show up :( - mrscoomich - 04-19-2012

When I test it through the custom story list,
I have added this:

void OnStart()
{
AddTimer("", 1, "Msg");
}


void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

**********

The bold letters above are the trouble I have. After the timer occurs, the screen does the white flash but the message does not show up.

Here is the .lang script:



"There is only one happiness in this life, to love and be loved.[br][br] But I lived in the darkness."


How do you make it show up on the screen ?


RE: Messages don't show up :( - jamessnk1 - 04-19-2012

(04-19-2012, 12:03 AM)mrscoomich Wrote: When I test it through the custom story list,
I have added this:

void OnStart()
{
AddTimer("", 1, "Msg");
}


void Msg(string &in asTimer)
{
StartEffectEmotionFlash("Fade", "First", "");
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

**********

The bold letters above are the trouble I have. After the timer occurs, the screen does the white flash but the message does not show up.

Here is the .lang script:


<CATEGORY Name="Fade">
<Entry Name="First">"There is only one happiness in this life, to love and be loved.[br][br] But I lived in the darkness."</Entry>
</CATEGORY>

How do you make it show up on the screen ?
There could be an error somewhere else on your .lang cause if theres one error the whole thing stops working



RE: Messages don't show up :( - mrscoomich - 04-19-2012


<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">"..."</Entry>
</CATEGORY>

<CATEGORY Name="Fade">
<Entry Name="First">"There is only one happiness in this life, to love and be loved.[br][br] But I lived in the darkness."</Entry>
<Entry Name="Second">"500 years ago, I was tortured and killed in that very dungeon. [br] The murderer had regret it." </Entry>
<Entry Name="Third">I am not a man, nor am I a lady.[br][br] I am a child.[br][br][br]My name is..."</Entry>
<Entry Name="Last">"...Angella Stilson."</Entry>
</CATEGORY>



</LANGUAGE>

***********

here is the whole .lang script


RE: Messages don't show up :( - jamessnk1 - 04-19-2012

(04-19-2012, 12:31 AM)mrscoomich Wrote: here is the whole .lang script
Try taking out the quotation marks that are between all the <Entry> </Entry> parts. That might be it, because quotations are unnecessary in text between entry markers.



RE: Messages don't show up :( - mrscoomich - 04-19-2012

ah! It works Big Grin Thank you so much!


RE: Messages don't show up :( - jamessnk1 - 04-19-2012

(04-19-2012, 12:45 AM)mrscoomich Wrote: ah! It works Big Grin Thank you so much!
No problem Big Grin If you have a steam account you can add me and ill do my best to help you whenever Smile