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
extra_english.lang Not Working
Zaffre Away
Posting Freak

Posts: 867
Threads: 50
Joined: Jul 2012
Reputation: 30
#1
extra_english.lang Not Working

Hello. I recently posted about how my stories weren't showing up, but that's sorted out. Here's my error: the extra_english.lang isn't working. I've tried editing it, but to no avail. Here are my scripts; I followed them from a video, as I'm new to coding. It could just be my ignorance.

01_tutorial.hps (the main map):

Spoiler below!
void OnStart()
{
SetLocalVarInt("DoorLocked", 1);
AddUseItemCallback("", "key_study_1", "level_wood_1", "FUNCTION", true);
AddUseItemCallback("", "key_study_2", "mansion_1", "FUNCTION2", true);
SetEntityPlayerInteractCallback("mansion_1", "FUNCTION3", false);
}

void OnEnter()
{

}

void OnLeave()
{

}
void FUNCTION(string &in item, string &in door)
{
SetLevelDoorLocked("level_wood_1", false);
PlayGuiSound("unlock_door.snt", 100);
RemoveItem("key_study_1");
}
void FUNCTION2(string &in item, string &in door)
{
SetSwingDoorLocked("mansion_1", false, true);
PlayGuiSound("unlock_door.snt", 100);
RemoveItem("key_study_2");
SetLocalVarInt("DoorLocked", 0);
}
void FUNCTION3(string &in entity)
{
if(GetLocalVarInt("DoorLocked") == 1)
{
SetMessage("Messages", "doorlock2", 3);
}
}

custom_story_settings.cfg:

Spoiler below!
<Main
Name="Testing Story"
Author="Zaffre"
ImgFile="preview.jpg"

StartMap="01_tutorial.map"
StartPos="PlayerStartArea_1"
/>

extra_english.lang:

Spoiler below!
<LANGUAGE>
<RESOURCES>
</RESOURCES>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description>Testing grounds.</Entry>

</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="doorlock1">The heavy door is locked.</entry>
<Entry Name="doorlock2">The wooden door is locked.</entry>

</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_key1>A silver key coated with rust.</Entry>
<Entry Name="ItemName_key1>Rusty Key</Entry>
<Entry Name="ItemDesc_key2>A silver key. It looks new.</Entry>
<Entry Name="ItemName_key2>Silver Key</Entry>
</CATEGORY>

</LANGUAGE>

Additional Info: I have two keys. Their custom IDs are key1 an key2. The tutorial series is made by XXVengeanceFilmsXX on YouTube. Thanks in advance.

As of September 2nd, 2014, I've left the Frictional forums. Check my profile for more details.
(This post was last modified: 08-13-2012, 05:32 PM by Zaffre.)
08-13-2012, 05:31 PM
Find
Kurton Offline
Senior Member

Posts: 533
Threads: 8
Joined: Oct 2010
Reputation: 16
#2
RE: extra_english.lang Not Working

You need closing quotation marks after the ItemDescs and ItemNames for key1 and key2, as well as Description.

e.g.
<Entry Name="ItemDesc_key1">A silver key coated with rust.</Entry>

08-16-2012, 06:00 AM
Find
JMFStorm Offline
Member

Posts: 205
Threads: 8
Joined: Aug 2011
Reputation: 28
#3
RE: extra_english.lang Not Working

You are missing one (") marker.

<Entry Name="Description">Testing grounds.</Entry>

And I don't know what that

<RESOURCES>
</RESOURCES>

thing is, so you could delete that and see if it changes anything?

08-16-2012, 06:15 AM
Find
Adny Offline
Posting Freak

Posts: 1,766
Threads: 6
Joined: Mar 2012
Reputation: 173
#4
RE: extra_english.lang Not Working

(08-16-2012, 06:15 AM)JMFStorm Wrote: And I don't know what that

<RESOURCES>
</RESOURCES>


thing is, so you could delete that and see if it changes anything?
The resources section is used to set directory paths for resources (like fonts and the lang); it is only used for full/total conversions so modders can introduce additional custom elements as well as use their own custom lang file. Literally no use for normal mods; I think people just copy it from Your Computer's tutorial or whatever beginner's tutorial for the lang they're using.

I rate it 3 memes.
08-16-2012, 06:19 AM
Find
GoranGaming Offline
Member

Posts: 183
Threads: 30
Joined: Feb 2012
Reputation: 7
#5
RE: extra_english.lang Not Working

(08-16-2012, 06:15 AM)JMFStorm Wrote: You are missing one (") marker.

Testing grounds.

And I don't know what that




thing is, so you could delete that and see if it changes anything?


Frictional Games has it in the lang file for ATDD

Current projects:

The Dark Prison 85 % (Stopped working on this one)

Unnamed Project 7 %
08-16-2012, 06:05 PM
Website Find




Users browsing this thread: 2 Guest(s)