Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mementos
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#1
mementos

I can't to get my memenos working can anybody help me?
this is my code. I really have no idea what's wrong.
PHP Code: (Select All)
void OnEnter()
{
//////////Some unimportant stuff//////
 
AddEntityCollideCallback("Player""Walk_Quest_Area""GetWalkQuest"true1);
 
AddEntityCollideCallback("Player""Walk_Complete_Area""FinishWalkQuest"true1);}void GetWalkQuest(string &in asItemstring &in asEntity){
AddQuest("walkquest""WalkQuest");}void FinishWalkQuest(string &in asItemstring &in asEntity)
{
CompleteQuest("walkquest""WalkQuest");
}.
Lang file
  

<LANGUAGE>   <CATEGORY Name="Journal">
<
Entry Name="Quest_WalkQuest_Text">The prison door seems to be locked with a Padlock, Try to find another way to get in.</Entry>
 </
CATEGORY></LANGUAGE
I do have another note at the same category but that one works just fine so I don't think that's the problem. and I can't get the script to shown normaly, normaly it is more organized Smile
(This post was last modified: 07-01-2012, 06:57 PM by Steve.)
07-01-2012, 11:40 AM
Find
General Gregsworth Offline
Junior Member

Posts: 18
Threads: 1
Joined: Jun 2012
Reputation: 0
#2
RE: [HELP] mementos

The Frictional games wiki is your friend.

Developer of Amnesia - Curse of the Ancients
07-01-2012, 11:55 AM
Website Find
ZyLogicX Offline
Member

Posts: 245
Threads: 24
Joined: May 2011
Reputation: 6
#3
RE: [HELP] mementos

http://www.mediafire.com/?oi12qblm66oba54
This is the accurate .hps file you should use


This below should be in the .lang file

<LANGUAGE> <CATEGORY Name="Journal">
<Entry Name="Quest_WalkQuest_Text">The prison door seems to be locked with a Padlock, Try to find another way to get in.</Entry>
</CATEGORY></LANGUAGE>

Beyond the Mountains of Madness [15%]
This forum is dying.
07-01-2012, 12:05 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#4
RE: [HELP] mementos

(07-01-2012, 12:05 PM)ZyLogicX Wrote: http://www.mediafire.com/?oi12qblm66oba54
This is the accurate .hps file you should use


This below should be in the .lang file

<LANGUAGE> <CATEGORY Name="Journal">
<Entry Name="Quest_WalkQuest_Text">The prison door seems to be locked with a Padlock, Try to find another way to get in.</Entry>
</CATEGORY></LANGUAGE>
Weel I don;t really see any diffrence from that to my code but I copy pasted it and it didn't work Do I have to fill in more in the area's names or something that i didn't know
I really have no idea what's wrong. should I fill somthing in in the playerinteract callback of the area's? :S
and what acctualy does the part do
AddQuest("walkquest", "WalkQuest");}
I watched a tuttorial he just filled that in but I don't have an real idea of what it does :S
And If you didn't get that already the code I gave is the .lang file and the .hps file. I put .lang from where the .lang is
(This post was last modified: 07-01-2012, 04:44 PM by Steve.)
07-01-2012, 04:23 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#5
RE: [UNSOLVED] mementos

The problem is improper syntax in your functions. Because it's a collide callback, the syntax should be

void MyFunc(string &in asParent, string &in asChild, int alState)

and not

void MyFunc(string &in asItem, string &in asEntity)

07-01-2012, 05:33 PM
Find
Steve Offline
Member

Posts: 178
Threads: 17
Joined: Jun 2012
Reputation: 7
#6
RE: [UNSOLVED] mementos

(07-01-2012, 05:33 PM)Damascus Wrote: The problem is improper syntax in your functions. Because it's a collide callback, the syntax should be

void MyFunc(string &in asParent, string &in asChild, int alState)

and not

void MyFunc(string &in asItem, string &in asEntity)


That I didn't notice that Tongue
Thanks a lot it's works.
07-01-2012, 06:01 PM
Find




Users browsing this thread: 1 Guest(s)