Frictional Games Forum (read-only)
mementos - 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: mementos (/thread-16645.html)



mementos - Steve - 07-01-2012

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:
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


RE: [HELP] mementos - General Gregsworth - 07-01-2012

The Frictional games wiki is your friend.


RE: [HELP] mementos - ZyLogicX - 07-01-2012

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>


RE: [HELP] mementos - Steve - 07-01-2012

(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


RE: [UNSOLVED] mementos - Damascus - 07-01-2012

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)


RE: [UNSOLVED] mementos - Steve - 07-01-2012

(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.