Frictional Games Forum (read-only)
Memento Not Showing - Solved - 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: Memento Not Showing - Solved (/thread-24468.html)



Memento Not Showing - Solved - MsHannerBananer - 01-26-2014

Seems like scripting doesn't like me even from the early stages.

Onto my problem. I'm following Russ Money's tutorial on creating a memento/quest (https://www.youtube.com/watch?v=WfgFEG4TSCE), yet even though I follow it to the best of my abilities, my memento still won't show.

I get the notification that I've received a memento, however, when I open my journal to look, I don't see text. However there is a hyphen right before where the text should be.

I'm sure this is going to be the easiest fix in the world, but because scripting has a lot of variables, I get confused very easily, and very fast. My need for everything to be organized doesn't help either, so I refuse to move on until this problem is solved.

My script can be reviewed in the following spoilers.


Spoiler below!


extra_english.lang script is:

<CATEGORY Name ="Journal">

<Entry Name="Quest_searchHomeQuest_Text">I need to find out why my memory is gone. I should search the house.</Entry>

</CATEGORY>


Spoiler below!

map.hps file script is:

void OnStart()
{
AddEntityCollideCallback("Player", "searchHomeQuest_area", "GetSearchHome", true, 1);

}

void GetSearchHome(string &in asParent, string &in asChild, int alState)
{
AddQuest("searchhome", "searchHomeQuest");
}



And yes, the script box in my map is named searchHomeQuest_area.

I'm sure I probably seem like the biggest noob in the world, not even able to figure out a memento, but like I said, lots of functions, confused easily.


RE: Memento Not Showing - ingedoom - 01-26-2014

Have you got <LANGUAGE> at the top and </LANGUAGE> at the end of your .lang file?


RE: Memento Not Showing - MsHannerBananer - 01-26-2014

(01-26-2014, 09:37 PM)ingedoom Wrote: Have you got <LANGUAGE> at the top and </LANGUAGE> at the end of your .lang file?

Yep.


RE: Memento Not Showing - ingedoom - 01-26-2014

I'm pretty sure you need the boolean in your callback syntax

void GetSearchHome(string &in asParent, string &in asChild, boolean abDeleteOnCollide, int alState)

edit: that makes no sense... How dumb of me.


RE: Memento Not Showing - MsHannerBananer - 01-26-2014

Oh lord. Solved. There was another 'a' on the end of my "..._Quest_Area" that I didn't see because the title was long and cut off on the editor.

Thanks for your help, ingedoom! I'm a moron. Hahaha.


RE: Memento Not Showing - Solved - ingedoom - 01-26-2014

You are very welcome.