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
The Dead
W4rpCore Offline
Junior Member

Posts: 6
Threads: 2
Joined: Mar 2013
Reputation: 0
#1
The Dead

For some reason, my custom story description or LookAt function dont work at all.

heres the code i have.

first, the extra_english.lang

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Have fun...</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_StrangeKey">Strange Key</Entry>
<Entry Name="ItemDesc_StrangeKey">...</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="BrokenPuzzle_1">The mechanism seems to be broken.</entry>
</CATEGORY>
</LANGUAGE>


then my .hps file.

void OnStart(){
AddEntityCollideCallback("Player", "LockDoorArea1", "LookAtDoor_1", true, 1);
AddEntityCollideCallback("enemy_1", "MonsterTrigger1", "ChasePlayer_1", true, 1);
AddUseItemCallback("", "Key1", "door1", "UsedKey1", true);
PlayMusic("01_amb_darkness.ogg", true, 75.0f, 15.0f, 1, false);
SetEntityPlayerLookAtCallback("lever_3", "ItsBroken_1", true);
}

//Open the door with a key
void UsedKey1(string &in asItem, string &in asEntity){
SetSwingDoorLocked("door1", false, true);
}
//end

//Door slam when leave spawn room
void LookAtDoor_1(string &in asParent, string &in asChild, int alState){
StartPlayerLookAt("LookAtArea1", 15.0f, 15.0f, "");
SetSwingDoorClosed("door1", true, true);
SetSwingDoorLocked("door1", true, true);
PlaySoundAtEntity("", "react_pant.snt", "Player", 0, false);
AddTimer("Timer_1", 1.5f, "StopLookAt_1");
}

void StopLookAt_1(string &in asTimer){
StopPlayerLookAt();
SetLampLit("torch_static_green_1", false, true);
SetLampLit("torch_static_green_2", false, true);
SetLampLit("torch_static_green_3", false, true);
SetLampLit("torch_static_green_4", false, true);
}
//end



//Spawn monster in the other end of the room and player look at door / chase player in the end
void SpawnBrute_2(string &in asTimer){
StartPlayerLookAt("LookAtArea1", 5.0f, 5.0f, "");
SetEntityActive("enemy_1", true);
AddEnemyPatrolNode("enemy_1", "PathNodeArea_1", 1, "");
AddEnemyPatrolNode("enemy_1", "PathNodeArea_2", 0, "");
AddTimer("Timer_4", 1.5f, "StopLookAt_2");
}

void StopLookAt_2(string &in asTimer){
StopPlayerLookAt();
}

void ChasePlayer_1(string &in asParent, string &in asChild, int alState){
ShowEnemyPlayerPosition("enemy_1");
}
//end

//When player looks at the broken puzzle, sends a message and starts spawn timer
void ItsBroken_1(string &in asEntity, int alState){
AddTimer("Timer_2", 3.0f, "SpawnBrute_2");
SetMessage("Messages", "BrokenPuzzle_1", 3);
}
//end


When i look at lever_3, it doesnt say anything, BUT the brute does spawn.

So is there a problem with my extra_english.lang file, because the descriptions of the key, the CS and the message dont work
(This post was last modified: 03-10-2013, 05:25 PM by W4rpCore.)
03-10-2013, 05:09 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: The Dead

<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Have fun...</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_StrangeKey">Strange Key</Entry>
<Entry Name="ItemDesc_StrangeKey">...</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="BrokenPuzzle_1">The mechanism seems to be broken.</Entry>
</CATEGORY>
</LANGUAGE>


There, spotted it.

All the problem was about a non-capital letter in a </Entry>. I have underlined the problem.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 03-10-2013, 05:18 PM by The chaser.)
03-10-2013, 05:15 PM
Find
W4rpCore Offline
Junior Member

Posts: 6
Threads: 2
Joined: Mar 2013
Reputation: 0
#3
RE: The Dead

(03-10-2013, 05:15 PM)The chaser Wrote: <LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">Have fun...</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_StrangeKey">Strange Key</Entry>
<Entry Name="ItemDesc_StrangeKey">...</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="BrokenPuzzle_1">The mechanism seems to be broken.</Entry>
</CATEGORY>
</LANGUAGE>


There, spotted it.

All the problem was about a non-capital letter in a </Entry>. I have underlined the problem.

Dammit. I'm blind.
03-10-2013, 05:21 PM
Find




Users browsing this thread: 1 Guest(s)