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
Memento Not Showing - Solved
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#1
Memento Not Showing - Solved

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.

(This post was last modified: 01-26-2014, 10:00 PM by MsHannerBananer.)
01-26-2014, 08:14 PM
Find
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#2
RE: Memento Not Showing

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

[Image: 23778.png]
01-26-2014, 09:37 PM
Website Find
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#3
RE: Memento Not Showing

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

01-26-2014, 09:39 PM
Find
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#4
RE: Memento Not Showing

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.

[Image: 23778.png]
(This post was last modified: 01-26-2014, 11:07 PM by ingedoom.)
01-26-2014, 09:47 PM
Website Find
MsHannerBananer Offline
Member

Posts: 218
Threads: 34
Joined: Sep 2013
Reputation: 10
#5
RE: Memento Not Showing

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.

01-26-2014, 09:59 PM
Find
ingedoom Offline
Member

Posts: 120
Threads: 12
Joined: Feb 2012
Reputation: 0
#6
RE: Memento Not Showing - Solved

You are very welcome.

[Image: 23778.png]
01-26-2014, 10:53 PM
Website Find




Users browsing this thread: 4 Guest(s)