Frictional Games Forum (read-only)
[SOLVED] Super Simple Message Isn't Working ;_; - 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: [SOLVED] Super Simple Message Isn't Working ;_; (/thread-13375.html)



[SOLVED] Super Simple Message Isn't Working ;_; - Strembitsky - 02-17-2012

Code:
AddEntityCollideCallback("Player", "DadRoom", "DadRoom", true, 1);
}
void DadRoom(string &in asParent, string &in asChild, int alState)
{
    SetMessage("Messages", "DadRoom", 0);
}

Doesn't work :/

I've been fiddling with it for a while, and it refuses to show the message when I enter the area. The name in extra_english is correct, as with the area in the editor.


RE: Super Simple Message Isn't Working ;_; - Statyk - 02-17-2012

void OnStart()
{
AddEntityCollideCallback("Player", "DadRoom", "DadRoom_func", true, 1);
}
void DadRoom_func(string &in asParent, string &in asChild, int alState)
{
SetMessage("Messages", "DadRoom", 0);
}



//________________

Try that


RE: Super Simple Message Isn't Working ;_; - Strembitsky - 02-17-2012

Didn't do it :/

I added a debug message, and it didn't show. The function isn't even getting called :S


RE: Super Simple Message Isn't Working ;_; - Your Computer - 02-17-2012

Does everything else related to the extra_english.lang file show up? Also, post the contents of the lang file.


RE: Super Simple Message Isn't Working ;_; - Strembitsky - 02-17-2012

Every other message works.

Code:
<CATEGORY Name="Messages">
     <Entry Name="DadRoom">This is my father's room.</Entry>
      </CATEGORY>

EDIT: I'm a fucking retard. It was in the wrong .hps.


RE: Super Simple Message Isn't Working ;_; - Statyk - 02-17-2012

(02-17-2012, 02:58 AM)Strembitsky Wrote: EDIT: I'm a fucking retard. It was in the wrong .hps.



I COMPLETELY understand the feeling... I did the same thing a while back. =P