Frictional Games Forum (read-only)
[LANG] doors wont show text - 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: [LANG] doors wont show text (/thread-14346.html)

Pages: 1 2


RE: doors wont show text - Cranky Old Man - 04-21-2012

(04-21-2012, 01:42 PM)Dutton Wrote: Speaking of Categorys. I'm quite confused about them. I don't really understand if every single category you type, has to be something special to work? for example the level doors. as you said:

Quote:"If it's a level door the category name has to be "Levels" and not "LevelDoors"
Like this:
<CATEGORY Name="Levels">
<Entry Name="Study_Door">Study</Entry>
<Entry Name="Storage_Door">Storage</Entry>
</CATEGORY>
How do you exactly know when it has to be a specific category name?
He's wrong. The Levels category is for names that displays when listing autosaves. You should be using the LevelDoors category. (No, I was wrong.) One moment and I'll check out your problem.

Edit: If your problem is fixed now, and you're just asking about what categories there are, you can find them by checking out english.lang and base_english.lang from the original Amnesia and Justine.

Here are some useful ones from my lang file comments:

Code:
// The basic category names can probably all be found in "base_english.lang" and "english.lang".
  // They all follow the same format.
  //
  // Here is a list of all the useful CATEGORY names:
  // CustomStoryMain - Needs to have an entry named "Description", containing the story description.
  // Inventory - Listed as names (ItemName_x) and descriptions (ItemDesc_x) of inventory items, where "x" is what is specified in the CustomSubItemTypeName field of the entity.
  //   Combine complaints typically also go here, and displayed with "SetInventoryMessage("Inventory", "Entry name", -1);".
  // Journal - Journal entries.
  //   Notes are listed as names ("x_Name") and contents ("x_Text").
  //   Diary entries are listed as titles ("Diary_x_Name1") and contents ("Diary_x_Text1"). The number is the entry.
  //   Quests are also listed here, as "Quest_x_Text". (Quests are added in-game with the AddQuest() function, and removed with the CompleteQuest() function.)
  //   Notes and diaries have certain format tags. The [br] tag gives a line break, and the [new_page] tag signifies a page break, but it must be listed on its own line, like so: "[br][new_page][br]"
  //   Diaries can also have voice-overs. The .ogg file must be listed on a line by itself, like this: "[br][voice Diary_CH01L03_Daniel0102_01.ogg][br]"
  // Messages - Not sure if this is correct, because it's not in "english.lang", but it's supposed to be messages that appear on screen (like explanations or thoughts).
  // Levels - Level names. Entries displayed when hovering the cursor over a level door, or when listing autosaves. The SetMapDisplayNameEntry script is used to set it.
  // LevelDoors - Barely used. Messages used for locked level doors.
  // Hints - Gameplay hints, but also death hints/messages. (The default death entry is called "DefaultDeath", and is "You have to carry on...".)
  // Flashbacks - Audio cutscene text. (Maybe more - didn't check.)
  // EmotionStone - Emotion stone messages.
  // LoadingText - Text during loading screens.
  // PreMenu - Text that will appear when you start the game, before the level starts.
  // Ending - The end credits. (The entry name has to be MainCredits, overwriting the original credits.)
  //
  // You can also create custom categories, to provide messages when something is viewed.

Enjoy.



RE: doors wont show text - zombiehacker595 - 04-21-2012

(04-21-2012, 02:01 PM)Cranky Old Man Wrote:
(04-21-2012, 01:42 PM)Dutton Wrote: Speaking of Categorys. I'm quite confused about them. I don't really understand if every single category you type, has to be something special to work? for example the level doors. as you said:

Quote:"If it's a level door the category name has to be "Levels" and not "LevelDoors"
Like this:
<CATEGORY Name="Levels">
<Entry Name="Study_Door">Study</Entry>
<Entry Name="Storage_Door">Storage</Entry>
</CATEGORY>
How do you exactly know when it has to be a specific category name?
He's wrong. The Levels category is for names that displays when listing autosaves. You should be using the LevelDoors category. One moment and I'll check out your problem.

Edit: If your problem is fixed now, and you're just asking about what categories there are, you can find them by checking out english.lang and base_english.lang from the original Amnesia and Justine.

Here are some useful ones from my lang file comments:

Code:
// The basic category names can probably all be found in "base_english.lang" and "english.lang".
// They all follow the same format.
//
// Here is a list of all the useful CATEGORY names:
// CustomStoryMain - Needs to have an entry named "Description", containing the story description.
// Inventory - Listed as names (ItemName_x) and descriptions (ItemDesc_x) of inventory items, where "x" is what is specified in the CustomSubItemTypeName field of the entity.
// Combine complaints typically also go here, and displayed with "SetInventoryMessage("Inventory", "Entry name", -1);".
// Journal - Journal entries.
// Notes are listed as names ("x_Name") and contents ("x_Text").
// Diary entries are listed as titles ("Diary_x_Name1") and contents ("Diary_x_Text1"). The number is the entry.
// Quests are also listed here, as "Quest_x_Text". (Quests are added in-game with the AddQuest() function, and removed with the CompleteQuest() function.)
// Notes and diaries have certain format tags. The [br] tag gives a line break, and the [new_page] tag signifies a page break, but it must be listed on its own line, like so: "[br][new_page][br]"
// Diaries can also have voice-overs. The .ogg file must be listed on a line by itself, like this: "[br][voice Diary_CH01L03_Daniel0102_01.ogg][br]"
// Messages - Not sure if this is correct, because it's not in "english.lang", but it's supposed to be messages that appear on screen (like explanations or thoughts).
// Levels - Level names. Is displayed as the map name when listing autosaves. The SetMapDisplayNameEntry script is used to set it.
// LevelDoors -
// Hints - Gameplay hints, but also death hints/messages. (The default death entry is called "DefaultDeath", and is "You have to carry on...".)
// Flashbacks - Audio cutscene text. (Maybe more - didn't check.)
// EmotionStone - Emotion stone messages.
// LoadingText - Text during loading screens.
// PreMenu - Text that will appear when you start the game, before the level starts.
// Ending - The end credits. (The entry name has to be MainCredits, overwriting the original credits.)
//
// You can also create custom categories, to provide messages when something is viewed.


Enjoy.

thank you for the help Smile


RE: doors wont show text - i3670 - 04-21-2012

How can I be wrong when the level editor says that way?

Text Entry
"The text shown when the door is in focus. Category is always Levels"



RE: doors wont show text - Cranky Old Man - 04-21-2012

(04-21-2012, 09:32 PM)i3670 Wrote: How can I be wrong when the level editor says that way?

Text Entry
"The text shown when the door is in focus. Category is always Levels"
*doublechecks.* Hmm. You're absolutely right. This is weird, because I think it was Jens from FG who told me that the Level category was only(?) used when listing autosaves.




RE: doors wont show text - i3670 - 04-21-2012

Maybe there is two ways of doing, if Jens said it it must be true, if he's not wrong that is Undecided



RE: doors wont show text - Cranky Old Man - 04-22-2012

(04-21-2012, 11:48 PM)i3670 Wrote: Maybe there is two ways of doing, if Jens said it it must be true, if he's not wrong that is Undecided
Everything indicates that I was completely wrong, so it must have been some kind of misunderstanding.




RE: doors wont show text - zombiehacker595 - 04-22-2012

well i figured how to fix it a while ago so it doesnt really matter Smile