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
No text will show up!
PowerPlay Offline
Junior Member

Posts: 12
Threads: 4
Joined: Dec 2016
Reputation: 0
#1
No text will show up!

Hello!

I am trying to setup my extra_lang file but I am not sure if it's working. I am trying to walk through a script area and when I do I want a message to display on screen, much like how they can appear on locked doors. Now I looked at the engine scripts and how to set it up but I am not sure I've done it correctly because the message does not show.

EDIT: I just found out that no text show up for anything, keys, doors etc except for the Health, Sanity, Oil and already existing items. But when I create a key it will say "Picked up" and then nothing, and when I look at it in the inventory it does not have a name or description! But other items like the Lantern does!

Here are both my script and lang file (The script is short because it's the first thing you do when entering the level.)

Script!
Spoiler below!
void OnStart()
{
AddEntityCollideCallback("Player", "ChapterAnnounce", "Chapter1", true, 1);
}

void Chapter1(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "Chapter1Name", 0);
}

Lang File!
Spoiler below!
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
A rumbling noise has woken you up. You spring from bed and get dressed. Now it's off to the main office.
</Entry>
</CATEGORY>
</LANGUAGE>


<CATEGORY Name="Messages">

<Entry Name="Chapter1Name">Chapter one: Down below</Entry>

</CATEGORY>


<CATEGORY Name="Inventory">

<Entry Name="ItemDesc_Labkey">Key to the laboratory</Entry>
<Entry Name="ItemName_Labkey">Laboratory Key</Entry>

</CATEGORY>

I hope for any help!Angel
(This post was last modified: 12-02-2016, 07:15 PM by PowerPlay.)
12-02-2016, 06:28 PM
Find


Messages In This Thread
No text will show up! - by PowerPlay - 12-02-2016, 06:28 PM
RE: No text will show up! - by PowerPlay - 12-02-2016, 07:17 PM
RE: No text will show up! - by Mudbill - 12-03-2016, 12:16 AM
RE: No text will show up! - by PowerPlay - 12-03-2016, 12:06 PM
RE: No text will show up! - by Romulator - 12-03-2016, 01:00 PM
RE: No text will show up! - by PowerPlay - 12-03-2016, 01:03 PM
RE: No text will show up! - by Romulator - 12-03-2016, 01:08 PM
RE: No text will show up! - by PowerPlay - 12-03-2016, 02:39 PM
RE: No text will show up! - by CarnivorousJelly - 12-04-2016, 06:03 PM
RE: No text will show up! - by PowerPlay - 12-04-2016, 06:30 PM
RE: No text will show up! - by Mudbill - 12-05-2016, 01:18 AM
RE: No text will show up! - by PowerPlay - 12-04-2016, 01:55 PM
RE: No text will show up! - by Spelos - 12-04-2016, 02:52 PM



Users browsing this thread: 1 Guest(s)