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
How make this script? (SOLVED)
Spelos Away
Banned

Posts: 231
Threads: 19
Joined: Sep 2014
#17
RE: How make this script?

Right...

If this is your full .lang file:
Spoiler below!

PHP Code: (Select All)
<CATEGORY Name="CustomStoryMain">
<
Entry Name="Description"Description custom story </Entry>
</
CATEGORY>

----------
Notatki/Myśli----------
<
CATEGORY Name="Journal">

<
Entry Name="Note_voice_Name">Name Note</Entry>
<
Entry Name="Note_voice_Text">[voice Voice1.ogg][brText</Entry>


<
Entry Name="Quest_mementos1_Text">I must find key in bathroom.</Entry>
</
CATEGORY>

----------
Nazwy I Opisy Przedmiotów----------
<
CATEGORY Name="Inventory">
<
Entry Name="ItemName_KeyDesc"Bathroom Key</Entry>
<
Entry Name="ItemDesc_KeyDesc"Olddusty keyUsed of peple thereof manor house.</Entry>

</
CATEGORY>
<
CATEGORY Name="CategoryName">
<
Entry Name="EntryName">My text</Entry>
</
CATEGORY>

</
LANGUAGE


Then there's two main things wrong.
You have to start with <LANGUAGE> and the comments need to have other syntax.

This should be corrected .lang file:
Spoiler below!

PHP Code: (Select All)
<LANGUAGE>
    <
CATEGORY Name="CustomStoryMain">
        <
Entry Name="Description"Description custom story </Entry>
    </
CATEGORY>

    <!-- 
Notatki/Myśli -->
    <
CATEGORY Name="Journal">
        <
Entry Name="Note_voice_Name">Name Note</Entry>
        <
Entry Name="Note_voice_Text">[voice Voice1.ogg][brText</Entry>

        <
Entry Name="Quest_mementos1_Text">I must find key in bathroom.</Entry>
    </
CATEGORY>

    <!-- 
Nazwy I Opisy Przedmiotów -->
    <
CATEGORY Name="Inventory">
        <
Entry Name="ItemName_KeyDesc"Bathroom Key</Entry>
        <
Entry Name="ItemDesc_KeyDesc"Olddusty keyUsed of peple thereof manor house.</Entry>
    </
CATEGORY>
    
    <
CATEGORY Name="CategoryName">
        <
Entry Name="EntryName">My text</Entry>
    </
CATEGORY>
</
LANGUAGE


If the problem is still there, classic mistakes are:
  • Categories that don't end or have wrong structure
    Make sure that every category begins and ends withing <LANGUAGE> tags.
    Make sure that the spelling is ok.

  • Missing end of Language
    <LANGUAGE> does have to be the first thing of the file and </LANGUAGE> the last.

  • Leaving plain text
    Sometimes it happens. You copy something and leave if in there. Anything that doesn't belong to anything else needs to go away.
    Remember that //Comment is not the correct syntax for comments in .lang.
    <!-- Comment --> is the one.

  • Missing quotes
    In entry's and category's name it's required!

  • Duplicate Categories
    Make sure there are no duplicate categories with the same name.

  • Misspelled the .lang file itself.
    It does need to be "extra_english.lang"

  • Wrong type of document
    Make sure it's "extra_english.lang" not "extra_english.lang.txt"
    Choose save as... and make sure you select save as "all types" and include the .lang.
(This post was last modified: 02-16-2016, 05:16 PM by Spelos.)
02-16-2016, 05:07 PM
Find


Messages In This Thread
How make this script? (SOLVED) - by Abihishi - 02-14-2016, 06:11 PM
RE: How make this script? - by Mudbill - 02-14-2016, 07:41 PM
RE: How make this script? - by Abihishi - 02-14-2016, 07:57 PM
RE: How make this script? - by Romulator - 02-14-2016, 08:32 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:34 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:47 PM
RE: How make this script? - by Mudbill - 02-14-2016, 08:51 PM
RE: How make this script? - by Abihishi - 02-14-2016, 08:54 PM
RE: How make this script? - by Mudbill - 02-14-2016, 11:53 PM
RE: How make this script? - by Abihishi - 02-15-2016, 03:12 PM
RE: How make this script? - by Daemian - 02-16-2016, 12:46 AM
RE: How make this script? - by Spelos - 02-16-2016, 08:48 AM
RE: How make this script? - by Abihishi - 02-16-2016, 03:17 PM
RE: How make this script? - by Mudbill - 02-16-2016, 03:26 PM
RE: How make this script? - by Romulator - 02-16-2016, 03:55 PM
RE: How make this script? - by Abihishi - 02-16-2016, 04:09 PM
RE: How make this script? - by Spelos - 02-16-2016, 05:07 PM
RE: How make this script? - by Abihishi - 02-16-2016, 05:38 PM
RE: How make this script? - by Spelos - 02-16-2016, 06:15 PM
RE: How make this script? - by Abihishi - 02-16-2016, 07:44 PM
RE: How make this script? - by Mudbill - 02-16-2016, 10:09 PM



Users browsing this thread: 1 Guest(s)