The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
TUTORIAL: How to make a readable note
Neurological Offline
Member

Posts: 71
Threads: 11
Joined: Sep 2010
Reputation: 1
#1
TUTORIAL: How to make a readable note

//Note from FG//
While the info in this post is good, do not edit the original game files, it will only result in problems and if you make a level you want to share with others. There is a design to make a new .lang file, that makes sharing custom maps much easier. See MulleDKs post further down in the thread
//////////////////////

This tutorial will teach you how to create a readable note that is stored on the Journal, full with title and text.

It is intended that you know the basics of the level editor.

SETTING UP THE TEXT

First off you have to create your text for the note. The only way at the moment is to modify directly the language files of Amnesia. In your Amnesia folder you can see the folder "Config".

Inside that folder there are various files with *.lang extension, those are normal text files that can be edited with notepad or other similar text editors.

Inside "Config", open the folder "lang_main", inside you will see different language files, those files contains all the text in various languages you see in the game like notes, diary entries or item names.

For now we are gonna to pick the english.lang. Open it with notepad or any other text program. For our note we have to find the category where journal entries are stored.

With the search function of the text program search the word "Journal".

You will see:

<CATEGORY Name="Journal">

that ends with:

</CATEGORY>

Now you have to your text in between those two lines. Put it right before </CATEGORY>, so you can find it easily. You need to write two lines of text, one for the title and one for the note text, for now we are going to use an example text:

<Entry Name="Note_MYNOTE_Name"> My title note here</Entry>
<Entry Name="Note_MYNOTE_Text">My note text here</Entry>


Lets see what does it means:

Entry Name - This is the function with the engine call the text string

"Note_MYNOTE_Name" & "Note_MYNOTE_Text" - This is subdivided in three parts, Note is the prefix that tell the game that is a note and should go in the note category of the journal.

MYNOTE is the name you will need to write in the level editor to call that text line, it can be anything you want MYNOTE is just an example.

Name tell the game that is the title of the note, so it will be put as title on the journal list and at the top of the note.

Text
is the actual text of the note

SETTING UP THE ENTITY

Now the easy part. Open up the level editor, and make a simple map or use one that you already have created.

Select "Entities" and on the list go to Items. Scroll down you should find the notes entities. There are various but for now just pick "note_generic", and put it on your map.

Then on the viewports selectthe note entity. On the right will appear the entity inspector with the entity properties. Click on "Entity" next to "General".

Here you have to change some properties.

Under CallbackFunc write:

EntityCallPickNote

This will make the note appear on the journal and disappear from the gameworld when clicked.

Under NoteText write:

MYNOTE

This is the name of your text line you previously wrote on the english.lang file. Note that the full string is not needed.

Thats it, rne the map and read your new custom note. For any question feel free to ask.

Neurological - Music Entertainment
http://www.neuro-lab.net
(This post was last modified: 09-18-2010, 10:30 AM by jens.)
09-16-2010, 12:21 AM
Find


Messages In This Thread
TUTORIAL: How to make a readable note - by Neurological - 09-16-2010, 12:21 AM



Users browsing this thread: 1 Guest(s)