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
Script Help There are no texts!
RunHideMoFo Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2015
Reputation: 0
#11
RE: There are no texts!

(01-10-2015, 03:53 PM)Shylia Wrote:
(01-09-2015, 07:18 PM)Mudbill Wrote: If the lantern hint doesn't even appear, then yes, I would think perhaps your english.lang might be corrupt. That might be why the extra one isn't working, because I think it only adds to the main one.

No worries, it works now Smile

What'd youd do to fix it? Because I am having literally the EXACT same problem
01-11-2015, 06:43 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#12
RE: There are no texts!

Well, if the english.lang file is corrupt, then a reinstall would fix that, or a Steam Integrity Check if you have the game on Steam.

If the lantern hint still appears, but your custom story texts do not, then you have a problem with your extra_english.lang file.

If you wish, post your extra_english.lang contents here and I'll take a look!

Discord: Romulator#0001
[Image: 3f6f01a904.png]
01-11-2015, 07:51 AM
Find
RunHideMoFo Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2015
Reputation: 0
#13
RE: There are no texts!

(01-11-2015, 07:51 AM)Romulator Wrote: Well, if the english.lang file is corrupt, then a reinstall would fix that, or a Steam Integrity Check if you have the game on Steam.

If the lantern hint still appears, but your custom story texts do not, then you have a problem with your extra_english.lang file.

If you wish, post your extra_english.lang contents here and I'll take a look!

Here's the lang file:

<LANGUAGE>
<CATEGORY Name="CustomStoryMain"

<Entry Name="Description">The old church had been abandoned for years. Now a darkness awakens within; a darkness that only Ethan Harris can overcome.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">

<Entry Name ="msgname">The door will not budge. You cannot leave.</Entry>

</CATEGORY>
</LANGUAGE>


Also here's the map hps file, just in case the problem is with that instead:

void OnStart()
{

}

void DoorLockedPlayer(string &in entity)

{
if(GetSwingDoorLocked("Entry_Door") == true)
{

SetMessage("Messages", "msgname", 0);

}
}

void OnEnter()
{

}

Thanks man!
01-11-2015, 10:17 AM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#14
RE: There are no texts!

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The old church had been abandoned for years. Now a darkness awakens within; a darkness that only Ethan Harris can overcome.</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="msgname">The door will not budge. You cannot leave.</Entry>
</CATEGORY>
</LANGUAGE>

Try that as a extra_english.lang and let me know if it works now. In simple, you should be able to see the description for your custom story before you load it up. If there is 'No Description', then I have missed something... o.0

Edit: You can also keep the blank line spaces between categories and entries, I just work without them. Feel free to put them back in ^^

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 01-11-2015, 01:18 PM by Romulator.)
01-11-2015, 01:17 PM
Find
RunHideMoFo Offline
Junior Member

Posts: 7
Threads: 1
Joined: Jan 2015
Reputation: 0
#15
RE: There are no texts!

(01-11-2015, 01:17 PM)Romulator Wrote:
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">The old church had been abandoned for years. Now a darkness awakens within; a darkness that only Ethan Harris can overcome.</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="msgname">The door will not budge. You cannot leave.</Entry>
</CATEGORY>
</LANGUAGE>

Try that as a extra_english.lang and let me know if it works now. In simple, you should be able to see the description for your custom story before you load it up. If there is 'No Description', then I have missed something... o.0

Edit: You can also keep the blank line spaces between categories and entries, I just work without them. Feel free to put them back in ^^

It worked! Thanks, man! What exactly did you do differently, aside from the spaces?
01-11-2015, 09:17 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#16
RE: There are no texts!

If I remember, it was just the closing sign ( > ) on the CustomStoryMain. That was missing Smile

There was also a space between Name="msgname" which i removed. I don't know if that changes anything though!

Discord: Romulator#0001
[Image: 3f6f01a904.png]
01-12-2015, 05:22 AM
Find
jmitchell Offline
Junior Member

Posts: 31
Threads: 6
Joined: Feb 2015
Reputation: 2
#17
RE: There are no texts!

Hey there,

Sorry to resurrect this thread, but I'm having the same problem. I've tried all the troubleshooting on this thread, and it's still not displaying in my level. extra_english.lang is in the proper folder location as well. Also, my custom_story_settings.cfg is reading the CustomStoryMain category in the main menu, which I find strange.

extra_english.lang contents:

Spoiler below!

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Amontillado somethin' or other</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_ServantDiary_Name">Servant's Diary</Entry>
<Entry Name="Note_ServantDiary_Text">Montressor seems very paranoid about me being in the library. Always keeps that cellar door locked, too.</Entry>
<Entry Name="Note_OfficeNote_Name">From Montressor's Desk</Entry>
<Entry Name="Note_OfficeNote_Text">I don't trust my servant. I've hid the cellar key in the bathroom.</Entry>
</CATEGORY>
<CATEGORY Name = "Inventory">
<Entry Name="ItemName_CellarKey"> Cellar Key</Entry>
<Entry Name="ItemDesc_CellarKey"> The key to Montressor's cellar</Entry>
</CATEGORY>
</LANGUAGE>


Also, I'm getting these messages in hpl.log at runtime:

WARNING: Could not find language file entry 'Note_ServantDiary_Name'
WARNING: Could not find language file entry 'Note_ServantDiary_Text'
WARNING: Could not find language file entry 'Note_ServantDiary_Name'
WARNING: Could not find language file entry 'Note_ServantDiary_Name'
WARNING: Could not find language file entry 'Note_OfficeNote_Name'
WARNING: Could not find language file entry 'Note_OfficeNote_Text'
WARNING: Could not find language file entry 'Note_OfficeNote_Name'
WARNING: Could not find language file entry 'ItemName_CellarKey'

They're only printed when I try to pick up the items in question.

Thanks in advance!

(This post was last modified: 02-22-2015, 09:06 PM by jmitchell.)
02-22-2015, 09:04 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#18
RE: There are no texts!

Are you sure you typed the name right in the level editor then? For a note, what you put in the NoteText box is the lang entry name WITHOUT the prefix and suffix.

If your note is named Note_OfficeNote_Name in the lang file, you put OfficeNote in the level editor. Nothing more, nothing less.

(This post was last modified: 02-22-2015, 09:18 PM by Mudbill.)
02-22-2015, 09:18 PM
Find
jmitchell Offline
Junior Member

Posts: 31
Threads: 6
Joined: Feb 2015
Reputation: 2
#19
RE: There are no texts!

Double-, triple-, and quadruple-checked that; it should work.

02-22-2015, 09:31 PM
Find
jmitchell Offline
Junior Member

Posts: 31
Threads: 6
Joined: Feb 2015
Reputation: 2
#20
RE: There are no texts!

Alright, I found out that I had to launch my levels through the custom story option, as opposed to going straight to them in debug mode. Mea culpa!

02-23-2015, 08:47 PM
Find




Users browsing this thread: 1 Guest(s)