The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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 Custom Messages Don't Show Up
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#1
Custom Messages Don't Show Up

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 Undecided

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

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 03-21-2013, 08:29 AM by CarnivorousJelly.)
03-21-2013, 08:27 AM
Find


Messages In This Thread
Custom Messages Don't Show Up - by CarnivorousJelly - 03-21-2013, 08:27 AM
RE: Custom Messages Don't Show Up - by 7heDubz - 03-21-2013, 09:26 AM



Users browsing this thread: 3 Guest(s)