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
Message on locked doors not working!=SOLVED!
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#1
Message on locked doors not working!=SOLVED!

Hello Everyone

I've just started using HPL2 editor for amnesia and have started to create my own custom story. The only problem I have come up to with my coding is that when I click on my locked door a message should appear saying "This door is locked". I have gone through many different youtube videos and forums I cannot seem to find out why it is not working, if someone would be as kind as to read my code and tell me why I would be very grateful as i've spent over 2 hours trying to just make text appear on a door lol Dodgy

anyway here is my .hps file

void OnStart()
{
SetEntityPlayerInteractCallback("Locked_Door", "DoorLockedPlayer", false);
}

void DoorLockedPlayer(string &in asEntity)
{
SetMessage("Messages", "msgname", 10);
}



void OnEnter()
{
}

void OnLeave()
{
}

and here is my .lang file

<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
hello how are you?
</Entry>

</CATEGORY>

<CATEGORY Name=“Messages”>

<Entry Name=“msgname”>The door is locked</Entry>

</CATEGORY>

</LANGUAGE>
(This post was last modified: 04-13-2014, 09:00 PM by Wafflychicken.)
04-11-2014, 09:19 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: Message on locked doors not working!

Are you using the correct quotes in your lang file? I noticed some look normal and some look askew.
"" and “”

Perhaps they are not recognized as quotes and cause a parsing error.

04-11-2014, 09:26 PM
Find
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#3
RE: Message on locked doors not working!

(04-11-2014, 09:26 PM)Mudbill Wrote: Are you using the correct quotes in your lang file? I noticed some look normal and some look askew.
"" and “”

Perhaps they are not recognized as quotes and cause a parsing error.

hey Mudbil!

i've just changed the quotes now and i am proud to say that it is officially working!! omg I cant believe i've got it working i've been doing it for 3 and half hours and I feel really stupid knowing it was just the quotes that needed changing Dodgy haha anyway i wanted to say a big thankyou to you and keep up the brill youtube videos!!
04-11-2014, 09:36 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Message on locked doors not working!

Why thank you c:
Glad you got it working!

04-11-2014, 11:12 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#5
RE: Message on locked doors not working!

Why making 2 threads of the same issue.....?
(This post was last modified: 04-11-2014, 11:46 PM by DnALANGE.)
04-11-2014, 11:41 PM
Find
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#6
RE: Message on locked doors not working!

(04-11-2014, 11:41 PM)DnALANGE Wrote: Why making 2 threads of the same issue.....?

because I put it in the wrong category and I didnt want it to get taken down silly on my part. Confused
04-12-2014, 01:16 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#7
RE: Message on locked doors not working!

It wouldn't be taken down. It would just be moved here instead. It really doesn't matter on your part as long as you don't keep making them in the wrong place.

(This post was last modified: 04-12-2014, 02:04 PM by Mudbill.)
04-12-2014, 02:04 PM
Find
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#8
RE: Message on locked doors not working!

(04-12-2014, 02:04 PM)Mudbill Wrote: It wouldn't be taken down. It would just be moved here instead. It really doesn't matter on your part as long as you don't keep making them in the wrong place.

Ok thanks i'll keep that in mind! Blush
04-12-2014, 03:33 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#9
RE: Message on locked doors not working!

Its okay!
Remember to do this IF something is solved.
On your topic name : Message on locked doors not working! = SOLVED!
For example.
SO we know "we" do not have to check for help.
Just a "To know thingy"
04-12-2014, 04:13 PM
Find
Wafflychicken Offline
Junior Member

Posts: 13
Threads: 3
Joined: Apr 2014
Reputation: 1
#10
RE: Message on locked doors not working!=SOLVED!

(04-12-2014, 04:13 PM)DnALANGE Wrote: Its okay!
Remember to do this IF something is solved.
On your topic name : Message on locked doors not working! = SOLVED!
For example.
SO we know "we" do not have to check for help.
Just a "To know thingy"

Ok I'll change it now Smile
(This post was last modified: 04-13-2014, 03:52 PM by Wafflychicken.)
04-13-2014, 03:51 PM
Find




Users browsing this thread: 1 Guest(s)