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
Note/Diary Narration
JoeBradleyUK Offline
Member

Posts: 115
Threads: 20
Joined: Jul 2011
Reputation: 0
#26
RE: Note/Diary Narration

(07-16-2011, 03:57 PM)palistov Wrote: Haha sure thing.

First step, make sure your lang file's entry is in order.

<CATEGORY Name="Journal">
<Entry Name="Diary_YourDiary_Name1">Your Diary's Name</Entry>
<Entry Name="Diary_YourDiary_Text1">[voice yourdiarynarration.ogg][br]Your Diary's Text</Entry>
</CATEGORY>

That's the basic structure. For diaries that have multiple notes (for instance, a story split up into 3 parts), use the indexes after the entry name. I believe this is just used to put the dairies in order in your journal, in case you pick them up out of order. Not sure though. The 'yourdiarynarration' sound file, or whatever it may be in your case NEEDS to exist. Without it the diary will automatically close once it is picked up, even when you put ReturnOpenJournal(true); in your diary's callback. This is because diaries NEED a narration to play when they are picked up, while notes' narrations are optional.

Now, on to your prop. Place the diary page and select it. On the right side you'll see two tabs. Click the 'Entity' tab. Under the DiaryText field put 'YourDiary', or whatever it was named in your lang file. Next, put 'YourDiaryCallback' under the DiaryCallback field. Don't include those single quotation marks.

In your script file, add the function:

void YourDiaryCallback(string &in name, int index)
{
ReturnOpenJournal(true);
//This stuff will happen when your diary is picked up
}

Once this is all done, launch your story from the main menu and see if it works Smile
If your diary's text isn't working, check your lang file for mistakes. If it is opening and closing immediately, make sure your diary's narration file matches the file you pointed to in your lang file, and that it exists and is in the game files somewhere, ideally the sounds folder.


THANKYOU, THANKYOU, THANKYOU, THANKYOU, THANKYOU, THANKYOU, THANKYOU, THANKYOU, THANKYOU, and everyone who helped!!! It works, wooo! It gives me great pleasure to change this thread to SOLVED!! Thanks again Big Grin Heart

:Work In Progress:
Insanity
07-16-2011, 04:51 PM
Find


Messages In This Thread
Note/Diary Narration - by JoeBradleyUK - 07-12-2011, 08:54 PM
RE: Note/Diary Narration - by triadtimes - 07-12-2011, 09:07 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-12-2011, 09:12 PM
RE: Note/Diary Narration - by Kurton - 07-12-2011, 10:00 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-12-2011, 10:03 PM
RE: Note/Diary Narration - by triadtimes - 07-12-2011, 10:05 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-12-2011, 10:24 PM
RE: Note/Diary Narration - by triadtimes - 07-12-2011, 10:35 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-12-2011, 10:46 PM
RE: Note/Diary Narration - by triadtimes - 07-12-2011, 11:01 PM
RE: Note/Diary Narration - by Henriksen - 07-13-2011, 06:59 AM
RE: Note/Diary Narration - by JoeBradleyUK - 07-13-2011, 05:33 PM
RE: Note/Diary Narration - by triadtimes - 07-13-2011, 10:00 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-13-2011, 10:14 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-14-2011, 04:49 PM
RE: Note/Diary Narration - by triadtimes - 07-14-2011, 05:53 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-14-2011, 06:28 PM
RE: Note/Diary Narration - by triadtimes - 07-14-2011, 07:19 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-14-2011, 07:34 PM
RE: Note/Diary Narration - by palistov - 07-15-2011, 01:59 AM
RE: Note/Diary Narration - by JoeBradleyUK - 07-15-2011, 07:59 AM
RE: Note/Diary Narration - by palistov - 07-15-2011, 08:18 AM
RE: Note/Diary Narration - by JoeBradleyUK - 07-15-2011, 11:30 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-16-2011, 03:43 PM
RE: Note/Diary Narration - by palistov - 07-16-2011, 03:57 PM
RE: Note/Diary Narration - by JoeBradleyUK - 07-16-2011, 04:51 PM



Users browsing this thread: 1 Guest(s)