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
.Lang File Help My .Lang File "Died"?
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#1
My .Lang File "Died"?

Hello again!, i Knew i do too many threads of errors and i am real sorrySad, After Searching the wiki and forum i could't find a solution when a script "Die".

Everything i pick up only says "Picked up" and so on, and i have checked for errors but everything seems to be correct, Here is the lang file:

Spoiler below!
<LANGUAGE>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">
Under Construction
</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Key1">Key to the cabinet.</Entry>
<Entry Name="ItemName_Key1">Cabinet Key</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Key2">Key to a small chest.</Entry>
<Entry Name="ItemName_Key2">Chest Key</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_ironkey_1">A key for the basementdoor</Entry>
<Entry Name="ItemName_ironkey_1">Basement Key</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Health_1">A Bottle Of Medicine For Isac.</Entry>
<Entry Name="ItemName_Health_1">Isac's Medicine</Entry>
</CATEGORY>

<CATEGORY Name="Journal">
<Entry Name="Note_note_letter_1_Name">Letter From Mom</Entry>
<Entry Name="Note_note_letter_1_Text">God Morning Isac! [br][br] When you get down there will be breakfast ready for you. Me and your dad are out shopping and then we will head for work so you will be home alone until tomorrow, so please, dont set our home on fire! And in our closet we have placed a pouch with coins for your food and dad have placed the keys in your workdesk. [br][br] PS Don't forget your medicine on your workdesk. [br][br] //Mom</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_Needle_1">A Hairpin, Made in plastic.</Entry>
<Entry Name="ItemName_Needle_1">Hairpin</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_MoneyPouch_1">A pouch filled with coins.</Entry>
<Entry Name="ItemName_MoneyPouch_1">Pouch</Entry>
</CATEGORY>

<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">What The Hell?</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="Popup_1">What The?</Entry>
</CATEGORY>
<CATEGORY Name="Descriptions">
</CATEGORY>
<CATEGORY Name="Levels">


</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="Door_1">Downstairs</Entry>
</CATEGORY>

<CATEGORY Name="Levels">
<Entry Name="wood_door_1">Bedrooms</Entry>
</CATEGORY>

<CATEGORY Name=“DeathCategory”>
<Entry Name=“Deathtext”>You will slowly wake up</Entry>
</CATEGORY>

<CATEGORY Name="Inventory">
<Entry Name="ItemDesc_brightlantern_1">Must be old and need some oil.</Entry>
<Entry Name="ItemName_brightlantern_1">Connor's Lantern</Entry>
</CATEGORY>

<CATEGORY Name="Messages">
<Entry Name="prison_section_1">The door is locked and i don't have the key. I need to find another way to open it.
</CATEGORY>

</LANGUAGE>



The last thing i added was a func that pop-up a message when i try to open a locked door. Lang and script for that here:
Spoiler below!
Lang:
<CATEGORY Name="Messages">
<Entry Name="prison_section_1">The door is locked and i don't have the key. I need to find another way to open it.
</CATEGORY>

Script:
SetEntityPlayerInteractCallback("prison_section_1", "DoorLockedMsg", true);


void DoorLockedMsg(string &in entity)
{
SetMessage("Messages", "prison_section_1", 0);
}



What did i do wrong? Sad
(This post was last modified: 11-15-2012, 03:52 PM by Rowzter.)
11-15-2012, 03:51 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: My .Lang File "Died"?

You forgot </Entry>

<Entry Name="prison_section_1">The door is locked and i don't have the key. I need to find another way to open it.</Entry>

Trying is the first step to success.
11-15-2012, 03:54 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
RE: My .Lang File "Died"?

I've also seen that you have two CustomStoryMain. Why is that?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-15-2012, 04:04 PM
Find
Rowzter Offline
Junior Member

Posts: 44
Threads: 12
Joined: Oct 2012
Reputation: 3
#4
RE: My .Lang File "Died"?

Shit i am a real idiot (Facepalm). It works now =D, But i have 2 question, How and why can a ending entry crash an whole lang when i have both Language and /Language

And the second one:
I have a lantern and i want it to be empty and not full when i pick it up?

Chaser:

The first one is for the Description, and the other one is for a text that should popup when i collide with an area but that one does not work Sad
(This post was last modified: 11-15-2012, 04:09 PM by Rowzter.)
11-15-2012, 04:05 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#5
RE: My .Lang File "Died"?

(11-15-2012, 04:05 PM)Rowzter Wrote: Shit i am a real idiot (Facepalm). It works now =D, But i have 2 question, How and why can a ending entry crash an whole lang when i have both Language and /Language

And the second one:
I have a lantern and i want it to be empty and not full when i pick it up?

Chaser:

The first one is for the Description, and the other one is for a text that should popup when i collide with an area but that one does not work Sad
For the lantern:
SetPlayerLampOil(float afOil);


For the pop-up, put that text in "Messages". There can only be 1 category of each.

It isn't about <Language/>, is about the </Entry>. When you don't put it when you should, the game turns mad and doesn't recognise anything of the .lang file.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 11-15-2012, 04:19 PM by The chaser.)
11-15-2012, 04:17 PM
Find
Plank Offline
Junior Member

Posts: 43
Threads: 1
Joined: May 2013
Reputation: 0
#6
RE: My .Lang File "Died"?

your not an idiot i accidentally deleted my lang file lol

does everything taste like chicken or
does chicken taste like everything?
06-28-2013, 10:41 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#7
RE: My .Lang File "Died"?

m0shiman, why did you necro this?

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
06-28-2013, 11:39 PM
Find
Plank Offline
Junior Member

Posts: 43
Threads: 1
Joined: May 2013
Reputation: 0
#8
RE: My .Lang File "Died"?

(06-28-2013, 11:39 PM)The chaser Wrote: m0shiman, why did you necro this?

what do you mean necro

does everything taste like chicken or
does chicken taste like everything?
06-29-2013, 12:21 AM
Find
7heDubz Offline
Posting Freak

Posts: 1,329
Threads: 40
Joined: Feb 2013
Reputation: 41
#9
RE: My .Lang File "Died"?

(06-29-2013, 12:21 AM)m0shiman Wrote:
(06-28-2013, 11:39 PM)The chaser Wrote: m0shiman, why did you necro this?

what do you mean necro

He means this thread was old and you brought it back to life from the dead.
Now lets please leave this thread to die again Tongue

06-29-2013, 12:25 AM
Find
Plank Offline
Junior Member

Posts: 43
Threads: 1
Joined: May 2013
Reputation: 0
#10
RE: My .Lang File "Died"?

(06-29-2013, 12:25 AM)WIWWM Wrote:
(06-29-2013, 12:21 AM)m0shiman Wrote:
(06-28-2013, 11:39 PM)The chaser Wrote: m0shiman, why did you necro this?

what do you mean necro

He means this thread was old and you brought it back to life from the dead.
Now lets please leave this thread to die again Tongue

Agreed

does everything taste like chicken or
does chicken taste like everything?
06-29-2013, 02:06 AM
Find




Users browsing this thread: 2 Guest(s)