I just started adding text to my maps and I figured adding a few hints would be fair for the player. Problem is, the hints, note text, and custom item names don't show up on screen. The game doesn't crash or say anything is wrong with the lang/script files.
This is the .lang file:
<LANGUAGE>
</RESOURCES>
/////////////////////////////////////////////////
/////////////CS DESCRIPTION STUFF////////////////
/////////////////////////////////////////////////
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">There are multiple endings based on your actions. Good luck. (note to self: edit this later)</Entry>
</CATEGORY>
/////////////////////////////////////////////////
//////////////////INVENTORY//////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="Inventory">
<Entry Name="ItemName_ScienceKey">Room Key</Entry>
<Entry Name="ItemDesc_ScienceKey">A simple key. Probably for that locked room down the hallway...</Entry>
</CATEGORY>
/////////////////////////////////////////////////
////////////////JOURNAL ENTRIES//////////////////
/////////////////////////////////////////////////
<CATEGORY Name="Journal">
</CATEGORY>
/////////////////////////////////////////////////
//////////////////LEVEL NAMES////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="Levels">
<Entry Name="LivingQuarters">Living Quarters</Entry>
<Entry Name="Atrium">Atrium</Entry>
</CATEGORY>
/////////////////////////////////////////////////
//////////////////GAME HINTS/////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="LivingQuarters">
<Entry Name="FirstHint">I don't think that candle was lit when I got here.</Entry>
<Entry Name="SecondHint">That chemical jar... something must have made it fall, but what?</Entry>
</CATEGORY>
/////////////////////////////////////////////////
//////////////////DEATH HINTS////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="Hints">
</CATEGORY>
/////////////////////////////////////////////////
////////////////EMOTION STONE////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="EmotionStone">
</CATEGORY>
/////////////////////////////////////////////////
/////////////////LOADING TEXT////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="LoadingText">
</CATEGORY>
/////////////////////////////////////////////////
////////////////////CREDITS//////////////////////
/////////////////////////////////////////////////
<CATEGORY Name="Ending">
</CATEGORY>
</LANGUAGE>
and the script which requires the lang:
void Hint_1(string &in asParent, string &in asChild, int alState)
{
AddTimer("First_Hint", 120.0f, "timer_hint_1");
}
void Hint_2(string &in asParent, string &in asChild, int alState)
{
AddTimer("Second_Hint", 240.0f, "timer_hint_2");
}
void timer_hint_1(string &in asTimer)
{
SetMessage("LivingQuarters", "FirstHint", 10.0f);
}
void timer_hint_2(string &in asTimer)
{
SetMessage("LivingQuarters", "SecondHint", 10.0f);
}
Any suggestions? I'm completely stumped
Edit: I couldn't find anything in the wiki or on the forum about lang files. Sorry if I'm asking a question that's been asked before